public class PacketHeaderDataOutputStream
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(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 and Description |
---|
PacketHeaderDataOutputStream()
Constructor.
|
PacketHeaderDataOutputStream(BufferedDataOutputStream bufferedDataOutputStream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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() |
BufferedDataOutputStream bufferedDataOutputStream
byte t
byte T
private static final int DEFAULT_BUFFER_SIZE
PacketHeaderDataOutputStream()
PacketHeaderDataOutputStream(BufferedDataOutputStream bufferedDataOutputStream)
bufferedDataOutputStream
- 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.IOException
public byte[] getByteArray()
public java.lang.String toString()
toString
in class java.lang.Object
public void list(java.io.PrintStream out)
out
- an output stream.
CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Group on Interactive Coding of Images (GICI) (contact)