Package com.aoindustries.io
Class MultiFileOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.aoindustries.io.MultiFileOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class MultiFileOutputStream extends OutputStream
AMultiFileOutputStreamwrites to multipleFiles as if they were one contiguous file.- Author:
- AO Industries, Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_FILE_SIZE
-
Constructor Summary
Constructors Constructor Description MultiFileOutputStream(File parent, String prefix, String suffix)MultiFileOutputStream(File parent, String prefix, String suffix, long fileSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()File[]getFiles()voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)
-
-
-
Field Detail
-
DEFAULT_FILE_SIZE
public static final long DEFAULT_FILE_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
write
public void write(byte[] b) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
getFiles
public File[] getFiles()
-
-