? UnsynchronizedByteArrayInputStream
java.lang.Object
java.io.InputStream
org.apache.commons.io.input.UnsynchronizedByteArrayInputStream
- ????????:
Closeable
,AutoCloseable
This is an alternative to
ByteArrayInputStream
which removes the synchronization overhead for non-concurrent
access; as such this class is not thread-safe.- ???????:
- 2.7
-
????
?? -
?????
????????UnsynchronizedByteArrayInputStream
(byte[] data) Creates a new byte array input stream.UnsynchronizedByteArrayInputStream
(byte[] data, int offset) Creates a new byte array input stream.UnsynchronizedByteArrayInputStream
(byte[] data, int offset, int length) Creates a new byte array input stream. -
????
??????? java.io.InputStream
close, nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
??????
-
END_OF_STREAM
The end of stream marker.- ????:
-
-
???????
-
UnsynchronizedByteArrayInputStream
Creates a new byte array input stream.- ??:
data
- the buffer
-
UnsynchronizedByteArrayInputStream
Creates a new byte array input stream.- ??:
data
- the bufferoffset
- the offset into the buffer- ??:
IllegalArgumentException
- if the offset is less than zero
-
UnsynchronizedByteArrayInputStream
Creates a new byte array input stream.- ??:
data
- the bufferoffset
- the offset into the bufferlength
- the length of the buffer- ??:
IllegalArgumentException
- if the offset or length less than zero
-
-
??????
-
available
- ??:
available
???InputStream
-
read
- ???:
read
???InputStream
-
read
- ??:
read
???InputStream
-
read
- ??:
read
???InputStream
-
skip
- ??:
skip
???InputStream
-
markSupported
- ??:
markSupported
???InputStream
-
mark
- ??:
mark
???InputStream
-
reset
- ??:
reset
???InputStream
-