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 |
|---|---|
void |
close() |
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, writeUTFwriteclone, 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.SyncableIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionCopyright © 2008–2021 Apache Software Foundation. All rights reserved.