InputStream类(java.io.InputStream) public abstract class InputStream extends Object implements Closeable 构造方法:public InputStream() 普通方法: public abstract int read()throws IOException 依次读取单个字节数据,如果没有内容则返回-1 public int read(byte[] b) throws IOException 读…
public void saveBit(InputStream inStream) throws IOException{ ByteArrayOutputStream outStream = new ByteArrayOutputStream(); //创建一个Buffer字符串 byte[] buffer = new byte[1024]; //每次读取的字符串长度,如果为-1,代表全部读取完毕 int len = 0; //使用一个输入流从buffer里把数据读取出来 while( (len…