java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.lang.AutoCloseable, org.apache.hadoop.fs.StreamCapabilities, org.apache.hadoop.fs.Syncablepublic class SyncableDataOutputStream
extends java.io.DataOutputStream
implements org.apache.hadoop.fs.Syncable, org.apache.hadoop.fs.StreamCapabilities
| Constructor | Description |
|---|---|
SyncableDataOutputStream(java.io.OutputStream out) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
java.io.OutputStream |
getOutStream() |
Get a reference to the wrapped output stream.
|
boolean |
hasCapability(java.lang.String capability) |
|
void |
hflush() |
|
void |
hsync() |
|
void |
sync() |
Deprecated.
|
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic SyncableDataOutputStream(java.io.OutputStream out)
@LimitedPrivate("HDFS")
public java.io.OutputStream getOutStream()
public boolean hasCapability(java.lang.String capability)
hasCapability in interface org.apache.hadoop.fs.StreamCapabilitiespublic void hflush()
throws java.io.IOException
hflush in interface org.apache.hadoop.fs.Syncablejava.io.IOExceptionpublic void hsync()
throws java.io.IOException
hsync in interface org.apache.hadoop.fs.Syncablejava.io.IOException@Deprecated
public void sync()
throws java.io.IOException
sync in interface org.apache.hadoop.fs.Syncablejava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.FilterOutputStreamjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.