public class BoundedByteBuffer.Writer extends Object implements AutoCloseable
BoundedByteBuffer
At the end of data, should write and End Of File (EOF) using the writeEOF() method
Closing the Writer without EOF would throw a IOException (Broken stream)
Non thread safe. Writer should be used by a single thread.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the writer & all associated resources.
|
void |
write(byte[] src,
int offset,
int length)
Writes data to buffer.
|
void |
writeEOF()
Signals that stream ended successfully.
|
public void write(byte[] src, int offset, int length) throws InterruptedException, IOException
InterruptedException
IOException
public void writeEOF()
public void close()
close
in interface AutoCloseable
Copyright © 2019 Vitam. All rights reserved.