Inheritance diagram for fiftyone.common.wrappers.data.BinaryWriter:
Collaboration diagram for fiftyone.common.wrappers.data.BinaryWriter:
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
-
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
