Class ACPImportPackageHandler

  • All Implemented Interfaces:
    ImportPackageHandler

    public class ACPImportPackageHandler
    extends java.lang.Object
    implements ImportPackageHandler
    Handler for importing Repository content from zip package file
    Author:
    David Caruana
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String dataFileEncoding  
      static java.lang.String DEFAULT_ENCODING  
      protected java.io.File file  
      protected org.apache.commons.compress.archivers.zip.ZipFile zipFile  
    • Constructor Summary

      Constructors 
      Constructor Description
      ACPImportPackageHandler​(java.io.File zipFile, java.lang.String dataFileEncoding)
      Constuct Handler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void endImport()
      End the Import
      java.io.Reader getDataStream()
      Get the package data stream
      java.io.InputStream importStream​(java.lang.String content)
      Call-back for handling the import of content stream.
      protected void log​(java.lang.String message)
      Log Import Message
      void startImport()
      Start the Import
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_ENCODING

        public static final java.lang.String DEFAULT_ENCODING
        See Also:
        Constant Field Values
      • file

        protected java.io.File file
      • zipFile

        protected org.apache.commons.compress.archivers.zip.ZipFile zipFile
      • dataFileEncoding

        protected java.lang.String dataFileEncoding
    • Constructor Detail

      • ACPImportPackageHandler

        public ACPImportPackageHandler​(java.io.File zipFile,
                                       java.lang.String dataFileEncoding)
        Constuct Handler
        Parameters:
        zipFile - source file
        dataFileEncoding - encoding of file