void rdataFromString(Tokenizer st, Name origin) throws IOException { InetAddress address = st.getAddress(Address.IPv4); addr = fromArray(address.getAddress()); }
/** * Creates an A Record from the given data * @param address The address that the name refers to */ public ARecord(Name name, int dclass, long ttl, InetAddress address) { super(name, Type.A, dclass, ttl); if (Address.familyOf(address) != Address.IPv4) throw new IllegalArgumentException("invalid IPv4 address"); addr = fromArray(address.getAddress()); }
/** * Creates an A Record from the given data * @param address The address that the name refers to */ public ARecord(Name name, int dclass, long ttl, InetAddress address) { super(name, Type.A, dclass, ttl); if (Address.familyOf(address) != Address.IPv4) throw new IllegalArgumentException("invalid IPv4 address"); addr = fromArray(address.getAddress()); }
void rdataFromString(Tokenizer st, Name origin) throws IOException { InetAddress address = st.getAddress(Address.IPv4); addr = fromArray(address.getAddress()); }
/** * Creates an A Record from the given data * @param address The address that the name refers to */ public ARecord(Name name, int dclass, long ttl, InetAddress address) { super(name, Type.A, dclass, ttl); if (Address.familyOf(address) != Address.IPv4) throw new IllegalArgumentException("invalid IPv4 address"); addr = fromArray(address.getAddress()); }
void rrFromWire(DNSInput in) throws IOException { addr = fromArray(in.readByteArray(4)); }
void rrFromWire(DNSInput in) throws IOException { addr = fromArray(in.readByteArray(4)); }
/** * Creates an A Record from the given data * @param address The address that the name refers to */ public ARecord(Name name, int dclass, long ttl, InetAddress address) { super(name, Type.A, dclass, ttl); if (Address.familyOf(address) != Address.IPv4) throw new IllegalArgumentException("invalid IPv4 address"); addr = fromArray(address.getAddress()); }
void rdataFromString(Tokenizer st, Name origin) throws IOException { InetAddress address = st.getAddress(Address.IPv4); addr = fromArray(address.getAddress()); }
void rdataFromString(Tokenizer st, Name origin) throws IOException { addr = fromArray(st.getAddressBytes(Address.IPv4)); }
void rrFromWire(DNSInput in) throws IOException { addr = fromArray(in.readByteArray(4)); }
void rrFromWire(DNSInput in) throws IOException { addr = fromArray(in.readByteArray(4)); }