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()
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.