? CircularInputStream
java.lang.Object
java.io.InputStream
org.apache.commons.io.input.CircularInputStream
- ????????:
Closeable
,AutoCloseable
- ??????:
InfiniteCircularInputStream
An
InputStream
that repeats provided bytes for given target byte count.
Closing this input stream has no effect. The methods in this class can be called after the stream has been closed
without generating an IOException
.
- ???????:
- 2.8.0
- ????:
-
?????
????????CircularInputStream
(byte[] repeatContent, long targetByteCount) Creates an instance from the specified array of bytes. -
????
??????? java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
???????
-
CircularInputStream
Creates an instance from the specified array of bytes.- ??:
repeatContent
- Input buffer to be repeated this buffer is not copied.targetByteCount
- How many bytes the read. A negative number means an infinite target count.
-
-
??????
-
read
- ???:
read
???InputStream
-