Class ByteSource

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] bytes  
      private int compressionMethod  
      private long crc  
      private java.lang.String path  
      private long time  
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteSource​(java.lang.String path, byte[] bytes)  
      ByteSource​(java.lang.String path, byte[] bytes, int compressionMethod)  
      ByteSource​(java.lang.String path, byte[] bytes, long time)  
      ByteSource​(java.lang.String path, byte[] bytes, long time, int compressionMethod)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.zip.ZipEntry getEntry()  
      java.io.InputStream getInputStream()  
      java.lang.String getPath()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • path

        private final java.lang.String path
      • bytes

        private final byte[] bytes
      • time

        private final long time
      • compressionMethod

        private final int compressionMethod
      • crc

        private final long crc
    • Constructor Detail

      • ByteSource

        public ByteSource​(java.lang.String path,
                          byte[] bytes)
      • ByteSource

        public ByteSource​(java.lang.String path,
                          byte[] bytes,
                          long time)
      • ByteSource

        public ByteSource​(java.lang.String path,
                          byte[] bytes,
                          int compressionMethod)
      • ByteSource

        public ByteSource​(java.lang.String path,
                          byte[] bytes,
                          long time,
                          int compressionMethod)
    • Method Detail

      • getPath

        public java.lang.String getPath()
        Specified by:
        getPath in interface ZipEntrySource
        Returns:
        path of the given entry (not null).
      • getEntry

        public java.util.zip.ZipEntry getEntry()
        Specified by:
        getEntry in interface ZipEntrySource
        Returns:
        meta-data of the given entry (not null).
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Specified by:
        getInputStream in interface ZipEntrySource
        Returns:
        an input stream of the given entry or null if this entry is a directory.
        Throws:
        java.io.IOException - can throw getting the InputStream
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object