public static DLSocketAddress deserialize(String lockId) throws IOException {
  String parts[]=lockId.split(SEP);
  if (3 != parts.length) {
    throw new IOException("Invalid dl socket address " + lockId);
  }
  int version;
  try {
    version=Integer.parseInt(parts[0]);
  }
 catch (  NumberFormatException nfe) {
    throw new IOException("Invalid version found in " + lockId,nfe);
  }
  if (VERSION != version) {
    throw new IOException("Invalid version " + version + " found in "+ lockId+ ", expected "+ VERSION);
  }
  int shardId;
  try {
    shardId=Integer.parseInt(parts[1]);
  }
 catch (  NumberFormatException nfe) {
    throw new IOException("Invalid shard id found in " + lockId,nfe);
  }
  InetSocketAddress address=parseSocketAddress(parts[2]);
  return new DLSocketAddress(shardId,address);
}

public static DLSocketAddress deserialize ( String lockId ) throws IOException { String parts [ ] = lockId . split ( SEP ) ; if ( 3 != parts . length ) { throw new IOException ( "Invalid dl socket address " + lockId ) ; } int version ; try { version = Integer . parseInt ( parts [ 0 ] ) ; } catch ( NumberFormatException nfe ) { throw new IOException ( "Invalid version found in " + lockId , nfe ) ; } if ( VERSION != version ) { throw new IOException ( "Invalid version " + version + " found in " + lockId + ", expected " + VERSION ) ; } int shardId ; try { shardId = Integer . parseInt ( parts [ 1 ] ) ; } catch ( NumberFormatException nfe ) { throw new IOException ( "Invalid shard id found in " + lockId , nfe ) ; } InetSocketAddress address = parseSocketAddress ( parts [ 2 ] ) ; return new DLSocketAddress ( shardId , address ) ; }
deserialize proxy address from a string representation .
