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, skipprivate 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 InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionprivate boolean repeat()
Copyright © 2023 Apache NiFi Project. All rights reserved.