|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Server.LogicalTarget.JPEG2000.Codestream.PacketHeaderDataOutputStream
public class PacketHeaderDataOutputStream
This class implements a data output stream for the packet header encoder machinery. It includes all necessary bits to ensure that the packet header will not contain any of code-stream's delimiting marker codes (0xFF90 to 0xFFFF).
| Field Summary | |
|---|---|
(package private) BufferedDataOutputStream |
bufferedDataOutputStream
|
private static int |
DEFAULT_BUFFER_SIZE
Indicates the default size of the buffer which will be used to encode the packet header. |
(package private) byte |
t
Index and buffer for bit stuffing |
(package private) byte |
T
Index and buffer for bit stuffing |
| Constructor Summary | |
|---|---|
PacketHeaderDataOutputStream()
Constructor. |
|
PacketHeaderDataOutputStream(BufferedDataOutputStream bufferedDataOutputStream)
Constructor. |
|
| Method Summary | |
|---|---|
void |
bitStuffing()
Bit stuffing up to 8 bits. |
void |
emitTagBit(byte x)
Add a bit to the packet header. |
byte[] |
getByteArray()
Returns the array of bytes. |
void |
list(java.io.PrintStream out)
Prints this Packet Header Data Output Stream out to the specified output stream. |
void |
reset()
Sets attributes to their initial values. |
void |
setInput(BufferedDataOutputStream bufferedDataOutputStream)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
BufferedDataOutputStream bufferedDataOutputStream
byte t
byte T
private static final int DEFAULT_BUFFER_SIZE
| Constructor Detail |
|---|
PacketHeaderDataOutputStream()
PacketHeaderDataOutputStream(BufferedDataOutputStream bufferedDataOutputStream)
bufferedDataOutputStream - | Method Detail |
|---|
public void reset()
public void setInput(BufferedDataOutputStream bufferedDataOutputStream)
bufferedDataOutputStream -
public void emitTagBit(byte x)
throws java.io.IOException
x - bit to be packect.
java.io.IOException
public void bitStuffing()
throws java.io.IOException
java.io.IOExceptionpublic byte[] getByteArray()
public java.lang.String toString()
toString in class java.lang.Objectpublic void list(java.io.PrintStream out)
out - an output stream.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||