\r\n

51Degrees Pipeline Java  4.4

51Degrees Pipeline for Java

fiftyone.common.wrappers.data.BinaryReader Class Reference

Inheritance diagram for fiftyone.common.wrappers.data.BinaryReader:

[legend]

Collaboration diagram for fiftyone.common.wrappers.data.BinaryReader:

[legend]

Public Member Functions

 BinaryReader (FileInputStream fileInputStream) throws IOException
 BinaryReader (ByteBuffer byteBuffer)
long  getSize ()
ByteBuffer  getBuffer ()
int  getPosition ()
void  setPosition (int position) float  readFloat () short  readInt16 () int  readInt32 () long  readInt64 () String  readLine () byte []  readBytes (final int length) byte []  toByteArray () void  copyTo (BinaryWriter writer) throws IOException byte  readByte () void  close ()
Set the byte buffer to null to prevent any further access to the under lying data. More...

Member Function Documentation

◆ close()

void fiftyone.common.wrappers.data.BinaryReader.close ( )

Set the byte buffer to null to prevent any further access to the under lying data.

This should be done before the channel is closed as the byte buffer could be tied to the channel. Any subsequent access to the methods will fail with a null object exception.

On This Page