Package org.deepsymmetry.cratedigger.pdb
Class RekordboxPdb.PageRef
- java.lang.Object
-
- io.kaitai.struct.KaitaiStruct
-
- org.deepsymmetry.cratedigger.pdb.RekordboxPdb.PageRef
-
- Enclosing class:
- RekordboxPdb
public static class RekordboxPdb.PageRef extends io.kaitai.struct.KaitaiStruct
An index which points to a table page (its offset can be found by multiplying the index by the `page_len` value in the file header). This type allows the linked page to be lazy loaded.
-
-
Constructor Summary
Constructors Constructor Description PageRef(io.kaitai.struct.KaitaiStream _io)
PageRef(io.kaitai.struct.KaitaiStream _io, io.kaitai.struct.KaitaiStruct _parent)
PageRef(io.kaitai.struct.KaitaiStream _io, io.kaitai.struct.KaitaiStruct _parent, RekordboxPdb _root)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.kaitai.struct.KaitaiStruct
_parent()
byte[]
_raw_body()
RekordboxPdb
_root()
RekordboxPdb.Page
body()
When referenced, loads the specified page and parses its contents appropriately for the type of data it contains.static RekordboxPdb.PageRef
fromFile(String fileName)
long
index()
Identifies the desired page number.
-
-
-
Constructor Detail
-
PageRef
public PageRef(io.kaitai.struct.KaitaiStream _io)
-
PageRef
public PageRef(io.kaitai.struct.KaitaiStream _io, io.kaitai.struct.KaitaiStruct _parent)
-
PageRef
public PageRef(io.kaitai.struct.KaitaiStream _io, io.kaitai.struct.KaitaiStruct _parent, RekordboxPdb _root)
-
-
Method Detail
-
fromFile
public static RekordboxPdb.PageRef fromFile(String fileName) throws IOException
- Throws:
IOException
-
body
public RekordboxPdb.Page body()
When referenced, loads the specified page and parses its contents appropriately for the type of data it contains.
-
index
public long index()
Identifies the desired page number.
-
_root
public RekordboxPdb _root()
-
_parent
public io.kaitai.struct.KaitaiStruct _parent()
- Overrides:
_parent
in classio.kaitai.struct.KaitaiStruct
-
_raw_body
public byte[] _raw_body()
-
-