public class RepeatingInputStream extends InputStream
Modifier and Type | Field and Description |
---|---|
private InputStream |
bais |
private int |
maxIterations |
private int |
repeatCount |
private byte[] |
toRepeat |
Constructor and Description |
---|
RepeatingInputStream(byte[] toRepeat,
int iterations) |
Modifier and Type | Method and Description |
---|---|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
private boolean |
repeat() |
available, close, mark, markSupported, reset, skip
private final byte[] toRepeat
private final int maxIterations
private InputStream bais
private int repeatCount
public RepeatingInputStream(byte[] toRepeat, int iterations)
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
private boolean repeat()
Copyright © 2021 Apache NiFi Project. All rights reserved.