public abstract class DataOutputStream extends Object implements DataOutput
| Constructor and Description |
|---|
DataOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Description of the Method
|
static void |
copyFrom(DataInput in,
DataOutput out,
int length) |
void |
copyFrom(DataInput in,
int length)
Copies bytes of a given length from input stream.
|
abstract void |
flush() |
void |
printUTFS(String str,
int firstIndex,
int lastIndex)
Prints a string portion.
|
abstract void |
write(byte[] buf,
int offset,
int len)
Description of the Method
|
void |
writeBoolean(boolean value) |
abstract void |
writeByte(int val)
Description of the Method
|
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.
|
abstract long |
written()
Description of the Method
|
public final void writeFully(byte[] buf)
throws IOException
writeFully in interface DataOutputbuf - Description of the ParameterIOException - Description of the Exceptionpublic void close()
throws IOException
IOException - Description of the Exceptionpublic abstract long written()
written in interface DataOutputpublic abstract void writeByte(int val)
throws IOException
writeByte in interface DataOutputval - Description of the ParameterIOException - Description of the Exceptionpublic void writeLong(long val)
throws IOException
writeLong in interface DataOutputval - Description of the ParameterIOException - Description of the Exceptionpublic void writeInt(int val)
throws IOException
writeInt in interface DataOutputval - Description of the ParameterIOException - Description of the Exceptionpublic void writeShort(int val)
throws IOException
writeShort in interface DataOutputval - Description of the ParameterIOException - Description of the Exceptionpublic abstract void write(byte[] buf,
int offset,
int len)
throws IOException
write in interface DataOutputbuf - Description of the Parameteroffset - Description of the Parameterlen - Description of the ParameterIOException - Description of the Exceptionpublic final void writePack7(long val)
throws IOException
writePack7 in interface DataOutputval - the long to convert and writeIOException - if an I/O error occurspublic final void writePack7I(int val)
throws IOException
writePack7I in interface DataOutputval - the integer to convert and writeIOException - if an I/O error occurspublic void writeString(int from,
String str)
throws IOException
writeString in interface DataOutputfrom - Description of the Parameterstr - Description of the ParameterIOException - Description of the Exceptionpublic void writeBoolean(boolean value)
throws IOException
writeBoolean in interface DataOutputIOExceptionpublic void printUTFS(String str, int firstIndex, int lastIndex) throws IOException
DataOutputprintUTFS in interface DataOutputstr - Description of the ParameterfirstIndex - Description of the ParameterlastIndex - Description of the ParameterIOException - Description of the Exceptionpublic static void copyFrom(DataInput in, DataOutput out, int length) throws IOException
IOExceptionpublic void copyFrom(DataInput in, int length) throws IOException
DataOutputcopyFrom in interface DataOutputIOExceptionpublic abstract void flush()
throws IOException
IOExceptionCopyright © 2016 Egothor. All Rights Reserved.