public abstract class SplitInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected RandomAccessFile |
randomAccessFile |
protected File |
zipFile |
| Constructor and Description |
|---|
SplitInputStream(File zipFile,
boolean isSplitZipArchive,
int lastSplitZipFileNumber) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract 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) |
available, mark, markSupported, reset, skipprotected RandomAccessFile randomAccessFile
protected File zipFile
public SplitInputStream(File zipFile, boolean isSplitZipArchive, int lastSplitZipFileNumber) throws FileNotFoundException
FileNotFoundExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void prepareExtractionForFileHeader(FileHeader fileHeader) throws IOException
IOExceptionprotected void openRandomAccessFileForIndex(int zipFileIndex)
throws IOException
IOExceptionprotected abstract File getNextSplitFile(int zipFileIndex) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2021. All rights reserved.