|
|||||||||
| Home >> All >> com >> chaoswg >> xtc4y >> [ classdesc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.chaoswg.xtc4y.classdesc
Class ByteContainer

java.lang.Objectcom.chaoswg.xtc4y.classdesc.ByteContainer
- public class ByteContainer
- extends java.lang.Object
this class is used to store several different data types into a byte container a retrieve at last a byte array or a DataInputStream
| Field Summary | |
private java.io.ByteArrayOutputStream |
baos
|
private java.io.DataOutputStream |
dos
|
| Constructor Summary | |
ByteContainer()
|
|
| Method Summary | |
void |
addByte(byte b)
Add a byte to the container |
void |
addByteArray(byte[] array)
Add a byte array to the container |
void |
addInt(int i)
Add an int to the container |
void |
addShort(short s)
Add a short to the container |
byte[] |
getByteArray()
|
java.io.DataInputStream |
getDataInputStream()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
baos
private java.io.ByteArrayOutputStream baos
dos
private java.io.DataOutputStream dos
| Constructor Detail |
ByteContainer
public ByteContainer()
| Method Detail |
addByte
public void addByte(byte b)
- Add a byte to the container
addShort
public void addShort(short s)
- Add a short to the container
addInt
public void addInt(int i)
- Add an int to the container
addByteArray
public void addByteArray(byte[] array)
- Add a byte array to the container
getByteArray
public byte[] getByteArray()
getDataInputStream
public java.io.DataInputStream getDataInputStream()
|
|||||||||
| Home >> All >> com >> chaoswg >> xtc4y >> [ classdesc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.chaoswg.xtc4y.classdesc.ByteContainer