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 overwriteIOException
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 void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.