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()
DataPacketgetAttributes in interface DataPacketpublic InputStream getData()
DataPacketgetData in interface DataPacketpublic long getSize()
DataPacketgetSize in interface DataPacketCopyright © 2023 Apache NiFi Project. All rights reserved.