Esempio n. 1
0
 public int read(byte[] buf, int off, int len) throws IOException {
   int totalRead = Streams.readFully(super.in, buf, off, len);
   return totalRead > 0 ? totalRead : -1;
 }
Esempio n. 2
0
 public void drain() throws IOException {
   Streams.drain(_in);
   _in.close();
 }