ByteArrayInputStream
替换方案, 本代码移植自IBM developer works精彩文章, 参见package文档.
@author Michael Zhou
@version $Id: ByteArrayInputStream.java 509 2004-02-16 05:42:07Z baobao $
ByteArrayInputStream
contains an internal buffer that contains bytes that may be read from the stream. An internal counter keeps track of the next byte to be supplied by the read
method. Closing a ByteArrayInputStream has no effect. The methods in this class can be called after the stream has been closed without generating an IOException. @author Arthur van Hoff @see java.io.StringBufferInputStream @since JDK1.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|