public class PlatformExporter extends AbstractExporter
PlatformNameFormat for formatting the jcr file
names to local ones.| Constructor and Description |
|---|
PlatformExporter(File localFile)
Constructs a new jar exporter that writes to the given file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the exporter and releases the undelying structures.
|
void |
createDirectory(String relPath) |
void |
createDirectory(VaultFile file,
String relPath) |
void |
open()
Opens the exporter and initializes the undelying structures.
|
boolean |
pruneMissing()
Checks if 'prune-missing' is enabled.
|
void |
setPruneMissing(boolean pruneMissing)
Sets the 'prune-missing' flag.
|
void |
writeFile(InputStream in,
String relPath)
The specified stream remains open after this method returns.
|
void |
writeFile(VaultFile file,
String relPath) |
export, export, export, getExportInfo, getRootPath, isNoMetaInf, isRelativePaths, isVerbose, setNoMetaInf, setProperties, setProperty, setProperty, setRelativePaths, setRootPath, setVerbosepublic PlatformExporter(File localFile)
localFile - the local parent directorypublic boolean pruneMissing()
true if prune-missing is enabledpublic void setPruneMissing(boolean pruneMissing)
pruneMissing - the flagpublic void open()
throws IOException,
RepositoryException
open in class AbstractExporterIOException - if an I/O error occursRepositoryException - if a repository error occurspublic void close()
throws IOException
close in interface AutoCloseableclose in class AbstractExporterIOException - if an I/O error occurspublic void createDirectory(VaultFile file, String relPath) throws RepositoryException, IOException
createDirectory in class AbstractExporterRepositoryExceptionIOExceptionpublic void createDirectory(String relPath) throws IOException
createDirectory in class AbstractExporterIOExceptionpublic void writeFile(VaultFile file, String relPath) throws RepositoryException, IOException
writeFile in class AbstractExporterRepositoryExceptionIOExceptionpublic void writeFile(InputStream in, String relPath) throws IOException
AbstractExporterThe specified stream remains open after this method returns.
writeFile in class AbstractExporterIOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved