Package io.trino.hive.formats
Class DataOutputStream
java.lang.Object
java.io.OutputStream
io.trino.hive.formats.DataOutputStream
- All Implemented Interfaces:
Closeable,DataOutput,Flushable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionDataOutputStream(OutputStream inputStream) DataOutputStream(OutputStream outputStream, int bufferSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()longlonglongSize()toString()voidwrite(byte[] source) voidwrite(byte[] source, int sourceIndex, int length) voidwrite(int value) voidwrite(io.airlift.slice.Slice source) voidwrite(io.airlift.slice.Slice source, int sourceIndex, int length) voidwrite(InputStream in, int length) voidwriteBoolean(boolean value) voidwriteByte(int value) voidwriteBytes(String s) Deprecated.voidwriteChar(int value) Deprecated.voidwriteChars(String s) Deprecated.voidwriteDouble(double value) voidwriteFloat(float value) voidwriteInt(int value) voidwriteLong(long value) voidwriteShort(int value) voidDeprecated.voidwriteZero(int length) Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
DataOutputStream
-
DataOutputStream
-
-
Method Details
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
longSize
public long longSize() -
getRetainedSize
public long getRetainedSize() -
writeBoolean
- Specified by:
writeBooleanin interfaceDataOutput- Throws:
IOException
-
write
- Specified by:
writein interfaceDataOutput- Specified by:
writein classOutputStream- Throws:
IOException
-
writeByte
- Specified by:
writeBytein interfaceDataOutput- Throws:
IOException
-
writeShort
- Specified by:
writeShortin interfaceDataOutput- Throws:
IOException
-
writeInt
- Specified by:
writeIntin interfaceDataOutput- Throws:
IOException
-
writeLong
- Specified by:
writeLongin interfaceDataOutput- Throws:
IOException
-
writeFloat
- Specified by:
writeFloatin interfaceDataOutput- Throws:
IOException
-
writeDouble
- Specified by:
writeDoublein interfaceDataOutput- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Specified by:
writein interfaceDataOutput- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein interfaceDataOutput- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Throws:
IOException
-
writeZero
- Throws:
IOException
-
toString
-
writeChar
Deprecated.Unsupported operation- Specified by:
writeCharin interfaceDataOutput- Throws:
UnsupportedOperationException- always
-
writeChars
Deprecated.Unsupported operation- Specified by:
writeCharsin interfaceDataOutput- Throws:
UnsupportedOperationException- always
-
writeUTF
Deprecated.Unsupported operation- Specified by:
writeUTFin interfaceDataOutput- Throws:
UnsupportedOperationException- always
-
writeBytes
Deprecated.Unsupported operation- Specified by:
writeBytesin interfaceDataOutput- Throws:
UnsupportedOperationException- always
-