@ Override public Utf8 readString ( Utf8 old ) throws IOException { ByteBuffer stringBytes = readBytes ( null ) ; return new Utf8 ( stringBytes . array ( ) ) ; }
A string is decoded by reading the string as bytes using the readBytes function .