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 |
---|---|
java.util.ArrayList |
getHuffmanTables() |
int |
getNumberOfEncodedHuffmanTables() |
int |
getNumberOfHuffmanTables() |
java.lang.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.
|
java.lang.String |
toString()
Dump the section as a
String . |
boolean |
useDefaultTable() |
static boolean |
useDefaultTable(int numberOfHuffmanTables) |
boolean |
useNoTable() |
java.lang.String |
validate()
Validate the section against the standard.
|
addNodeOfDecimalAndHex, addNodeOfDecimalWithMissingValues, addSectionHeaderToTree, describeMissingValues, getSectionHeader, getTree, getValueForSectionNodeInTree, makeSection, makeStringFromByteArrayRemovingAnyNulls, skipToEndOfSectionIfNotAlreadyThere
public Section2(SectionHeader header)
public java.lang.String getSectionName()
Get a string name for this section.
getSectionName
in class Section
public int getNumberOfHuffmanTables()
public static boolean useDefaultTable(int numberOfHuffmanTables)
public boolean useDefaultTable()
public boolean useNoTable()
public int getNumberOfEncodedHuffmanTables()
public java.util.ArrayList getHuffmanTables()
public long read(BinaryInputStream i) throws java.io.IOException
Section
Read the remainder of the section from a stream.
public java.lang.String toString()
Section
Dump the section as a String
.
public java.lang.String validate()
Section
Validate the section against the standard.
public SCPTreeRecord getTree(SCPTreeRecord parent)
Get the contents of the section as a tree for display, constructing it if not already done.