public class BigEndianBinaryWriter extends BinaryWriter
out
Constructor and Description |
---|
BigEndianBinaryWriter(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
int |
writeInt(int integer)
Write a signed int to the output stream.
|
int |
writeLong(long integer)
Write a signed long to the output stream.
|
int |
writeShort(short integer)
Write a signed short to the output stream.
|
int |
writeUInt16(int number) |
int |
writeUInt24(int number) |
int |
writeUInt32(int number) |
close, write, write, write, writeBinary, writeByte, writeDouble, writeSigned, writeSigned, writeUInt8, writeUnsigned, writeVarint, writeVarint, writeZigzag, writeZigzag
flush
public BigEndianBinaryWriter(OutputStream out)
public int writeShort(short integer) throws IOException
BinaryWriter
writeShort
in class BinaryWriter
integer
- The number to writeBinary.IOException
- if unable to write to stream.public int writeInt(int integer) throws IOException
BinaryWriter
writeInt
in class BinaryWriter
integer
- The number to writeBinary.IOException
- if unable to write to stream.public int writeLong(long integer) throws IOException
BinaryWriter
writeLong
in class BinaryWriter
integer
- The number to writeBinary.IOException
- if unable to write to stream.public int writeUInt16(int number) throws IOException
writeUInt16
in class BinaryWriter
number
- Unsigned short to writeBinary.IOException
- if unable to write to stream.public int writeUInt24(int number) throws IOException
writeUInt24
in class BinaryWriter
number
- Unsigned short to writeBinary.IOException
- if unable to write to stream.public int writeUInt32(int number) throws IOException
writeUInt32
in class BinaryWriter
number
- Unsigned short to writeBinary.IOException
- if unable to write to stream.Copyright © 2017. All rights reserved.