ExtBitStream

Inheritance: java.lang.Object

public class ExtBitStream

Constructors

Constructor Description
ExtBitStream(byte[] aBuffer, boolean isBitBuffer)
ExtBitStream(byte[] aBuffer, int bitsCount, boolean isBitBuffer)

Methods

Method Description
equals(Object arg0)
getAvailable()
getAvailableToLastSignificantByte()
getClass()
getLength()
getPosition()
hashCode()
notify()
notifyAll()
readBits(int count) Added for the support
readBitsBuffer(int count)
readByte()
readByte(int count)
readInt32(int count)
seek(int offset, int loc)
spyBitsBuffer(int count) Read bit data without moving position
spyByte()
spyByte(int count)
spyInt32(int count) Read bit data without moving position
toString()
trimmToLastSignificantByte()
wait()
wait(long arg0)
wait(long arg0, int arg1)
writeBitsBuffer(byte[] aBuffer)
writeByte(byte value)
writeByte(byte value, int count)
writeInt32(int value, int count)

ExtBitStream(byte[] aBuffer, boolean isBitBuffer)

public ExtBitStream(byte[] aBuffer, boolean isBitBuffer)

Parameters:

Parameter Type Description
aBuffer byte[]
isBitBuffer boolean

ExtBitStream(byte[] aBuffer, int bitsCount, boolean isBitBuffer)

public ExtBitStream(byte[] aBuffer, int bitsCount, boolean isBitBuffer)

Parameters:

Parameter Type Description
aBuffer byte[]
bitsCount int
isBitBuffer boolean

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

getAvailable()

public int getAvailable()

Returns: int

getAvailableToLastSignificantByte()

public int getAvailableToLastSignificantByte()

Returns: int

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getLength()

public int getLength()

Returns: int

getPosition()

public int getPosition()

Returns: int

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

readBits(int count)

public int readBits(int count)

Added for the support

Parameters:

Parameter Type Description
count int bits count to read

Returns: int - packed integer value of read bits

readBitsBuffer(int count)

public byte[] readBitsBuffer(int count)

Parameters:

Parameter Type Description
count int

Returns: byte[]

readByte()

public byte readByte()

Returns: byte

readByte(int count)

public byte readByte(int count)

Parameters:

Parameter Type Description
count int

Returns: byte

readInt32(int count)

public int readInt32(int count)

Parameters:

Parameter Type Description
count int

Returns: int

seek(int offset, int loc)

public int seek(int offset, int loc)

Parameters:

Parameter Type Description
offset int
loc int

Returns: int

spyBitsBuffer(int count)

public byte[] spyBitsBuffer(int count)

Read bit data without moving position

Parameters:

Parameter Type Description
count int bits count to read

Returns: byte[] - bits array as bytes array

spyByte()

public byte spyByte()

Returns: byte

spyByte(int count)

public byte spyByte(int count)

Parameters:

Parameter Type Description
count int

Returns: byte

spyInt32(int count)

public int spyInt32(int count)

Read bit data without moving position

Parameters:

Parameter Type Description
count int bits count to read

Returns: int - int in which all bits are read

toString()

public String toString()

Returns: java.lang.String

trimmToLastSignificantByte()

public void trimmToLastSignificantByte()

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int

writeBitsBuffer(byte[] aBuffer)

public void writeBitsBuffer(byte[] aBuffer)

Parameters:

Parameter Type Description
aBuffer byte[]

writeByte(byte value)

public void writeByte(byte value)

Parameters:

Parameter Type Description
value byte

writeByte(byte value, int count)

public void writeByte(byte value, int count)

Parameters:

Parameter Type Description
value byte
count int

writeInt32(int value, int count)

public void writeInt32(int value, int count)

Parameters:

Parameter Type Description
value int
count int