Package org.apache.drill.common.util
Class DataOutputOutputStream
java.lang.Object
java.io.OutputStream
org.apache.drill.common.util.DataOutputOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionstatic OutputStreamConstruct an OutputStream from the given DataOutput.voidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
Method Details
-
constructOutputStream
Construct an OutputStream from the given DataOutput. If 'out' is already an OutputStream, simply returns it. Otherwise, wraps it in an OutputStream.- Parameters:
out- the DataOutput to wrap- Returns:
- an OutputStream instance that outputs to 'out'
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-