Ejemplo n.º 1
0
 @NotNull
 public String readUtf(final int size) throws IOException {
   position += size;
   byte b[] = new byte[size];
   read(b);
   int i = 0;
   for (; i < b.length; i++) {
     if (b[i] == 0) break;
   }
   return new String(b, 0, i);
 }