question: public static String readString ( DataInputStream in ) throws IOException { int llength = in . readInt ( ) ; if ( llength == - 1 ) return null ; byte a [ ] = new byte [ llength ] ; in . readFully ( a , 0 , llength ) ; return new String ( a ) ; }
target:  read String from DataInputStream motivation: readUTF can't print lines larger than USHORTMAX