public class StandardDataPacket extends Object implements DataPacket
Modifier and Type | Field and Description |
---|---|
private Map<String,String> |
attributes |
private long |
size |
private InputStream |
stream |
Constructor and Description |
---|
StandardDataPacket(Map<String,String> attributes,
InputStream stream,
long size) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAttributes()
The key-value attributes that are to be associated with the data
|
InputStream |
getData()
An InputStream from which the content can be read
|
long |
getSize()
The length of the InputStream.
|
private final InputStream stream
private final long size
public StandardDataPacket(Map<String,String> attributes, InputStream stream, long size)
public Map<String,String> getAttributes()
DataPacket
getAttributes
in interface DataPacket
public InputStream getData()
DataPacket
getData
in interface DataPacket
public long getSize()
DataPacket
getSize
in interface DataPacket
Copyright © 2016 Apache NiFi Project. All rights reserved.