public interface DataOutput
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(DataInput in,
int length)
Copies bytes of a given length from input stream.
|
void |
printUTFS(String str,
int firstIndex,
int lastIndex)
Prints a string portion.
|
void |
write(byte[] buf,
int offset,
int len) |
void |
writeBoolean(boolean value) |
void |
writeByte(int val)
Write the given byte, which will be converted to Pack7 format.
|
void |
writeFully(byte[] buf)
Description of the Method
|
void |
writeInt(int val)
Description of the Method
|
void |
writeLong(long val)
Description of the Method
|
void |
writePack7(long val)
Write the given long, which will be converted to Pack7 format.
|
void |
writePack7I(int val)
Write the given integer, which will be converted to Pack7 format.
|
void |
writeShort(int val)
Description of the Method
|
void |
writeString(int from,
String str)
Write a string as length (pack7) followed by UTF code of the
string.
|
long |
written() |
long written()
void write(byte[] buf, int offset, int len) throws IOException
IOException
void writeByte(int val) throws IOException
val
- the long to convert and writeIOException
- if an I/O error occursvoid writeLong(long val) throws IOException
val
- Description of the ParameterIOException
- Description of the Exceptionvoid writeInt(int val) throws IOException
val
- Description of the ParameterIOException
- Description of the Exceptionvoid writeShort(int val) throws IOException
val
- Description of the ParameterIOException
- Description of the Exceptionvoid writeFully(byte[] buf) throws IOException
buf
- Description of the ParameterIOException
- Description of the Exceptionvoid writePack7(long val) throws IOException
val
- the long to convert and writeIOException
- if an I/O error occursvoid writePack7I(int val) throws IOException
val
- the integer to convert and writeIOException
- if an I/O error occursvoid writeString(int from, String str) throws IOException
from
- Description of the Parameterstr
- Description of the ParameterIOException
- Description of the Exceptionvoid printUTFS(String str, int firstIndex, int lastIndex) throws IOException
firstIndex
- Description of the ParameterlastIndex
- Description of the Parameterstr
- Description of the ParameterIOException
- Description of the Exceptionvoid writeBoolean(boolean value) throws IOException
IOException
void copyFrom(DataInput in, int length) throws IOException
IOException
Copyright © 2016 Egothor. All Rights Reserved.