|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.io.DataOutputStream
public abstract class DataOutputStream
This class is part of the Egothor Project
Constructor Summary | |
---|---|
DataOutputStream()
|
Method Summary | |
---|---|
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(java.lang.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,
java.lang.String str)
Write a string as length (pack7) followed by UTF code of the string. |
abstract long |
written()
Description of the Method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataOutputStream()
Method Detail |
---|
public final void writeFully(byte[] buf) throws java.io.IOException
writeFully
in interface DataOutput
buf
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void close() throws java.io.IOException
java.io.IOException
- Description of the Exceptionpublic abstract long written()
written
in interface DataOutput
public abstract void writeByte(int val) throws java.io.IOException
writeByte
in interface DataOutput
val
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void writeLong(long val) throws java.io.IOException
writeLong
in interface DataOutput
val
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void writeInt(int val) throws java.io.IOException
writeInt
in interface DataOutput
val
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void writeShort(int val) throws java.io.IOException
writeShort
in interface DataOutput
val
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic abstract void write(byte[] buf, int offset, int len) throws java.io.IOException
write
in interface DataOutput
buf
- Description of the Parameteroffset
- Description of the Parameterlen
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic final void writePack7(long val) throws java.io.IOException
writePack7
in interface DataOutput
val
- the long to convert and write
java.io.IOException
- if an I/O error occurspublic final void writePack7I(int val) throws java.io.IOException
writePack7I
in interface DataOutput
val
- the integer to convert and write
java.io.IOException
- if an I/O error occurspublic void writeString(int from, java.lang.String str) throws java.io.IOException
writeString
in interface DataOutput
from
- Description of the Parameterstr
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void writeBoolean(boolean value) throws java.io.IOException
writeBoolean
in interface DataOutput
java.io.IOException
public void printUTFS(java.lang.String str, int firstIndex, int lastIndex) throws java.io.IOException
DataOutput
printUTFS
in interface DataOutput
str
- Description of the ParameterfirstIndex
- Description of the ParameterlastIndex
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic static void copyFrom(DataInput in, DataOutput out, int length) throws java.io.IOException
java.io.IOException
public void copyFrom(DataInput in, int length) throws java.io.IOException
DataOutput
copyFrom
in interface DataOutput
java.io.IOException
public abstract void flush() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |