ByteArrayInputStream 直接使用ByteArrayInputStream 类,此类为InputStream子类 ByteArrayInputStream inputStream = new ByteArrayInputStream("数据".getBytes());