Class JcrExporter

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class JcrExporter
    extends AbstractExporter
    Implements a Vault filesystem exporter that exports Vault files to a JCR repository. It uses the PlatformNameFormat for formatting the jcr file names to local ones.
    • Constructor Detail

      • JcrExporter

        public JcrExporter​(Node localFile)
        Constructs a new jcr exporter.
        Parameters:
        localFile - the local parent folder
    • Method Detail

      • isAutoDeleteFiles

        public boolean isAutoDeleteFiles()
      • setAutoDeleteFiles

        public void setAutoDeleteFiles​(boolean autoDeleteFiles)
      • close

        public void close()
                   throws java.io.IOException,
                          RepositoryException
        Closes the exporter and releases the undelying structures.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in class AbstractExporter
        Throws:
        java.io.IOException - if an I/O error occurs
        RepositoryException - if a repository error occurs
      • createDirectory

        public void createDirectory​(java.lang.String relPath)
                             throws java.io.IOException
        Specified by:
        createDirectory in class AbstractExporter
        Throws:
        java.io.IOException
      • writeFile

        public void writeFile​(java.io.InputStream in,
                              java.lang.String relPath)
                       throws java.io.IOException
        Description copied from class: AbstractExporter

        The specified stream remains open after this method returns.

        Specified by:
        writeFile in class AbstractExporter
        Throws:
        java.io.IOException