public abstract class AbstractExporter
extends java.lang.Object
Constructor and Description |
---|
AbstractExporter() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Closes the exporter and releases the undelying structures.
|
abstract void |
createDirectory(java.lang.String relPath) |
abstract void |
createDirectory(VaultFile file,
java.lang.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,
java.lang.String relPath)
Exports the vault file to the relative path.
|
ExportInfo |
getExportInfo() |
java.lang.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(java.util.Properties properties) |
void |
setProperty(java.lang.String name,
java.util.Calendar value) |
void |
setProperty(java.lang.String name,
java.lang.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(java.lang.String rootPath) |
void |
setVerbose(ProgressTrackerListener out) |
abstract void |
writeFile(java.io.InputStream in,
java.lang.String relPath) |
abstract void |
writeFile(VaultFile file,
java.lang.String relPath) |
public boolean isVerbose()
public void setVerbose(ProgressTrackerListener out)
public boolean isRelativePaths()
public void setProperty(java.lang.String name, java.lang.String value)
public void setProperty(java.lang.String name, java.util.Calendar value)
public void setProperties(java.util.Properties properties)
public java.lang.String getRootPath()
public void setRootPath(java.lang.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, java.io.IOException
parent
- the vault fileRepositoryException
- if an error occursjava.io.IOException
- if an I/O error occurspublic void export(VaultFile parent, boolean noClose) throws RepositoryException, java.io.IOException
parent
- the vault filenoClose
- if true
exporter will not be closed after exportRepositoryException
- if an error occursjava.io.IOException
- if an I/O error occurspublic void export(VaultFile parent, java.lang.String relPath) throws RepositoryException, java.io.IOException
parent
- the filerelPath
- the pathRepositoryException
- if an error occursjava.io.IOException
- if an I/O error occurspublic abstract void open() throws java.io.IOException, RepositoryException
java.io.IOException
- if an I/O error occursRepositoryException
- if a repository error occurspublic abstract void close() throws java.io.IOException, RepositoryException
java.io.IOException
- if an I/O error occursRepositoryException
- if a repository error occurspublic abstract void createDirectory(java.lang.String relPath) throws java.io.IOException
java.io.IOException
public abstract void createDirectory(VaultFile file, java.lang.String relPath) throws RepositoryException, java.io.IOException
RepositoryException
java.io.IOException
public abstract void writeFile(java.io.InputStream in, java.lang.String relPath) throws java.io.IOException
java.io.IOException
public abstract void writeFile(VaultFile file, java.lang.String relPath) throws RepositoryException, java.io.IOException
RepositoryException
java.io.IOException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"