Inet4Datum extends Datum { @Override public String asChars() { return numericToTextFormat(asByteArray()); } Inet4Datum(int encoded);  Inet4Datum(String addr);  Inet4Datum(byte[] addr);  Inet4Datum(byte[] addr, int offset, int length); @Override int asInt4(); @Override long asInt8(); @Override byte[] asByteArray(); @Override String asChars(); @Override int size(); @Override int hashCode(); @Override boolean equals(Object obj); @Override Datum equalsTo(Datum datum); @Override int compareTo(Datum datum);  }
@Test public final void testAsChars() { Inet4Datum ip = new Inet4Datum("163.152.23.222"); assertEquals("163.152.23.222", ip.asChars()); }