public class SplitOutputStream
extends java.io.OutputStream
| 构造器和说明 |
|---|
SplitOutputStream(java.io.File file) |
SplitOutputStream(java.io.File file,
long splitLength) |
SplitOutputStream(java.lang.String name) |
SplitOutputStream(java.lang.String name,
long splitLength) |
| 限定符和类型 | 方法和说明 |
|---|---|
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(java.lang.String name)
throws java.io.FileNotFoundException,
ZipException
java.io.FileNotFoundExceptionZipExceptionpublic SplitOutputStream(java.io.File file)
throws java.io.FileNotFoundException,
ZipException
java.io.FileNotFoundExceptionZipExceptionpublic SplitOutputStream(java.lang.String name,
long splitLength)
throws java.io.FileNotFoundException,
ZipException
java.io.FileNotFoundExceptionZipExceptionpublic SplitOutputStream(java.io.File file,
long splitLength)
throws java.io.FileNotFoundException,
ZipException
java.io.FileNotFoundExceptionZipExceptionpublic void write(int b)
throws java.io.IOException
write 在类中 java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write 在类中 java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write 在类中 java.io.OutputStreamjava.io.IOExceptionpublic boolean checkBuffSizeAndStartNextSplitFile(int bufferSize)
throws ZipException
bufferSize - ZipExceptionpublic boolean isBuffSizeFitForCurrSplitFile(int bufferSize)
throws ZipException
bufferSize - ZipExceptionpublic void seek(long pos)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close 在接口中 java.io.Closeableclose 在接口中 java.lang.AutoCloseableclose 在类中 java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush 在接口中 java.io.Flushableflush 在类中 java.io.OutputStreamjava.io.IOExceptionpublic long getFilePointer()
throws java.io.IOException
java.io.IOExceptionpublic boolean isSplitZipFile()
public long getSplitLength()
public int getCurrSplitFileCounter()