public class SplitOutputStream extends OutputStream
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) |
flush
public SplitOutputStream(File file) throws FileNotFoundException, ZipException
FileNotFoundException
ZipException
public SplitOutputStream(File file, long splitLength) throws FileNotFoundException, ZipException
FileNotFoundException
ZipException
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 boolean checkBufferSizeAndStartNextSplitFile(int bufferSize) throws ZipException
bufferSize
- ZipException
public void seek(long pos) throws IOException
IOException
public int skipBytes(int n) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public long getFilePointer() throws IOException
IOException
public boolean isSplitZipFile()
public long getSplitLength()
public int getCurrentSplitFileCounter()
Copyright © 2019. All rights reserved.