Class PlatformExporter
- java.lang.Object
 - 
- org.apache.jackrabbit.vault.fs.io.AbstractExporter
 - 
- org.apache.jackrabbit.vault.fs.io.PlatformExporter
 
 
 
- 
- All Implemented Interfaces:
 java.lang.AutoCloseable
public class PlatformExporter extends AbstractExporter
Implements a Vault filesystem exporter that exports Vault files to a platform file system. It uses thePlatformNameFormatfor formatting the jcr file names to local ones. 
- 
- 
Constructor Summary
Constructors Constructor Description PlatformExporter(java.io.File localFile)Constructs a new jar exporter that writes to the given file. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the exporter and releases the undelying structures.voidcreateDirectory(java.lang.String relPath)voidcreateDirectory(VaultFile file, java.lang.String relPath)voidopen()Opens the exporter and initializes the undelying structures.booleanpruneMissing()Checks if 'prune-missing' is enabled.voidsetPruneMissing(boolean pruneMissing)Sets the 'prune-missing' flag.voidwriteFile(java.io.InputStream in, java.lang.String relPath)The specified stream remains open after this method returns.voidwriteFile(VaultFile file, java.lang.String relPath)- 
Methods inherited from class org.apache.jackrabbit.vault.fs.io.AbstractExporter
export, export, export, getExportInfo, getRootPath, isNoMetaInf, isRelativePaths, isVerbose, setNoMetaInf, setProperties, setProperty, setProperty, setRelativePaths, setRootPath, setVerbose 
 - 
 
 - 
 
- 
- 
Method Detail
- 
pruneMissing
public boolean pruneMissing()
Checks if 'prune-missing' is enabled.- Returns:
 trueif prune-missing is enabled
 
- 
setPruneMissing
public void setPruneMissing(boolean pruneMissing)
Sets the 'prune-missing' flag.- Parameters:
 pruneMissing- the flag
 
- 
open
public void open() throws java.io.IOException, RepositoryExceptionOpens the exporter and initializes the undelying structures.- Specified by:
 openin classAbstractExporter- Throws:
 java.io.IOException- if an I/O error occursRepositoryException- if a repository error occurs
 
- 
close
public void close() throws java.io.IOExceptionCloses the exporter and releases the undelying structures.- Specified by:
 closein interfacejava.lang.AutoCloseable- Specified by:
 closein classAbstractExporter- Throws:
 java.io.IOException- if an I/O error occurs
 
- 
createDirectory
public void createDirectory(VaultFile file, java.lang.String relPath) throws RepositoryException, java.io.IOException
- Specified by:
 createDirectoryin classAbstractExporter- Throws:
 RepositoryExceptionjava.io.IOException
 
- 
createDirectory
public void createDirectory(java.lang.String relPath) throws java.io.IOException- Specified by:
 createDirectoryin classAbstractExporter- Throws:
 java.io.IOException
 
- 
writeFile
public void writeFile(VaultFile file, java.lang.String relPath) throws RepositoryException, java.io.IOException
- Specified by:
 writeFilein classAbstractExporter- Throws:
 RepositoryExceptionjava.io.IOException
 
- 
writeFile
public void writeFile(java.io.InputStream in, java.lang.String relPath) throws java.io.IOExceptionDescription copied from class:AbstractExporterThe specified stream remains open after this method returns.
- Specified by:
 writeFilein classAbstractExporter- Throws:
 java.io.IOException
 
 - 
 
 -