public class FileChannelOutputStream extends OutputStream
| Constructor and Description |
|---|
FileChannelOutputStream(FileChannel channel,
boolean append)
Create a new file object output stream from the file channel.
|
public FileChannelOutputStream(FileChannel channel, boolean append) throws IOException
channel - the file channelappend - true for append mode, false for truncate and overwriteIOExceptionpublic 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 void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.