A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the input and to support the  and reset methods. When the BufferedInputStream is created, an internal buffer array is created. As bytes from the stream are read or skipped, the internal buffer is refilled as necessary from the contained input stream, many bytes at a time. The  operation remembers a point in the input stream and the reset operation causes all the bytes read since the most recent  operation to be reread before new bytes are taken from the contained input stream.

解决方案 »

  1.   

    ByteBufferedInputStream写错了,应该是ByteArrayInputStream
      

  2.   

    多谢阿土回复,我也换成过ByteArrayInputStream,可是编译不过去,请指教!
      

  3.   

    datainputstream 以它的方法使用简单,方法多样而见长。BufferedInputStream主要以它的速度快见长,主要用于读取文件,或者是网络上流等,它的功能很强,你多用,它还能你解决一些中文问题,而datainputstream 可能就不行,一定要自己给它限定 iso81890才可以。 尤其要数据库中文中,应该会遇到(mysql).
      

  4.   

    BufferedInputStream是一个缓冲的输入流,它可以一次容纳一部分输入信息然后执行操作,它是建立在一个InputSteam 对象的基础上的.
      

  5.   

    我已经知道答案了,把finally改成catch就可以了
      

  6.   

    BufferedInputStream是个缓冲流,作用是可以快速的读入数据。BufferedOutputStrtam。