public class FileBlockHeader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FileBlockHeader.BlockCode |
Constructor and Description |
---|
FileBlockHeader(BlenderInputStream inputStream,
BlenderContext blenderContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getBlockPosition()
This method returns the start position of the data block in the blend file stream.
|
FileBlockHeader.BlockCode |
getCode()
This method returns the code of this data block.
|
int |
getCount()
This data returns the number of structure stored in the data block after this header.
|
int |
getSdnaIndex()
This method returns the sdna index.
|
int |
getSize()
This method returns the size of the data stored in this block.
|
Structure |
getStructure(BlenderContext blenderContext)
This method returns the structure described by the header filled with appropriate data.
|
boolean |
isDnaBlock()
This method indicates if the block is the SDNA block.
|
boolean |
isLastBlock()
This method indicates if the block is the last block in the file.
|
java.lang.String |
toString() |
public FileBlockHeader(BlenderInputStream inputStream, BlenderContext blenderContext) throws BlenderFileException
inputStream
- the stream we read the block header fromblenderContext
- the blender contextBlenderFileException
- this exception is thrown when the pointer size is neither 4 nor 8public Structure getStructure(BlenderContext blenderContext) throws BlenderFileException
blenderContext
- the blender contextBlenderFileException
public FileBlockHeader.BlockCode getCode()
public int getSize()
public int getSdnaIndex()
public int getCount()
public int getBlockPosition()
public boolean isLastBlock()
public boolean isDnaBlock()
public java.lang.String toString()
toString
in class java.lang.Object