Class CopyingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.nifi.cluster.protocol.impl.CopyingInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ByteArrayOutputStreamprivate final InputStreamprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]intintread()intread(byte[] b) intread(byte[] b, int off, int len) voidwriteBytes(OutputStream out) Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
baos
-
maxBytesToCopy
private final int maxBytesToCopy -
in
-
-
Constructor Details
-
CopyingInputStream
-
-
Method Details
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
getBytesRead
public byte[] getBytesRead() -
writeBytes
- Throws:
IOException
-
getNumberOfBytesCopied
public int getNumberOfBytesCopied()
-