public class SplitOutputStream extends OutputStream
| Constructor and Description |
|---|
SplitOutputStream(File file) |
SplitOutputStream(File file,
long splitLength) |
SplitOutputStream(String name) |
SplitOutputStream(String name,
long splitLength) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkBuffSizeAndStartNextSplitFile(int bufferSize)
Checks if the buffer size is sufficient for the current split file.
|
void |
close() |
void |
flush() |
int |
getCurrSplitFileCounter() |
long |
getFilePointer() |
long |
getSplitLength() |
boolean |
isBuffSizeFitForCurrSplitFile(int bufferSize)
Checks if the given buffer size will be fit in the current split file.
|
boolean |
isSplitZipFile() |
void |
seek(long pos) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public SplitOutputStream(String name) throws FileNotFoundException, ZipException
FileNotFoundExceptionZipExceptionpublic SplitOutputStream(File file) throws FileNotFoundException, ZipException
FileNotFoundExceptionZipExceptionpublic SplitOutputStream(String name, long splitLength) 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 checkBuffSizeAndStartNextSplitFile(int bufferSize)
throws ZipException
bufferSize - ZipExceptionpublic boolean isBuffSizeFitForCurrSplitFile(int bufferSize)
throws ZipException
bufferSize - ZipExceptionpublic void seek(long pos)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic long getFilePointer()
throws IOException
IOExceptionpublic boolean isSplitZipFile()
public long getSplitLength()
public int getCurrSplitFileCounter()
Copyright © 2013. All rights reserved.