code: public static byte[] readBytesAndClose(InputStream ins) {
          byte[] bytes = null;
          try {
              bytes = readBytes(ins);
          }
          catch (IOException e) {
              throw Lang.wrapThrow(e);
          }
          finally {
              Streams.safeClose(ins);
          }
          return bytes;
      }
docs: 读取一个输入流中所有的字节，并关闭输入流
  
  @param ins
  输入流，必须支持 available()
  @return 一个字节数组
  @throws IOException