Class ZipStandardSplitFileInputStream
java.lang.Object
java.io.InputStream
net.lingala.zip4j.io.inputstream.SplitFileInputStream
net.lingala.zip4j.io.inputstream.ZipStandardSplitFileInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
A split input stream for zip file split as per zip specification. They end with .z01, .z02... .zip
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate booleanprivate intprotected RandomAccessFileprivate byte[]protected File -
Constructor Summary
ConstructorsConstructorDescriptionZipStandardSplitFileInputStream(File zipFile, boolean isSplitZipArchive, int lastSplitZipFileNumber) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected FilegetNextSplitFile(int zipFileIndex) protected voidopenRandomAccessFileForIndex(int zipFileIndex) voidprepareExtractionForFileHeader(FileHeader fileHeader) intread()intread(byte[] b) intread(byte[] b, int off, int len) Methods inherited from class InputStream
available, mark, markSupported, reset, skip
-
Field Details
-
randomAccessFile
-
zipFile
-
lastSplitZipFileNumber
private int lastSplitZipFileNumber -
isSplitZipArchive
private boolean isSplitZipArchive -
currentSplitFileCounter
private int currentSplitFileCounter -
singleByteArray
private byte[] singleByteArray
-
-
Constructor Details
-
ZipStandardSplitFileInputStream
public ZipStandardSplitFileInputStream(File zipFile, boolean isSplitZipArchive, int lastSplitZipFileNumber) throws FileNotFoundException - Throws:
FileNotFoundException
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
prepareExtractionForFileHeader
- Specified by:
prepareExtractionForFileHeaderin classSplitFileInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
openRandomAccessFileForIndex
- Throws:
IOException
-
getNextSplitFile
- Throws:
IOException
-