public class FSDataOutputStream extends DataOutputStream implements Syncable
OutputStream
in a DataOutputStream
,
buffers output through a BufferedOutputStream
and creates a checksum
file.written
out
构造器和说明 |
---|
FSDataOutputStream(OutputStream out)
已过时。
|
FSDataOutputStream(OutputStream out,
FileSystem.Statistics stats) |
FSDataOutputStream(OutputStream out,
FileSystem.Statistics stats,
long startPosition) |
限定符和类型 | 方法和说明 |
---|---|
void |
close() |
long |
getPos() |
OutputStream |
getWrappedStream() |
void |
sync()
Synchronize all buffer with the underlying devices.
|
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write
@Deprecated public FSDataOutputStream(OutputStream out) throws IOException
IOException
public FSDataOutputStream(OutputStream out, FileSystem.Statistics stats) throws IOException
IOException
public FSDataOutputStream(OutputStream out, FileSystem.Statistics stats, long startPosition) throws IOException
IOException
public long getPos() throws IOException
IOException
public void close() throws IOException
close
在接口中 Closeable
close
在接口中 AutoCloseable
close
在类中 FilterOutputStream
IOException
public OutputStream getWrappedStream()
public void sync() throws IOException
sync
在接口中 Syncable
IOException
Copyright © 2009 The Apache Software Foundation