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 OutputStream
Construct an OutputStream from the given DataOutput.void
write
(byte[] b) void
write
(byte[] b, int off, int len) void
write
(int b) Methods inherited from class java.io.OutputStream
close, flush
-
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:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-