public abstract class AbstractExporter extends Object implements AutoCloseable
| Constructor and Description |
|---|
AbstractExporter() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Closes the exporter and releases the undelying structures.
|
abstract void |
createDirectory(String relPath) |
abstract void |
createDirectory(VaultFile file,
String relPath) |
void |
export(VaultFile parent)
Exports the given vault file and writes the META-INF data.
|
void |
export(VaultFile parent,
boolean noClose)
Exports the given vault file and writes the META-INF data.
|
void |
export(VaultFile parent,
String relPath)
Exports the vault file to the relative path.
|
ExportInfo |
getExportInfo() |
String |
getRootPath() |
boolean |
isNoMetaInf() |
boolean |
isRelativePaths() |
boolean |
isVerbose() |
abstract void |
open()
Opens the exporter and initializes the undelying structures.
|
void |
setNoMetaInf(boolean noMetaInf) |
void |
setProperties(Properties properties) |
void |
setProperty(String name,
Calendar value) |
void |
setProperty(String name,
String value) |
void |
setRelativePaths(boolean relativePaths)
Defines if the exported files should include their entire path or just
be relative to the export root.
|
void |
setRootPath(String rootPath) |
void |
setVerbose(ProgressTrackerListener out) |
abstract void |
writeFile(InputStream in,
String relPath)
The specified stream remains open after this method returns.
|
abstract void |
writeFile(VaultFile file,
String relPath) |
public boolean isVerbose()
public void setVerbose(ProgressTrackerListener out)
public boolean isRelativePaths()
public void setProperties(Properties properties)
public String getRootPath()
public void setRootPath(String rootPath)
public boolean isNoMetaInf()
public void setNoMetaInf(boolean noMetaInf)
public ExportInfo getExportInfo()
public void setRelativePaths(boolean relativePaths)
relativePaths - relative flagpublic void export(VaultFile parent) throws RepositoryException, IOException
parent - the vault fileRepositoryException - if an error occursIOException - if an I/O error occurspublic void export(VaultFile parent, boolean noClose) throws RepositoryException, IOException
parent - the vault filenoClose - if true exporter will not be closed after exportRepositoryException - if an error occursIOException - if an I/O error occurspublic void export(VaultFile parent, String relPath) throws RepositoryException, IOException
parent - the filerelPath - the pathRepositoryException - if an error occursIOException - if an I/O error occurspublic abstract void open()
throws IOException,
RepositoryException
IOException - if an I/O error occursRepositoryException - if a repository error occurspublic abstract void close()
throws IOException,
RepositoryException
close in interface AutoCloseableIOException - if an I/O error occursRepositoryException - if a repository error occurspublic abstract void createDirectory(String relPath) throws IOException
IOExceptionpublic abstract void createDirectory(VaultFile file, String relPath) throws RepositoryException, IOException
RepositoryExceptionIOExceptionpublic abstract void writeFile(InputStream in, String relPath) throws IOException
The specified stream remains open after this method returns.
in - relPath - IOExceptionpublic abstract void writeFile(VaultFile file, String relPath) throws RepositoryException, IOException
RepositoryExceptionIOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved