public class StandardFlowFileCodec extends Object implements FlowFileCodec
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FLOWFILE_PATH |
static int |
MAX_NUM_ATTRIBUTES |
private VersionNegotiator |
versionNegotiator |
| Constructor and Description |
|---|
StandardFlowFileCodec() |
| Modifier and Type | Method and Description |
|---|---|
FlowFile |
decode(InputStream stream,
ProcessSession session) |
FlowFile |
encode(FlowFile flowFile,
ProcessSession session,
OutputStream encodedOut) |
String |
getResourceName() |
List<Integer> |
getSupportedVersions() |
VersionNegotiator |
getVersionNegotiator() |
private String |
readString(DataInputStream in) |
String |
toString() |
private void |
writeString(String val,
DataOutputStream out) |
public static final int MAX_NUM_ATTRIBUTES
public static final String DEFAULT_FLOWFILE_PATH
private final VersionNegotiator versionNegotiator
public FlowFile encode(FlowFile flowFile, ProcessSession session, OutputStream encodedOut) throws IOException
encode in interface FlowFileCodecIOExceptionpublic FlowFile decode(InputStream stream, ProcessSession session) throws IOException, ProtocolException
decode in interface FlowFileCodecIOExceptionProtocolExceptionprivate void writeString(String val, DataOutputStream out) throws IOException
IOExceptionprivate String readString(DataInputStream in) throws IOException
IOExceptionpublic List<Integer> getSupportedVersions()
getSupportedVersions in interface FlowFileCodecpublic VersionNegotiator getVersionNegotiator()
getVersionNegotiator in interface VersionedRemoteResourcepublic String getResourceName()
getResourceName in interface VersionedRemoteResourceCopyright © 2015 Apache NiFi (incubating). All rights reserved.