public class CountingOutputStream extends OutputStream implements OutputStreamWithSplitZipSupport
| Constructor and Description |
|---|
CountingOutputStream(OutputStream outputStream) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkBuffSizeAndStartNextSplitFile(int bufferSize) |
void |
close() |
int |
getCurrentSplitFileCounter() |
long |
getFilePointer() |
long |
getNumberOfBytesWritten() |
long |
getOffsetForNextEntry() |
long |
getSplitLength() |
boolean |
isSplitZipFile() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flushpublic CountingOutputStream(OutputStream outputStream)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic int getCurrentSplitFileCounter()
getCurrentSplitFileCounter in interface OutputStreamWithSplitZipSupportpublic long getOffsetForNextEntry()
throws IOException
IOExceptionpublic long getSplitLength()
public boolean isSplitZipFile()
public long getNumberOfBytesWritten()
throws IOException
IOExceptionpublic boolean checkBuffSizeAndStartNextSplitFile(int bufferSize)
throws ZipException
ZipExceptionpublic long getFilePointer()
throws IOException
getFilePointer in interface OutputStreamWithSplitZipSupportIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2021. All rights reserved.