public class SyncableDataOutputStream extends DataOutputStream implements org.apache.hadoop.fs.Syncable, org.apache.hadoop.fs.StreamCapabilities
writtenout| Constructor and Description |
|---|
SyncableDataOutputStream(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
getOutStream()
Get a reference to the wrapped output stream.
|
boolean |
hasCapability(String capability) |
void |
hflush() |
void |
hsync() |
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFclose, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic SyncableDataOutputStream(OutputStream out)
@InterfaceAudience.LimitedPrivate(value="HDFS") public OutputStream getOutStream()
public boolean hasCapability(String capability)
hasCapability in interface org.apache.hadoop.fs.StreamCapabilitiespublic void hflush()
throws IOException
hflush in interface org.apache.hadoop.fs.SyncableIOExceptionpublic void hsync()
throws IOException
hsync in interface org.apache.hadoop.fs.SyncableIOExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.