Class ZipFileEntryAsset

  • All Implemented Interfaces:
    Asset

    public class ZipFileEntryAsset
    extends java.lang.Object
    implements Asset
    Holds a reference to the ZipFile and the ZipEntry this Asset represents for lazy loading. Used by the ZipImporter.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.zip.ZipEntry entry  
      private java.util.zip.ZipFile file  
    • Constructor Summary

      Constructors 
      Constructor Description
      ZipFileEntryAsset​(java.util.zip.ZipFile file, java.util.zip.ZipEntry entry)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream openStream()
      Get a input stream for the resource content.
      • Methods inherited from class java.lang.Object

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

      • file

        private final java.util.zip.ZipFile file
      • entry

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

      • ZipFileEntryAsset

        public ZipFileEntryAsset​(java.util.zip.ZipFile file,
                                 java.util.zip.ZipEntry entry)
    • Method Detail

      • openStream

        public java.io.InputStream openStream()
        Description copied from interface: Asset
        Get a input stream for the resource content. The caller is responsible for closing the stream.
        Specified by:
        openStream in interface Asset
        Returns:
        A new open InputStream for each call