Package org.deepsymmetry.cratedigger.pdb
Class RekordboxPdb.Table
- java.lang.Object
-
- io.kaitai.struct.KaitaiStruct
-
- org.deepsymmetry.cratedigger.pdb.RekordboxPdb.Table
-
- Enclosing class:
- RekordboxPdb
public static class RekordboxPdb.Table extends io.kaitai.struct.KaitaiStruct
Each table is a linked list of pages containing rows of a single type. This header describes the nature of the table and links to its pages by index.
-
-
Constructor Summary
Constructors Constructor Description Table(io.kaitai.struct.KaitaiStream _io)
Table(io.kaitai.struct.KaitaiStream _io, RekordboxPdb _parent)
Table(io.kaitai.struct.KaitaiStream _io, RekordboxPdb _parent, RekordboxPdb _root)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RekordboxPdb
_parent()
RekordboxPdb
_root()
long
emptyCandidate()
RekordboxPdb.PageRef
firstPage()
Links to the chain of pages making up that table.static RekordboxPdb.Table
fromFile(String fileName)
RekordboxPdb.PageRef
lastPage()
Holds the index of the last page that makes up this table.RekordboxPdb.PageType
type()
Identifies the kind of rows that are found in this table.
-
-
-
Constructor Detail
-
Table
public Table(io.kaitai.struct.KaitaiStream _io)
-
Table
public Table(io.kaitai.struct.KaitaiStream _io, RekordboxPdb _parent)
-
Table
public Table(io.kaitai.struct.KaitaiStream _io, RekordboxPdb _parent, RekordboxPdb _root)
-
-
Method Detail
-
fromFile
public static RekordboxPdb.Table fromFile(String fileName) throws IOException
- Throws:
IOException
-
type
public RekordboxPdb.PageType type()
Identifies the kind of rows that are found in this table.
-
emptyCandidate
public long emptyCandidate()
-
firstPage
public RekordboxPdb.PageRef firstPage()
Links to the chain of pages making up that table. The first page seems to always contain similar garbage patterns and zero rows, but the next page it links to contains the start of the meaningful data rows.
-
lastPage
public RekordboxPdb.PageRef lastPage()
Holds the index of the last page that makes up this table. When following the linked list of pages of the table, you either need to stop when you reach this page, or when you notice that the `next_page` link you followed took you to a page of a different `type`.
-
_root
public RekordboxPdb _root()
-
_parent
public RekordboxPdb _parent()
- Overrides:
_parent
in classio.kaitai.struct.KaitaiStruct
-
-