public class SplitOutputStream extends OutputStream implements OutputStreamWithSplitZipSupport
| Constructor and Description |
|---|
SplitOutputStream(File file) |
SplitOutputStream(File file,
long splitLength) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkBufferSizeAndStartNextSplitFile(int bufferSize)
Checks if the buffer size is sufficient for the current split file.
|
void |
close() |
int |
getCurrentSplitFileCounter() |
long |
getFilePointer() |
long |
getSplitLength() |
boolean |
isSplitZipFile() |
void |
seek(long pos) |
int |
skipBytes(int n) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flushpublic SplitOutputStream(File file) throws FileNotFoundException, ZipException
FileNotFoundExceptionZipExceptionpublic SplitOutputStream(File file, long splitLength) throws FileNotFoundException, ZipException
FileNotFoundExceptionZipExceptionpublic 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 boolean checkBufferSizeAndStartNextSplitFile(int bufferSize)
throws ZipException
bufferSize - ZipExceptionpublic void seek(long pos)
throws IOException
IOExceptionpublic int skipBytes(int n)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic long getFilePointer()
throws IOException
getFilePointer in interface OutputStreamWithSplitZipSupportIOExceptionpublic boolean isSplitZipFile()
public long getSplitLength()
public int getCurrentSplitFileCounter()
getCurrentSplitFileCounter in interface OutputStreamWithSplitZipSupportCopyright © 2021. All rights reserved.