public interface DataOutput extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
write(byte[] b)
Writes to the output stream all the bytes in array b.
|
void |
write(byte[] b,
int off,
int len)
Writes len bytes from array b, in order, to the output stream.
|
void |
write(int b)
Writes to the output stream the eight low-order bits of the argument b.
|
void |
writeBoolean(boolean v)
Writes a boolean value to this output stream.
|
void |
writeByte(int v)
Writes to the output stream the eight low- order bits of the argument v.
|
void |
writeChar(int v)
Writes a char value, which is comprised of two bytes, to the output stream.
|
void |
writeChars(String s)
Writes every character in the string s, to the output stream, in order, two bytes per character.
|
void |
writeDouble(double v)
Writes a double value, which is comprised of eight bytes, to the output stream.
|
void |
writeFloat(float v)
Writes a float value, which is comprised of four bytes, to the output stream.
|
void |
writeInt(int v)
Writes an int value, which is comprised of four bytes, to the output stream.
|
void |
writeLong(long v)
Writes an long value, which is comprised of four bytes, to the output stream.
|
void |
writeShort(int v)
Writes two bytes to the output stream to represent the value of the argument.
|
void |
writeUTF(String s)
Writes two bytes of length information to the output stream, followed by the Java modified UTF representation of every character in the string s.
|
close
void write(byte[] b) throws IOException
IOException
void write(byte[] b, int off, int len) throws IOException
IOException
void write(int b) throws IOException
IOException
void writeBoolean(boolean v) throws IOException
IOException
void writeByte(int v) throws IOException
IOException
void writeChar(int v) throws IOException
IOException
void writeChars(String s) throws IOException
IOException
void writeDouble(double v) throws IOException
IOException
void writeFloat(float v) throws IOException
IOException
void writeInt(int v) throws IOException
IOException
void writeLong(long v) throws IOException
IOException
void writeShort(int v) throws IOException
IOException
void writeUTF(String s) throws IOException
IOException