Class SplitOutputStream
java.lang.Object
java.io.OutputStream
net.lingala.zip4j.io.outputstream.SplitOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,OutputStreamWithSplitZipSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckBufferSizeAndStartNextSplitFile(int bufferSize) Checks if the buffer size is sufficient for the current split file.voidclose()intlonglongbooleanvoidseek(long pos) intskipBytes(int n) voidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) Methods inherited from class java.io.OutputStream
flush
-
Constructor Details
-
SplitOutputStream
- Throws:
FileNotFoundExceptionZipException
-
SplitOutputStream
- Throws:
FileNotFoundExceptionZipException
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
checkBufferSizeAndStartNextSplitFile
Checks if the buffer size is sufficient for the current split file. If not a new split file will be started.- Parameters:
bufferSize-- Returns:
- true if a new split file was started else false
- Throws:
ZipException
-
seek
- Throws:
IOException
-
skipBytes
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
getFilePointer
- Specified by:
getFilePointerin interfaceOutputStreamWithSplitZipSupport- Throws:
IOException
-
isSplitZipFile
public boolean isSplitZipFile() -
getSplitLength
public long getSplitLength() -
getCurrentSplitFileCounter
public int getCurrentSplitFileCounter()- Specified by:
getCurrentSplitFileCounterin interfaceOutputStreamWithSplitZipSupport
-