src/ow/id/ID.java
public static ID parseID(String arg, int size) {
		ID key = null;

		if (arg.startsWith("id:")) {
			key = getID(arg.substring(3), size);
		}
		else {
			try {
				key = getSHA1BasedID(arg.getBytes("UTF-8"), size);
			}
			catch (UnsupportedEncodingException e) {
				// NOTREACHED
			}
		}

		return key;
	}
/**
	 * A utility method which parses an ID specified by a string or a hexadecimal number.
	 * A string is converted the corresponding ID by being hashed with SHA1.
	 */
A utility method which parses an ID specified by a string or a hexadecimal number.
A string is converted the corresponding ID by being hashed with SHA1.
A utility method which parses an ID specified by a string or a hexadecimal number . A string is converted the corresponding ID by being hashed with SHA1 .
public static ID parseID(String arg, int size) {
		ID key = null;
		if (arg.startsWith("id:")) {
			key = getID(arg.substring(3), size);
		}
		else {
			try {
				key = getSHA1BasedID(arg.getBytes("UTF-8"), size);
			}
			catch (UnsupportedEncodingException e) {
			}
		}
		return key;
	}
public static ID parseID ( String arg , int size ) { ID key = null ; if ( arg . startsWith ( "id:" ) ) { key = getID ( arg . substring ( 3 ) , size ) ; } else { try { key = getSHA1BasedID ( arg . getBytes ( "UTF-8" ) , size ) ; } catch ( UnsupportedEncodingException e ) { } } return key ; }
A utility method which parses an ID specified by a string or a hexadecimal number.
A utility method which parses an ID specified by a string or a hexadecimal number .
// NOTREACHED