public class FileImportPackageHandler extends Object implements ImportPackageHandler
| Modifier and Type | Field and Description |
|---|---|
protected File |
dataFile |
protected String |
dataFileEncoding |
static String |
DEFAULT_ENCODING |
protected File |
sourceDir |
| Constructor and Description |
|---|
FileImportPackageHandler(File sourceDir,
File dataFile,
String dataFileEncoding)
Construct
|
| 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 sourceDir
protected File dataFile
protected String dataFileEncoding
public void startImport()
ImportPackageHandlerstartImport in interface ImportPackageHandlerpublic Reader getDataStream()
ImportPackageHandlergetDataStream in interface ImportPackageHandlerpublic InputStream importStream(String content)
ImportPackageHandlerimportStream in interface ImportPackageHandlercontent - content descriptorpublic void endImport()
ImportPackageHandlerendImport in interface ImportPackageHandlerprotected void log(String message)
message - message to logCopyright © 2005–2018 Alfresco Software. All rights reserved.