public class FlowFileUnpackagerV2 extends Object implements FlowFileUnpackager
| Modifier and Type | Field and Description |
|---|---|
private boolean |
haveReadSomething |
private Map<String,String> |
nextAttributes |
private byte[] |
readBuffer |
| Constructor and Description |
|---|
FlowFileUnpackagerV2() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
copy(InputStream in,
OutputStream out,
long numBytes) |
private void |
fillBuffer(InputStream in,
byte[] buffer,
int length) |
boolean |
hasMoreData() |
protected Map<String,String> |
readAttributes(InputStream in) |
private Integer |
readFieldLength(InputStream in) |
protected long |
readLong(InputStream in) |
protected String |
readString(InputStream in) |
Map<String,String> |
unpackageFlowFile(InputStream in,
OutputStream out) |
private final byte[] readBuffer
private boolean haveReadSomething
public boolean hasMoreData()
throws IOException
hasMoreData in interface FlowFileUnpackagerIOExceptionprotected Map<String,String> readAttributes(InputStream in) throws IOException
IOExceptionpublic Map<String,String> unpackageFlowFile(InputStream in, OutputStream out) throws IOException
unpackageFlowFile in interface FlowFileUnpackagerIOExceptionprotected String readString(InputStream in) throws IOException
IOExceptionprivate void fillBuffer(InputStream in, byte[] buffer, int length) throws IOException
IOExceptionprotected long copy(InputStream in, OutputStream out, long numBytes) throws IOException
IOExceptionprotected long readLong(InputStream in) throws IOException
IOExceptionprivate Integer readFieldLength(InputStream in) throws IOException
IOExceptionCopyright © 2015 Apache NiFi Project. All rights reserved.