Package org.apache.nifi.stream.io
Class RepeatingInputStream
java.lang.Object
java.io.InputStream
org.apache.nifi.stream.io.RepeatingInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate InputStream
private final int
private int
private final byte[]
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
toRepeat
private final byte[] toRepeat -
maxIterations
private final int maxIterations -
bais
-
repeatCount
private int repeatCount
-
-
Constructor Details
-
RepeatingInputStream
public RepeatingInputStream(byte[] toRepeat, int iterations)
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
repeat
private boolean repeat()
-