public class JarExporter extends AbstractExporter
PlatformNameFormat
for formatting the jcr file
names to local ones.Constructor and Description |
---|
JarExporter(File jarFile)
Constructs a new jar exporter that writes to the given file.
|
JarExporter(OutputStream out)
Constructs a new jar exporter that writes to the output stream.
|
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.
|
void |
write(ZipFile zip,
ZipEntry entry) |
void |
writeFile(InputStream in,
String relPath) |
void |
writeFile(VaultFile file,
String relPath) |
export, export, export, getExportInfo, getRootPath, isNoMetaInf, isRelativePaths, isVerbose, setNoMetaInf, setProperties, setProperty, setProperty, setRelativePaths, setRootPath, setVerbose
public JarExporter(File jarFile)
jarFile
- the jar filepublic JarExporter(OutputStream out)
out
- the output streampublic void open() throws IOException
open
in class AbstractExporter
IOException
- if an I/O error occurspublic void close() throws IOException
AbstractExporter
close
in class AbstractExporter
IOException
- if an I/O error occurspublic void createDirectory(VaultFile file, String relPath) throws RepositoryException, IOException
createDirectory
in class AbstractExporter
RepositoryException
IOException
public void createDirectory(String relPath) throws IOException
createDirectory
in class AbstractExporter
IOException
public void writeFile(VaultFile file, String relPath) throws RepositoryException, IOException
writeFile
in class AbstractExporter
RepositoryException
IOException
public void writeFile(InputStream in, String relPath) throws IOException
writeFile
in class AbstractExporter
IOException
public void write(ZipFile zip, ZipEntry entry) throws IOException
IOException
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"