Package com.pixelmed.scpecg
Class Section2
java.lang.Object
com.pixelmed.scpecg.Section
com.pixelmed.scpecg.Section2
A class to encapsulate the SCP-ECG Huffman Tables section.
-
Field Summary
Fields inherited from class com.pixelmed.scpecg.Section
bytesRead, header, sectionBytesRemaining, tree -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintGet a string name for this section.getTree(SCPTreeRecord parent) Get the contents of the section as a tree for display, constructing it if not already done.longRead the remainder of the section from a stream.toString()Dump the section as aString.booleanstatic booleanuseDefaultTable(int numberOfHuffmanTables) booleanvalidate()Validate the section against the standard.Methods inherited from class com.pixelmed.scpecg.Section
addNodeOfDecimalAndHex, addNodeOfDecimalWithMissingValues, addSectionHeaderToTree, describeMissingValues, getSectionHeader, getTree, getValueForSectionNodeInTree, makeSection, makeStringFromByteArrayRemovingAnyNulls, skipToEndOfSectionIfNotAlreadyThere
-
Constructor Details
-
Section2
-
-
Method Details
-
getSectionName
Get a string name for this section.
- Overrides:
getSectionNamein classSection- Returns:
- a string name for this section
-
getNumberOfHuffmanTables
public int getNumberOfHuffmanTables() -
useDefaultTable
public static boolean useDefaultTable(int numberOfHuffmanTables) -
useDefaultTable
public boolean useDefaultTable() -
useNoTable
public boolean useNoTable() -
getNumberOfEncodedHuffmanTables
public int getNumberOfEncodedHuffmanTables() -
getHuffmanTables
-
read
Description copied from class:SectionRead the remainder of the section from a stream.
- Overrides:
readin classSection- Parameters:
i- the input stream- Returns:
- the number of bytes read
- Throws:
IOException
-
toString
Description copied from class:SectionDump the section as a
String. -
validate
Description copied from class:SectionValidate the section against the standard.
-
getTree
Get the contents of the section as a tree for display, constructing it if not already done.
-