Module de.bernd_michaely.x3f.types
Package de.bernd_michaely.x3f.types
Class X3fDirectory.X3fDirectoryEntry
- java.lang.Object
-
- de.bernd_michaely.x3f.types.X3fDirectory.X3fDirectoryEntry
-
- Enclosing class:
- X3fDirectory
public static class X3fDirectory.X3fDirectoryEntry extends Object
Class for encapsulating data contained in X3F directory entries.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
X3fDirectoryEntry(long dataOffset, int dataLength, String dataType)
Constructor with given values.protected
X3fDirectoryEntry(RandomAccessData data)
Constructor to read from a data source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDataLength()
Returns the length of entry's data, in bytes.long
getDataOffset()
Returns the offset from start of file to start of entry's data, in bytes.String
getDataType()
Returns the type of entry.String
toString()
-
-
-
Constructor Detail
-
X3fDirectoryEntry
protected X3fDirectoryEntry(RandomAccessData data) throws RandomAccessDataException
Constructor to read from a data source.- Parameters:
data
- the data source to read from- Throws:
RandomAccessDataException
- if RandomAccessData source is invalid
-
X3fDirectoryEntry
protected X3fDirectoryEntry(long dataOffset, int dataLength, String dataType)
Constructor with given values.- Parameters:
dataOffset
- the given offsetdataLength
- the given data lengthdataType
- the given data type
-
-
Method Detail
-
getDataOffset
public long getDataOffset()
Returns the offset from start of file to start of entry's data, in bytes. Offset must be a multiple of 4, so that the data starts on a 32-bit boundary.- Returns:
- the offset to start of entry's data
-
getDataLength
public int getDataLength()
Returns the length of entry's data, in bytes.- Returns:
- the length of entry's data, in bytes
-
getDataType
public String getDataType()
Returns the type of entry.- Returns:
- the type of entry
-
-