public class ACPImportPackageHandler extends Object implements ImportPackageHandler
Modifier and Type | Field and Description |
---|---|
protected String |
dataFileEncoding |
static String |
DEFAULT_ENCODING |
protected File |
file |
protected org.apache.commons.compress.archivers.zip.ZipFile |
zipFile |
Constructor and Description |
---|
ACPImportPackageHandler(File zipFile,
String dataFileEncoding)
Constuct Handler
|
Modifier and Type | Method and Description |
---|---|
void |
endImport()
End the Import
|
Reader |
getDataStream()
Get the package data stream
|
InputStream |
importStream(String content)
Call-back for handling the import of content stream.
|
protected void |
log(String message)
Log Import Message
|
void |
startImport()
Start the Import
|
public static final String DEFAULT_ENCODING
protected File file
protected org.apache.commons.compress.archivers.zip.ZipFile zipFile
protected String dataFileEncoding
public void startImport()
ImportPackageHandler
startImport
in interface ImportPackageHandler
public Reader getDataStream()
ImportPackageHandler
getDataStream
in interface ImportPackageHandler
public InputStream importStream(String content)
ImportPackageHandler
importStream
in interface ImportPackageHandler
content
- content descriptorpublic void endImport()
ImportPackageHandler
endImport
in interface ImportPackageHandler
protected void log(String message)
message
- message to logCopyright © 2005–2017 Alfresco Software. All rights reserved.