public static byte[] readFully(InputStream in) throws IOException {
  try {
    return readFullyNoClose(in);
  }
  finally {
    in.close();
  }
}

public static byte [ ] readFully ( InputStream in ) throws IOException { try { return readFullyNoClose ( in ) ; } finally { in . close ( ) ; } }
returns a byte [ ] containing the remainder of ' in ' , closing it when done .
