Class ZipSourceFileDataSource

  • All Implemented Interfaces:
    SourceFileDataSource

    public class ZipSourceFileDataSource
    extends java.lang.Object
    implements SourceFileDataSource
    A source file data source for source files residing in Zip or Jar archives.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String entryName  
      private java.net.URI entryURI  
      private java.util.zip.ZipEntry zipEntry  
      private java.util.zip.ZipFile zipFile  
    • Constructor Summary

      Constructors 
      Constructor Description
      ZipSourceFileDataSource​(java.util.zip.ZipFile zipFile, java.nio.file.FileSystem zipFileSystem, java.lang.String entryName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFullFileName()
      Get the full filename of the source file.
      java.net.URI getFullURI()
      Get the full URI of the source file.
      long getLastModified()  
      java.io.InputStream open()
      Open an InputStream on the source file.
      • Methods inherited from class java.lang.Object

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

      • zipFile

        private final java.util.zip.ZipFile zipFile
      • entryName

        private final java.lang.String entryName
      • entryURI

        private final java.net.URI entryURI
      • zipEntry

        private final java.util.zip.ZipEntry zipEntry
    • Constructor Detail

      • ZipSourceFileDataSource

        public ZipSourceFileDataSource​(java.util.zip.ZipFile zipFile,
                                       java.nio.file.FileSystem zipFileSystem,
                                       java.lang.String entryName)