Package net.lingala.zip4j.io.inputstream
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 int
private boolean
private int
protected RandomAccessFile
private byte[]
protected File
-
Constructor Summary
ConstructorsConstructorDescriptionZipStandardSplitFileInputStream
(File zipFile, boolean isSplitZipArchive, int lastSplitZipFileNumber) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected File
getNextSplitFile
(int zipFileIndex) protected void
openRandomAccessFileForIndex
(int zipFileIndex) void
prepareExtractionForFileHeader
(FileHeader fileHeader) int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) Methods inherited from class java.io.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:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
prepareExtractionForFileHeader
- Specified by:
prepareExtractionForFileHeader
in classSplitFileInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
openRandomAccessFileForIndex
- Throws:
IOException
-
getNextSplitFile
- Throws:
IOException
-