? MarkShieldInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.commons.io.input.ProxyInputStream
org.apache.commons.io.input.MarkShieldInputStream
- ????????:
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.
Proxy stream that prevents the underlying input stream from being marked/reset.
This class is typically used in cases where an input stream that supports marking needs to be passed to a component that wants to explicitly mark the stream, but it it is not desirable to allow marking of the stream.
- ???????:
- 2.8.0
-
????
??????? java.io.FilterInputStream
in
-
?????
????????Creates a proxy that shields the given input stream from being marked or rest. -
????
??????? org.apache.commons.io.input.ProxyInputStream
afterRead, available, beforeRead, close, handleIOException, read, read, read, skip
??????? java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
???????
-
MarkShieldInputStream
Creates a proxy that shields the given input stream from being marked or rest.- ??:
in
- underlying input stream
-
-
??????
-
mark
???????:ProxyInputStream
Invokes the delegate'smark(int)
method.- ??:
mark
???ProxyInputStream
- ??:
readlimit
- read ahead limit
-
markSupported
???????:ProxyInputStream
Invokes the delegate'smarkSupported()
method.- ??:
markSupported
???ProxyInputStream
- ??:
- true if mark is supported, otherwise false
-
reset
???????:ProxyInputStream
Invokes the delegate'sreset()
method.- ??:
reset
???ProxyInputStream
- ??:
IOException
- if an I/O error occurs.
-