code: public ByteArrayInputStream output2InputStream(final OutputStream out) {
          if (out == null) return null;
          return new ByteArrayInputStream(((ByteArrayOutputStream) out).toByteArray());
      }
docs: outputStream转inputStream
  
  @param out 输出流
  @return inputStream子类