/** * Returns the {@link java.lang.String} representaion of this address. */ public String toString() { return hostName.toString() + "/" + getHostAddress(); } }
/** * Returns the {@link java.lang.String} representaion of this address. */ public String toString() { return hostName.toString() + "/" + getHostAddress(); } }
/** * Returns the {@link java.lang.String} representaion of this address. */ public String toString() { return hostName.toString() + "/" + getHostAddress(); } }
/** * Returns the {@link java.lang.String} representaion of this address. */ @Override public String toString () { return this.hostName.toString() + "/" + getHostAddress(); } }
/** * Returns the {@link java.lang.String} representaion of this address. */ @Override public String toString () { return this.hostName.toString() + "/" + getHostAddress(); } }
/** * Returns the {@link java.lang.String} representaion of this address. */ public String toString() { return hostName.toString() + "/" + getHostAddress(); } }
throw new UnknownHostException(name.toString());
static NbtAddress doNameQuery( Name name, InetAddress svr ) throws UnknownHostException { NbtAddress addr; if( name.hexCode == 0x1d && svr == null ) { svr = CLIENT.baddr; // bit of a hack but saves a lookup } name.srcHashCode = svr != null ? svr.hashCode() : 0; addr = getCachedAddress( name ); if( addr == null ) { /* This is almost exactly like InetAddress.java. See the * comments there for a description of how the LOOKUP_TABLE prevents * redundant queries from going out on the wire. */ if(( addr = (NbtAddress)checkLookupTable( name )) == null ) { try { addr = CLIENT.getByName( name, svr ); } catch( UnknownHostException uhe ) { addr = UNKNOWN_ADDRESS; } finally { cacheAddress( name, addr ); updateLookupTable( name ); } } } if( addr == UNKNOWN_ADDRESS ) { throw new UnknownHostException( name.toString() ); } return addr; }
static NbtAddress doNameQuery( Name name, InetAddress svr ) throws UnknownHostException { NbtAddress addr; if( name.hexCode == 0x1d && svr == null ) { svr = CLIENT.baddr; // bit of a hack but saves a lookup } name.srcHashCode = svr != null ? svr.hashCode() : 0; addr = getCachedAddress( name ); if( addr == null ) { /* This was copied amost verbatim from InetAddress.java. See the * comments there for a description of how the LOOKUP_TABLE prevents * redundant queries from going out on the wire. */ if(( addr = (NbtAddress)checkLookupTable( name )) == null ) { try { addr = CLIENT.getByName( name, svr ); } catch( UnknownHostException uhe ) { addr = UNKNOWN_ADDRESS; } finally { cacheAddress( name, addr ); updateLookupTable( name ); } } } if( addr == UNKNOWN_ADDRESS ) { throw new UnknownHostException( name.toString() ); } return addr; }
static NbtAddress doNameQuery( Name name, InetAddress svr ) throws UnknownHostException { NbtAddress addr; if( name.hexCode == 0x1d && svr == null ) { svr = CLIENT.baddr; // bit of a hack but saves a lookup } name.srcHashCode = svr != null ? svr.hashCode() : 0; addr = getCachedAddress( name ); if( addr == null ) { /* This is almost exactly like InetAddress.java. See the * comments there for a description of how the LOOKUP_TABLE prevents * redundant queries from going out on the wire. */ if(( addr = (NbtAddress)checkLookupTable( name )) == null ) { try { addr = CLIENT.getByName( name, svr ); } catch( UnknownHostException uhe ) { addr = UNKNOWN_ADDRESS; } finally { cacheAddress( name, addr ); updateLookupTable( name ); } } } if( addr == UNKNOWN_ADDRESS ) { throw new UnknownHostException( name.toString() ); } return addr; }
static NbtAddress doNameQuery( Name name, InetAddress svr ) throws UnknownHostException { NbtAddress addr; if( name.hexCode == 0x1d && svr == null ) { svr = CLIENT.baddr; // bit of a hack but saves a lookup } name.srcHashCode = svr != null ? svr.hashCode() : 0; addr = getCachedAddress( name ); if( addr == null ) { /* This is almost exactly like InetAddress.java. See the * comments there for a description of how the LOOKUP_TABLE prevents * redundant queries from going out on the wire. */ if(( addr = (NbtAddress)checkLookupTable( name )) == null ) { try { addr = CLIENT.getByName( name, svr ); } catch( UnknownHostException uhe ) { addr = UNKNOWN_ADDRESS; } finally { cacheAddress( name, addr ); updateLookupTable( name ); } } } if( addr == UNKNOWN_ADDRESS ) { throw new UnknownHostException( name.toString() ); } return addr; }
throw new UnknownHostException(name.toString());