Class DataOutputStream
java.lang.Object
java.io.OutputStream
org.apache.hadoop.mapred.nativetask.buffer.DataOutputStream
- All Implemented Interfaces:
Closeable,DataOutput,Flushable,AutoCloseable
- Direct Known Subclasses:
ByteBufferDataWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanCheck whether there is unflushed data stored in the streamabstract booleanshortOfSpace(int length) Check whether this buffer has enough space to store length of bytesMethods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.DataOutput
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
Constructor Details
-
DataOutputStream
public DataOutputStream()
-
-
Method Details
-
shortOfSpace
Check whether this buffer has enough space to store length of bytes- Parameters:
length- length of bytes- Throws:
IOException
-
hasUnFlushedData
public abstract boolean hasUnFlushedData()Check whether there is unflushed data stored in the stream
-