public class FSDataOutputStream extends DataOutputStream implements Syncable
OutputStream
in a DataOutputStream
,
buffers output through a BufferedOutputStream
and creates a checksum
file.written
out
Constructor and Description |
---|
FSDataOutputStream(OutputStream out)
Deprecated.
|
FSDataOutputStream(OutputStream out,
FileSystem.Statistics stats) |
FSDataOutputStream(OutputStream out,
FileSystem.Statistics stats,
long startPosition) |
Modifier and Type | Method and Description |
---|---|
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
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
public OutputStream getWrappedStream()
public void sync() throws IOException
sync
in interface Syncable
IOException
Copyright © 2010 The Apache Software Foundation