public interface Block extends Iterator
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockIndex()
get the index of this Block in the storage
Vector
|
int |
getBlockSize()
get the size of the Block data in bytes
|
int |
getBlockType()
returns the int representing the block type
|
ByteBuffer |
getByteBuffer()
get the data bytes on this Block
|
byte[] |
getBytes()
get the data bytes on this Block
|
byte[] |
getBytes(int start,
int end)
return the byte Array for this BLOCK
|
boolean |
getInitialized()
returns whether this Block has been read yet...
|
boolean |
getIsDepotBlock()
returns true if this is a Block Depot block
that needs to be ignored when reading byte storages
|
boolean |
getIsSpecialBlock()
returns true if this is a Block Depot block
that needs to be ignored when reading byte storages
|
int |
getOriginalIdx()
return the original BB position in the file
|
int |
getOriginalPos()
return the original BB position in the file
|
Storage |
getStorage()
set the storage for this Block
|
boolean |
getStreamed()
returns whether this block has been
added to the output stream
|
void |
init(ByteBuffer d,
int origidx,
int origp)
init the Block Data
|
boolean |
isXBAT() |
void |
setBlockVector(List v)
link to the vector of blocks for the storage
|
void |
setBytes(ByteBuffer b)
set the data bytes on this Block
|
void |
setInitialized(boolean b)
set whether this Block has been read yet...
|
void |
setIsDepotBlock(boolean b)
set to true if this is a Block Depot block
|
void |
setIsExtraSector(boolean b) |
void |
setNextBlock(Block b)
link the next Block in the chain
|
void |
setOriginalIdx(int x)
set the original BB position in the file
|
void |
setStorage(Storage s)
set the storage for this Block
|
void |
setStreamed(boolean b)
sets whether this block has been
added to the output stream
|
void |
writeBytes(OutputStream out)
write the data bytes on this Block to out
|
forEachRemaining, hasNext, next, removestatic final int SMALL
static final int BIG
boolean isXBAT()
void setIsExtraSector(boolean b)
b - void setBlockVector(List v)
int getBlockSize()
int getBlockIndex()
void setNextBlock(Block b)
void setStorage(Storage s)
Storage getStorage()
boolean getStreamed()
void setStreamed(boolean b)
int getBlockType()
boolean getIsSpecialBlock()
boolean getIsDepotBlock()
void setIsDepotBlock(boolean b)
void init(ByteBuffer d, int origidx, int origp)
void setInitialized(boolean b)
boolean getInitialized()
void setBytes(ByteBuffer b)
ByteBuffer getByteBuffer()
byte[] getBytes(int start,
int end)
byte[] getBytes()
void writeBytes(OutputStream out)
int getOriginalPos()
int getOriginalIdx()
void setOriginalIdx(int x)
Copyright © 2002–2019 Starter Inc.. All rights reserved.