public class FlowFilePackagerV1 extends Object implements FlowFilePackager
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_TAR_PERMISSIONS |
static String |
FILENAME_ATTRIBUTES |
static String |
FILENAME_CONTENT |
private int |
tarPermissions |
| Constructor and Description |
|---|
FlowFilePackagerV1() |
FlowFilePackagerV1(int tarPermissions) |
| Modifier and Type | Method and Description |
|---|---|
static long |
copy(InputStream source,
OutputStream destination) |
void |
packageFlowFile(InputStream in,
OutputStream out,
Map<String,String> attributes,
long fileSize) |
private void |
writeAttributesEntry(Map<String,String> attributes,
org.apache.commons.compress.archivers.tar.TarArchiveOutputStream tout) |
private void |
writeContentEntry(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream tarOut,
InputStream inStream,
long fileSize) |
public static final String FILENAME_ATTRIBUTES
public static final String FILENAME_CONTENT
public static final int DEFAULT_TAR_PERMISSIONS
private final int tarPermissions
public FlowFilePackagerV1()
public FlowFilePackagerV1(int tarPermissions)
public void packageFlowFile(InputStream in, OutputStream out, Map<String,String> attributes, long fileSize) throws IOException
packageFlowFile in interface FlowFilePackagerIOExceptionprivate void writeAttributesEntry(Map<String,String> attributes, org.apache.commons.compress.archivers.tar.TarArchiveOutputStream tout) throws IOException
IOExceptionprivate void writeContentEntry(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream tarOut,
InputStream inStream,
long fileSize)
throws IOException
IOExceptionpublic static long copy(InputStream source, OutputStream destination) throws IOException
IOExceptionCopyright © 2015 Apache NiFi Project. All rights reserved.