Class ZipStandardSplitFileInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class ZipStandardSplitFileInputStream
    extends SplitFileInputStream
    A split input stream for zip file split as per zip specification. They end with .z01, .z02... .zip
    • Field Detail

      • randomAccessFile

        protected java.io.RandomAccessFile randomAccessFile
      • zipFile

        protected java.io.File zipFile
      • lastSplitZipFileNumber

        private int lastSplitZipFileNumber
      • isSplitZipArchive

        private boolean isSplitZipArchive
      • currentSplitFileCounter

        private int currentSplitFileCounter
      • singleByteArray

        private byte[] singleByteArray
    • Constructor Detail

      • ZipStandardSplitFileInputStream

        public ZipStandardSplitFileInputStream​(java.io.File zipFile,
                                               boolean isSplitZipArchive,
                                               int lastSplitZipFileNumber)
                                        throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
        Throws:
        java.io.IOException
      • openRandomAccessFileForIndex

        protected void openRandomAccessFileForIndex​(int zipFileIndex)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • getNextSplitFile

        protected java.io.File getNextSplitFile​(int zipFileIndex)
                                         throws java.io.IOException
        Throws:
        java.io.IOException