|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.exporter.ACPExportPackageHandler
public class ACPExportPackageHandler
Handler for exporting Repository to ACP (Alfresco Content Package) file
| Field Summary | |
|---|---|
static java.lang.String |
ACP_EXTENSION
ACP File Extension |
protected java.io.File |
contentDir
|
protected java.io.File |
dataFile
|
protected int |
iFileCnt
|
protected MimetypeService |
mimetypeService
|
protected java.io.OutputStream |
outputStream
|
protected java.io.File |
tempDataFile
|
protected java.io.OutputStream |
tempDataFileStream
|
protected org.apache.tools.zip.ZipOutputStream |
zipStream
|
| Constructor Summary | |
|---|---|
ACPExportPackageHandler(java.io.File destDir,
java.io.File zipFile,
java.io.File dataFile,
java.io.File contentDir,
boolean overwrite,
MimetypeService mimetypeService)
Construct |
|
ACPExportPackageHandler(java.io.OutputStream outputStream,
java.io.File dataFile,
java.io.File contentDir,
MimetypeService mimetypeService)
Construct |
|
| Method Summary | |
|---|---|
java.io.OutputStream |
createDataStream()
Create a stream for accepting the package data |
void |
endExport()
End the Export |
ContentData |
exportContent(java.io.InputStream content,
ContentData contentData)
Call-back for handling the export of content stream. |
protected void |
log(java.lang.String message)
Log Export Message |
void |
startExport()
Start the Export |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ACP_EXTENSION
protected MimetypeService mimetypeService
protected java.io.OutputStream outputStream
protected java.io.File dataFile
protected java.io.File contentDir
protected java.io.File tempDataFile
protected java.io.OutputStream tempDataFileStream
protected org.apache.tools.zip.ZipOutputStream zipStream
protected int iFileCnt
| Constructor Detail |
|---|
public ACPExportPackageHandler(java.io.File destDir,
java.io.File zipFile,
java.io.File dataFile,
java.io.File contentDir,
boolean overwrite,
MimetypeService mimetypeService)
destDir - zipFile - dataFile - contentDir -
public ACPExportPackageHandler(java.io.OutputStream outputStream,
java.io.File dataFile,
java.io.File contentDir,
MimetypeService mimetypeService)
outputStream - dataFile - contentDir - | Method Detail |
|---|
public void startExport()
ExportPackageHandler
startExport in interface ExportPackageHandlerpublic java.io.OutputStream createDataStream()
ExportPackageHandler
createDataStream in interface ExportPackageHandler
public ContentData exportContent(java.io.InputStream content,
ContentData contentData)
ExportPackageHandler
exportContent in interface ExportPackageHandlercontent - content to exportcontentData - content descriptor
public void endExport()
ExportPackageHandler
endExport in interface ExportPackageHandlerprotected void log(java.lang.String message)
message - message to log
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||