@Override public int read() throws IOException { if(oneByteBuf==null) oneByteBuf = new byte[1]; int ret = read(oneByteBuf, 0, 1); return ret==-1?-1:oneByteBuf[0]; }
@Override public int read(byte b[]) throws IOException { return read(b, 0, b.length); }
while((i=bin.read())!=-1) if(i==0x00) return true;