|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--mediaframe.mpeg1.DataBlock
The DataBlock class represents a block of 64 bytes.
This class contains methods for storing and reading the movie data.
It contains the link to the next datablock with the movie data.
| Field Summary | |
static int |
BLOCKSIZE
The length of the block in bytes. |
long[] |
data
The movie's data. |
int |
lastSize
The size the last information word (0-4). |
long |
lastWord
The last 0-4 information bytes (the last information word). |
private DataBlock |
next
The next datablock object. |
int |
size
The size if the datablock. |
| Constructor Summary | |
DataBlock()
Constructs a Datablock without data. |
|
DataBlock(DataBlock prevBlock)
Constructs an empty Datablock as a continue of the existed Datablock. |
|
| Method Summary | |
void |
close()
Closes this data block. |
DataBlock |
getNext()
Gets the next Datablock object. |
boolean |
hasNext()
Returns true if this data block has the next data block as a continue of it's data. |
boolean |
isFull()
Returns true if this data block is full and can't store more data bytes. |
void |
setFirstWord(long word)
Sets the first information word. |
void |
setNext(DataBlock nextBlock)
Sets the next Datablock as a continue of this data block. |
void |
setSize(int size)
Sets the size of this data block. |
void |
write(int Byte)
Puts a byte into this data block. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int BLOCKSIZE
public int size
public long[] data
public long lastWord
public int lastSize
private DataBlock next
| Constructor Detail |
public DataBlock()
Datablock without data.
public DataBlock(DataBlock prevBlock)
Datablock as a continue of the existed Datablock.
prevBlock - the previous Datablock| Method Detail |
public boolean hasNext()
public void setFirstWord(long word)
word - the first information word.public void setNext(DataBlock nextBlock)
Datablock as a continue of this data block.
nextBlock - the next Datablock object.public DataBlock getNext()
Datablock object.
Datablock object.public void setSize(int size)
size - the size of this data block.public boolean isFull()
public void write(int Byte)
Byte - the byte of the movie's data.public void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||