Package io.trino.hive.formats.line
Class LineBuffer
java.lang.Object
java.io.OutputStream
io.trino.hive.formats.line.LineBuffer
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
LineBuffer
public LineBuffer(int initialBufferSize, int maxLength)
-
-
Method Details
-
getBuffer
public byte[] getBuffer() -
isEmpty
public boolean isEmpty() -
getLength
public int getLength() -
reset
public void reset() -
getRetainedSize
public long getRetainedSize() -
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Throws:
IOException
-
flush
public void flush()- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream
-
toString
-