Package org.apache.commons.io.input
Class InfiniteCircularInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.commons.io.input.CircularInputStream
-
- org.apache.commons.io.input.InfiniteCircularInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class InfiniteCircularInputStream extends CircularInputStream
AnInputStream
that infinitely repeats the provided bytes.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
.- Since:
- 2.6
-
-
Constructor Summary
Constructors Constructor Description InfiniteCircularInputStream(byte[] repeatContent)
Creates an instance from the specified array of bytes.
-
Method Summary
-
Methods inherited from class org.apache.commons.io.input.CircularInputStream
read
-
-