51Degrees Pipeline for Java

fiftyone.common.wrappers.data.BinaryWriter Class Reference

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

[legend]

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

[legend]

Classes

interface  WritableSeekable

Public Member Functions

 BinaryWriter (FileOutputStream outputStream) throws IOException
 Construct a new instance of the binary writer ready to write a data set to the file specified.
 BinaryWriter (ByteArrayOutputStream outputStream)
void writeInt16 (short value) throws IOException
 Write a short to the output file.
void writeInt32 (int value) throws IOException
 Write an int to the output file.
void writeInt64 (long value) throws IOException
 Write a long to the output file.
void writeBytes (byte[] value) throws IOException
 Write a series of bytes to the output file.
void writeBytes (byte[] value, int length) throws IOException
void writeByte (byte value) throws IOException
 Write a single byte to the output file.
void close () throws IOException

Constructor & Destructor Documentation

◆ BinaryWriter()

fiftyone.common.wrappers.data.BinaryWriter.BinaryWriter ( FileOutputStream outputStream) throws IOException

Construct a new instance of the binary writer ready to write a data set to the file specified.

Parameters
outputStreamwhere the data file should be written
Exceptions
IOExceptionif there was a problem writing to the output stream

Member Function Documentation

◆ writeByte()

void fiftyone.common.wrappers.data.BinaryWriter.writeByte ( byte value) throws IOException

Write a single byte to the output file.

Parameters
valuebyte
Exceptions
IOExceptionif there was a problem writing to the output stream

◆ writeBytes()

void fiftyone.common.wrappers.data.BinaryWriter.writeBytes ( byte[] value) throws IOException

Write a series of bytes to the output file.

Parameters
valuebytes
Exceptions
IOExceptionif there was a problem writing to the output stream

◆ writeInt16()

void fiftyone.common.wrappers.data.BinaryWriter.writeInt16 ( short value) throws IOException

Write a short to the output file.

Parameters
valueshort
Exceptions
IOExceptionif there was a problem writing to the output stream

◆ writeInt32()

void fiftyone.common.wrappers.data.BinaryWriter.writeInt32 ( int value) throws IOException

Write an int to the output file.

Parameters
valueint
Exceptions
IOExceptionif there was a problem writing to the output stream

◆ writeInt64()

void fiftyone.common.wrappers.data.BinaryWriter.writeInt64 ( long value) throws IOException

Write a long to the output file.

Parameters
valuelong
Exceptions
IOExceptionif there was a problem writing to the output stream