public class Storage extends BlockByteReader
| Modifier and Type | Field and Description |
|---|---|
int |
childStorageID |
byte |
directoryColor |
boolean |
miniStreamStorage |
protected List |
myblocks |
int |
nextStorageID |
int |
prevStorageID |
byte |
storageType |
int |
sz |
| Modifier | Constructor and Description |
|---|---|
protected |
Storage() |
protected |
Storage(ByteBuffer buff)
create a new Storage record with a byte
array containing its record headerData.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBlock(Block b)
adds a block of data to this storage
|
void |
addIdx(int x)
Track BB Index info
|
void |
close()
clear out object references in prep for closing workbook
|
boolean |
equals(Object other) |
int |
getActualFileSize()
get the size of the Storage headerData
|
BlockByteReader |
getBlockReader()
returns a new BlockByteReader
|
int |
getBlockType()
returns whether this Storage's headerData blocks are contained
in the Small or Big Block arrays.
|
List |
getBlockVect() |
byte[] |
getBytes()
return the underlying byte array for this
Storage
|
OutputStream |
getByteStream()
return the underlying byte array for this
Storage
|
int |
getChildStorageID()
get the value of the child storage id
|
int |
getDirectoryColor() |
int |
getFilePos()
get the position of this Storage in the file bytes
|
ByteBuffer |
getHeaderData()
return the existing header headerData for this storage
|
boolean |
getInitialized() |
boolean |
getIsSpecial() |
String |
getName() |
int |
getNextStorageID()
get the value of the nextProp variable
|
int |
getPrevStorageID()
get the value of the prevProp variable
|
int |
getSizeInBlocks()
get the number of Block records
that this Storage needs to store its
byte array
|
int |
getStartBlock()
get the starting block for the Storage headerData
|
int |
getStorageType() |
void |
init(List dta,
int[] FAT,
boolean keepStartBlock)
associate this storage with its blocks of data
(obtained by walking down the FAT sector index chain to obtain blocks from the dta block store)
for some bizarre reason, at idx 30208 the extraDIFAT jumps 5420 to 35628
|
void |
initFromMiniStream(List miniStream,
int[] miniFAT)
Associate this storage with it's data
(obtained by walking the miniFAT sector index to reference blocks in the miniStream
|
void |
setActualFileSize(int i)
set the size of the Storage headerData
|
void |
setBlocks(Block[] blks) |
void |
setBlockType(int type)
sets whether this Storage's headerData blocks are contained
in the Small or Big Block arrays.
|
void |
setBytes(byte[] b)
set the underlying byte array for this
Storage
|
void |
setBytesWithOverage(byte[] newbytes)
sets bytes for this storage; length of newbytes determines
whether the storage is miniFAT or regular
Incldes padding of bytes to ensure blocks are a factor of required block size |
void |
setChildStorageID(int o)
set the value of the child storage id
|
void |
setDirectoryColor(int o)
set the value of the prevProp variable
|
void |
setInitialized(boolean b) |
void |
setIsSpecial(boolean b) |
void |
setName(String nm)
sets the storage name
|
void |
setNextStorageID(int o)
set the value of the nextProp variable
|
void |
setOutputBytes(OutputStream b,
int blen)
set the underlying byte array for this
Storage
|
void |
setPrevStorageID(int o)
set the value of the prevProp variable
|
void |
setStartBlock(int i)
set the starting block in the Block table
array for this Storage's headerData.
|
void |
setStorageType(int i)
set the storage type
|
String |
toString() |
void |
writeBytes(OutputStream out)
return the underlying byte array for this
Storage
|
void |
writeBytes(OutputStream out,
int blen)
set the underlying byte array for this
Storage
|
allocate, allocateDirect, array, arrayOffset, asCharBuffer, asDoubleBuffer, asFloatBuffer, asIntBuffer, asLongBuffer, asReadOnlyBuffer, asShortBuffer, capacity, clear, compact, duplicate, flip, get, get, get, get, get, getApplyRelativePosition, getBackingByteBuffer, getBlockmap, getChar, getChar, getDouble, getDouble, getFileOffsets, getFileOffsetString, getFloat, getFloat, getHeaderBytes, getInt, getInt, getLength, getLong, getLong, getReadPositions, getReadPositions, getShort, getShort, hasArray, hashCode, hasRemaining, isDirect, isReadOnly, limit, limit, mark, order, order, position, position, put, put, put, put, put, putChar, putChar, putDouble, putDouble, putFloat, putFloat, putInt, putInt, putLong, putLong, putShort, putShort, remaining, reset, rewind, setApplyRelativePosition, setBackingByteBuffer, setBlockmap, setLength, slice, wrap, wrappublic byte storageType
public byte directoryColor
public int prevStorageID
public int nextStorageID
public int childStorageID
public int sz
public boolean miniStreamStorage
protected List myblocks
protected Storage()
protected Storage(ByteBuffer buff)
public void setBlocks(Block[] blks)
public BlockByteReader getBlockReader()
public List getBlockVect()
public void setIsSpecial(boolean b)
public boolean getIsSpecial()
public boolean getInitialized()
public void setInitialized(boolean b)
public void setBlockType(int type)
public int getBlockType()
public int getStorageType()
public int getDirectoryColor()
public void setDirectoryColor(int o)
public String getName()
public String toString()
toString in class BlockByteReaderpublic void setName(String nm)
nm - public int getPrevStorageID()
public void setPrevStorageID(int o)
public int getNextStorageID()
public void setNextStorageID(int o)
public int getChildStorageID()
public void setChildStorageID(int o)
public int getFilePos()
public ByteBuffer getHeaderData()
public byte[] getBytes()
public OutputStream getByteStream()
public void writeBytes(OutputStream out)
public void writeBytes(OutputStream out, int blen)
public void setOutputBytes(OutputStream b, int blen)
public void setBytes(byte[] b)
public void setBytesWithOverage(byte[] newbytes)
newbytes - public void initFromMiniStream(List miniStream, int[] miniFAT) throws LEOIndexingException
LEOIndexingExceptionpublic void init(List dta, int[] FAT, boolean keepStartBlock)
public void addBlock(Block b)
b - public void setStorageType(int i)
public void setActualFileSize(int i)
public int getActualFileSize()
public void setStartBlock(int i)
public int getStartBlock()
public int getSizeInBlocks()
public void addIdx(int x)
public boolean equals(Object other)
equals in class BlockByteReaderpublic void close()
Copyright © 2002–2019 Starter Inc.. All rights reserved.