public interface TsFileOutput
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close the output.
|
void |
flush()
the same with
OutputStream.flush(). |
long |
getPosition()
gets the current position of the Output.
|
void |
truncate(long size)
The same with
FileChannel.truncate(long). |
OutputStream |
wrapAsStream()
convert this TsFileOutput as a outputstream.
|
void |
write(byte b)
Writes 1 byte to this output at the current position.
|
void |
write(byte[] b)
Writes
b.length bytes from the specified byte array to this output at the current
position. |
void |
write(ByteBuffer b)
Writes
b.remaining() bytes from the specified byte array to this output at the
current position. |
void write(byte[] b)
throws IOException
b.length bytes from the specified byte array to this output at the current
position.b - the data.IOException - if an I/O error occurs.void write(byte b)
throws IOException
b - the data.IOException - if an I/O error occurs.void write(ByteBuffer b) throws IOException
b.remaining() bytes from the specified byte array to this output at the
current position.b - the data.IOException - if an I/O error occurs.long getPosition()
throws IOException
IOException - if an I/O error occurs.void close()
throws IOException
IOException - if an I/O error occurs.OutputStream wrapAsStream() throws IOException
IOException - if an I/O error occurs.void flush()
throws IOException
OutputStream.flush().IOException - if an I/O error occurs.void truncate(long size)
throws IOException
FileChannel.truncate(long).size - size The new size, a non-negative byte countIOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.