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.FileNotFoundException
ZipException
public SplitOutputStream(java.io.File file) throws java.io.FileNotFoundException, ZipException
java.io.FileNotFoundException
ZipException
public SplitOutputStream(java.lang.String name, long splitLength) throws java.io.FileNotFoundException, ZipException
java.io.FileNotFoundException
ZipException
public SplitOutputStream(java.io.File file, long splitLength) throws java.io.FileNotFoundException, ZipException
java.io.FileNotFoundException
ZipException
public void write(int b) throws java.io.IOException
write
在类中 java.io.OutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
在类中 java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
在类中 java.io.OutputStream
java.io.IOException
public boolean checkBuffSizeAndStartNextSplitFile(int bufferSize) throws ZipException
bufferSize
- ZipException
public boolean isBuffSizeFitForCurrSplitFile(int bufferSize) throws ZipException
bufferSize
- ZipException
public void seek(long pos) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
在接口中 java.io.Closeable
close
在接口中 java.lang.AutoCloseable
close
在类中 java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
在接口中 java.io.Flushable
flush
在类中 java.io.OutputStream
java.io.IOException
public long getFilePointer() throws java.io.IOException
java.io.IOException
public boolean isSplitZipFile()
public long getSplitLength()
public int getCurrSplitFileCounter()