public abstract class BlockImpl extends Object implements Block, CompatibleVectorHints, Serializable
| Constructor and Description |
|---|
BlockImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getBlockIndex()
get the index of this Block in the storage
Vector
|
int |
getBlockSize()
get the size of the Block data in bytes
|
ByteBuffer |
getByteBuffer()
return the ByteBuffer for this BLOCK
|
byte[] |
getBytes()
return the byte Array for 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 position of this BIGBLOCK
|
int |
getOriginalPos()
return the original position of this
BIGBLOCK record in the array of BIGBLOCKS
that make up the file.
|
int |
getRecordIndexHint()
provide a hint to the CompatibleVector
about this objects likely position.
|
Storage |
getStorage()
get the storage for this Block
|
boolean |
getStreamed()
returns whether this block has been
added to the output stream
|
boolean |
hasNext() |
void |
init(ByteBuffer d,
int origidx,
int origp)
init the BIGBLOCK Data
|
boolean |
isXBAT() |
Object |
next() |
void |
remove() |
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)
true if ths block is represents an extra DIFAT sector
|
void |
setNextBlock(Block b)
link the next Block in the chain
|
void |
setOriginalIdx(int x)
set the original BB position in the file
|
void |
setRecordIndexHint(int i)
set index information about this
objects likely position.
|
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 entire bytes directly to out
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBlockTypeforEachRemainingpublic void close()
public ByteBuffer getByteBuffer()
getByteBuffer in interface Blockpublic void writeBytes(OutputStream out)
writeBytes in interface BlockBlock.writeBytes(java.io.OutputStream)public byte[] getBytes(int start,
int end)
public int getBlockSize()
BlockgetBlockSize in interface Blockpublic byte[] getBytes()
public void setBytes(ByteBuffer b)
public int getRecordIndexHint()
getRecordIndexHint in interface CompatibleVectorHintspublic void setRecordIndexHint(int i)
setRecordIndexHint in interface CompatibleVectorHintspublic void setBlockVector(List v)
setBlockVector in interface Blockpublic int getBlockIndex()
getBlockIndex in interface Blockpublic void setOriginalIdx(int x)
setOriginalIdx in interface Blockpublic void setNextBlock(Block b)
BlocksetNextBlock in interface Blockpublic void setStorage(Storage s)
setStorage in interface Blockpublic Storage getStorage()
getStorage in interface Blockpublic int getOriginalIdx()
getOriginalIdx in interface Blockpublic boolean getStreamed()
getStreamed in interface Blockpublic void setStreamed(boolean b)
setStreamed in interface Blockpublic void setInitialized(boolean b)
setInitialized in interface Blockpublic boolean getInitialized()
getInitialized in interface Blockpublic boolean getIsSpecialBlock()
getIsSpecialBlock in interface Blockpublic boolean getIsDepotBlock()
getIsDepotBlock in interface Blockpublic void setIsDepotBlock(boolean b)
setIsDepotBlock in interface Blockpublic void init(ByteBuffer d, int origidx, int origp)
public int getOriginalPos()
getOriginalPos in interface Blockpublic void setIsExtraSector(boolean b)
setIsExtraSector in interface Blockb - Copyright © 2002–2019 Starter Inc.. All rights reserved.