public class FileChannelOutputStream extends OutputStream
| 构造器和说明 |
|---|
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 在类中 OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write 在类中 OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write 在类中 OutputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 OutputStreamIOExceptionCopyright © 2017. All rights reserved.