Class CountingOutputStream
java.lang.Object
java.io.OutputStream
net.lingala.zip4j.io.outputstream.CountingOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, OutputStreamWithSplitZipSupport
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckBuffSizeAndStartNextSplitFile(int bufferSize) voidclose()intlonglonglonglongbooleanvoidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) Methods inherited from class OutputStream
flush
-
Field Details
-
outputStream
-
numberOfBytesWritten
private long numberOfBytesWritten
-
-
Constructor Details
-
CountingOutputStream
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
getCurrentSplitFileCounter
public int getCurrentSplitFileCounter()- Specified by:
getCurrentSplitFileCounterin interfaceOutputStreamWithSplitZipSupport
-
getOffsetForNextEntry
- Throws:
IOException
-
getSplitLength
public long getSplitLength() -
isSplitZipFile
public boolean isSplitZipFile() -
getNumberOfBytesWritten
- Throws:
IOException
-
checkBuffSizeAndStartNextSplitFile
- Throws:
ZipException
-
getFilePointer
- Specified by:
getFilePointerin interfaceOutputStreamWithSplitZipSupport- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-