public interface DataOutputExt extends DataOutput
Extension of DataOutputStream to support writing unsigned byte, short, int and long values as well as ASCII (0 terminated) strings.
Modifier and Type | Method and Description |
---|---|
void |
close()
Flushes and closes the underlying stream
|
void |
flush()
Flushes this data output stream.
|
void |
writeASCII(String val)
Writes a 0 terminated ASCII string to stream
|
void |
writeUnsignedByte(short val)
Writes the lowest significant byte of the given
short value as an unsigned byte
|
void |
writeUnsignedInt(long val)
Writes the 4 lowest significant bytes of the given
long value as an unsigned int
|
void |
writeUnsignedLong(long val)
Writes long value as unsigned.
|
void |
writeUnsignedShort(int val)
Writes the 2 lowest significant bytes of the given
int value as an unsigned short
|
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
void writeUnsignedByte(short val) throws IOException
val
- IOException
void writeUnsignedShort(int val) throws IOException
val
- IOException
void writeUnsignedInt(long val) throws IOException
val
- IOException
void writeUnsignedLong(long val) throws IOException
val
- IOException
void writeASCII(String val) throws IOException
val
- IOException
void flush() throws IOException
IOException
void close() throws IOException
IOException
Copyright © 2016 Sensia Software LLC. All rights reserved.