|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
org.apache.hadoop.fs.FSDataOutputStream
@InterfaceAudience.Public @InterfaceStability.Stable public class FSDataOutputStream
Utility that wraps a OutputStream in a DataOutputStream.
| Field Summary |
|---|
| Fields inherited from class java.io.DataOutputStream |
|---|
written |
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
FSDataOutputStream(OutputStream out)
Deprecated. |
|
FSDataOutputStream(OutputStream out,
org.apache.hadoop.fs.FileSystem.Statistics stats)
|
|
FSDataOutputStream(OutputStream out,
org.apache.hadoop.fs.FileSystem.Statistics stats,
long startPosition)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the underlying output stream. |
long |
getPos()
Get the current position in the output stream. |
void |
hflush()
Flush out the data in client's user buffer. |
void |
hsync()
Similar to posix fsync, flush out the data in client's user buffer all the way to the disk device (but the disk may have it in its cache). |
void |
setDropBehind(Boolean dropBehind)
Configure whether the stream should drop the cache. |
void |
sync()
Deprecated. |
| Methods inherited from class java.io.DataOutputStream |
|---|
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
| Methods inherited from class java.io.FilterOutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.io.DataOutput |
|---|
write |
| Constructor Detail |
|---|
@Deprecated
public FSDataOutputStream(OutputStream out)
throws IOException
IOException
public FSDataOutputStream(OutputStream out,
org.apache.hadoop.fs.FileSystem.Statistics stats)
throws IOException
IOException
public FSDataOutputStream(OutputStream out,
org.apache.hadoop.fs.FileSystem.Statistics stats,
long startPosition)
throws IOException
IOException| Method Detail |
|---|
public long getPos()
throws IOException
IOException
public void close()
throws IOException
close in interface Closeableclose in class FilterOutputStreamIOException
@Deprecated
public void sync()
throws IOException
sync in interface SyncableIOExceptionSyncable.hflush()
public void hflush()
throws IOException
Syncable
hflush in interface SyncableIOException - if any error occurs
public void hsync()
throws IOException
Syncable
hsync in interface SyncableIOException - if error occurs
public void setDropBehind(Boolean dropBehind)
throws IOException
CanSetDropBehind
setDropBehind in interface CanSetDropBehinddropBehind - Whether to drop the cache. null means to use the
default value.
IOException - If there was an error changing the dropBehind
setting.
UnsupportedOperationException If this stream doesn't support
setting the drop-behind.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||