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 TypeMethodDescriptionboolean
checkBuffSizeAndStartNextSplitFile
(int bufferSize) void
close()
int
long
long
long
long
boolean
void
write
(byte[] b) void
write
(byte[] b, int off, int len) void
write
(int b) Methods inherited from class java.io.OutputStream
flush
-
Field Details
-
outputStream
-
numberOfBytesWritten
private long numberOfBytesWritten
-
-
Constructor Details
-
CountingOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
getCurrentSplitFileCounter
public int getCurrentSplitFileCounter()- Specified by:
getCurrentSplitFileCounter
in interfaceOutputStreamWithSplitZipSupport
-
getOffsetForNextEntry
- Throws:
IOException
-
getSplitLength
public long getSplitLength() -
isSplitZipFile
public boolean isSplitZipFile() -
getNumberOfBytesWritten
- Throws:
IOException
-
checkBuffSizeAndStartNextSplitFile
- Throws:
ZipException
-
getFilePointer
- Specified by:
getFilePointer
in interfaceOutputStreamWithSplitZipSupport
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-