public class Section2 extends Section
A class to encapsulate the SCP-ECG Huffman Tables section.
bytesRead, header, sectionBytesRemaining, tree| Constructor and Description |
|---|
Section2(SectionHeader header) |
| Modifier and Type | Method and Description |
|---|---|
ArrayList |
getHuffmanTables() |
int |
getNumberOfEncodedHuffmanTables() |
int |
getNumberOfHuffmanTables() |
String |
getSectionName()
Get a string name for this section.
|
SCPTreeRecord |
getTree(SCPTreeRecord parent)
Get the contents of the section as a tree for display, constructing it if not already done.
|
long |
read(BinaryInputStream i)
Read the remainder of the section from a stream.
|
String |
toString()
Dump the section as a
String. |
boolean |
useDefaultTable() |
static boolean |
useDefaultTable(int numberOfHuffmanTables) |
boolean |
useNoTable() |
String |
validate()
Validate the section against the standard.
|
addNodeOfDecimalAndHex, addNodeOfDecimalWithMissingValues, addSectionHeaderToTree, describeMissingValues, getSectionHeader, getTree, getValueForSectionNodeInTree, makeSection, makeStringFromByteArrayRemovingAnyNulls, skipToEndOfSectionIfNotAlreadyTherepublic Section2(SectionHeader header)
public ArrayList getHuffmanTables()
public int getNumberOfEncodedHuffmanTables()
public int getNumberOfHuffmanTables()
public String getSectionName()
Get a string name for this section.
getSectionName in class Sectionpublic SCPTreeRecord getTree(SCPTreeRecord parent)
Get the contents of the section as a tree for display, constructing it if not already done.
public long read(BinaryInputStream i) throws IOException
SectionRead the remainder of the section from a stream.
read in class Sectioni - the input streamIOExceptionpublic String toString()
SectionDump the section as a String.
public boolean useDefaultTable()
public static boolean useDefaultTable(int numberOfHuffmanTables)
public boolean useNoTable()