\r\n

51Degrees Pipeline Java  4.4

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. More...
 BinaryWriter (ByteArrayOutputStream outputStream)
void  writeInt16 (short value) throws IOException
Write a short to the output file. More...
void  writeInt32 (int value) throws IOException
Write an int to the output file. More...
void  writeInt64 (long value) throws IOException
Write a long to the output file. More...
void  writeBytes (byte[] value) throws IOException
Write a series of bytes to the output file. More...
void  writeBytes (byte[] value, int length) throws IOException
void  writeByte (byte value) throws IOException
Write a single byte to the output file. More...
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
outputStream - where the data file should be written
Exceptions
IOException - if 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
value - byte
Exceptions
IOException - if 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
value - bytes
Exceptions
IOException - if 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
value - short
Exceptions
IOException - if 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
value - int
Exceptions
IOException - if 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
value - long
Exceptions
IOException - if there was a problem writing to the output stream
On This Page