public class CopyingInputStream extends FilterInputStream
| Modifier and Type | Field and Description |
|---|---|
private ByteArrayOutputStream |
baos |
private InputStream |
in |
private int |
maxBytesToCopy |
| Constructor and Description |
|---|
CopyingInputStream(InputStream in,
int maxBytesToCopy) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytesRead() |
int |
getNumberOfBytesCopied() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
writeBytes(OutputStream out) |
available, close, mark, markSupported, reset, skipprivate final ByteArrayOutputStream baos
private final int maxBytesToCopy
private final InputStream in
public CopyingInputStream(InputStream in, int maxBytesToCopy)
public int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic byte[] getBytesRead()
public void writeBytes(OutputStream out) throws IOException
IOExceptionpublic int getNumberOfBytesCopied()
Copyright © 2023 Apache NiFi Project. All rights reserved.