public class CountingOutputStream extends OutputStream
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) |
flush
public CountingOutputStream(OutputStream outputStream)
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public int getCurrentSplitFileCounter()
public long getOffsetForNextEntry() throws IOException
IOException
public long getSplitLength()
public boolean isSplitZipFile()
public long getNumberOfBytesWritten() throws IOException
IOException
public boolean checkBuffSizeAndStartNextSplitFile(int bufferSize) throws ZipException
ZipException
public long getFilePointer() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2019. All rights reserved.