|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The definition of the Bitstream I/O interface, this is defines the methods that the Flavor translator expects from the underlying class that performs bitstream I/O.
FlIOException| Field Summary | |
static int |
BS_INPUT
Input bitstream type |
static int |
BS_OUTPUT
Output bitstream type |
| Method Summary | |
int |
align(int n)
Aligns the bitstream to 8 bit boundary (n must be a multiple of 8, both input/output) |
boolean |
atend()
Test end-of-data |
int |
getbits(int n)
Gets next 'n' bits as unsigned value (input only) |
double |
getdouble()
Gets next double value in next 32 bits (output only) |
float |
getfloat()
Gets next float value in next 32 bits (input only) |
int |
getmode()
Returns mode(BS_INPUT or BS_OUTPUT) |
int |
getpos()
Gets current position (both input/output) |
int |
little_getbits(int n)
Gets next 'n' bits as unsigned value using the little-endian method (input only) |
double |
little_getdouble()
Gets next double value in next 32 bits using the little-endian method (output only) |
float |
little_getfloat()
Gets next float value in next 32 bits using the little-endian method (input only) |
int |
little_nextbits(int n)
Probes 'n' bits as unsigned value using the little-endian method (input only) |
double |
little_nextdouble()
Probes next double value in next 32 bits using the little-endian method (input only) |
float |
little_nextfloat()
Probes next float value in next 32 bits using the little-endian method (input only) |
int |
little_putbits(int bits,
int n)
Puts 'n' bits using the little-endian method (output only) |
double |
little_putdouble(double d)
Puts double value into next 32 bits using the little-endian method (output only) |
float |
little_putfloat(float f)
Puts float value into next 32 bits using the little-endian method (input only) |
int |
little_sgetbits(int n)
Gets next 'n' bits as signed value using the little-endian method (input only) |
int |
little_snextbits(int n)
Probes 'n' bits as signed value using the little-endian method (input only) |
int |
nextbits(int n)
Probes 'n' bits as unsigned value (input only) |
double |
nextdouble()
Probes next double value in next 32 bits (input only) |
float |
nextfloat()
Probes next float value in next 32 bits (input only) |
int |
putbits(int bits,
int n)
Puts 'n' bits (output only) |
double |
putdouble(double d)
Puts double value into next 32 bits (output only) |
float |
putfloat(float f)
Puts float value into next 32 bits (input only) |
int |
sgetbits(int n)
Gets next 'n' bits as signed value (input only) |
void |
skipbits(int n)
Skips next 'n' bits (both input/output) |
int |
snextbits(int n)
Probes 'n' bits as signed value (input only) |
| Field Detail |
public static final int BS_INPUT
public static final int BS_OUTPUT
| Method Detail |
public int getbits(int n)
throws FlIOException
n - The number of bits to get
FlIOException - if an I/O error occurs
public int sgetbits(int n)
throws FlIOException
n - The number of bits to get
FlIOException - if an I/O error occurs
public int nextbits(int n)
throws FlIOException
n - The number of bits to get
FlIOException - if an I/O error occurs
public int snextbits(int n)
throws FlIOException
n - The number of bits to get
FlIOException - if an I/O error occurs
public float getfloat()
throws FlIOException
FlIOException - if an I/O error occurs
public float nextfloat()
throws FlIOException
FlIOException - if an I/O error occurs
public double getdouble()
throws FlIOException
FlIOException - if an I/O error occurs
public double nextdouble()
throws FlIOException
FlIOException - if an I/O error occurs
public int putbits(int bits,
int n)
throws FlIOException
bits - The value to putn - The number of bits to put
FlIOException - if an I/O error occurs
public float putfloat(float f)
throws FlIOException
f - The float value to put
FlIOException - if an I/O error occurs
public double putdouble(double d)
throws FlIOException
d - The double value to put
FlIOException - if an I/O error occurs
public int little_getbits(int n)
throws FlIOException
n - The number of bits to get
FlIOException - if an I/O error occurs
public int little_sgetbits(int n)
throws FlIOException
n - The number of bits to get
FlIOException - if an I/O error occurs
public int little_nextbits(int n)
throws FlIOException
n - The number of bits to get
FlIOException - if an I/O error occurs
public int little_snextbits(int n)
throws FlIOException
n - The number of bits to get
FlIOException - if an I/O error occurs
public float little_getfloat()
throws FlIOException
FlIOException - if an I/O error occurs
public float little_nextfloat()
throws FlIOException
FlIOException - if an I/O error occurs
public double little_getdouble()
throws FlIOException
FlIOException - if an I/O error occurs
public double little_nextdouble()
throws FlIOException
FlIOException - if an I/O error occurs
public int little_putbits(int bits,
int n)
throws FlIOException
bits - The value to putn - The number of bits to put
FlIOException - if an I/O error occurs
public float little_putfloat(float f)
throws FlIOException
f - The float value to put
FlIOException - if an I/O error occurs
public double little_putdouble(double d)
throws FlIOException
d - The double value to put
FlIOException - if an I/O error occurs
public void skipbits(int n)
throws FlIOException
n - The number of bits to skip
FlIOException - if an I/O error occurs
public int align(int n)
throws FlIOException
n - The number of bits to align
FlIOException - if an I/O error occurs or invalid alignment requestedpublic int getpos()
public boolean atend()
public int getmode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||