|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.scpecg.Section
com.pixelmed.scpecg.Section2
public class 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 | |
|---|---|
Section2(SectionHeader header)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.pixelmed.scpecg.Section |
|---|
addNodeOfDecimalAndHex, addNodeOfDecimalWithMissingValues, addSectionHeaderToTree, describeMissingValues, getSectionHeader, getTree, getValueForSectionNodeInTree, makeSection, makeStringFromByteArrayRemovingAnyNulls, skipToEndOfSectionIfNotAlreadyThere |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Section2(SectionHeader header)
| Method Detail |
|---|
public String getSectionName()
Get a string name for this section.
getSectionName in class Sectionpublic int getNumberOfHuffmanTables()
public static boolean useDefaultTable(int numberOfHuffmanTables)
public boolean useDefaultTable()
public boolean useNoTable()
public int getNumberOfEncodedHuffmanTables()
public ArrayList getHuffmanTables()
public long read(BinaryInputStream i)
throws IOException
SectionRead the remainder of the section from a stream.
read in class Sectioni - the input stream
IOExceptionpublic String toString()
SectionDump the section as a String.
toString in class SectionStringpublic String validate()
SectionValidate the section against the standard.
validate in class SectionStringpublic SCPTreeRecord getTree(SCPTreeRecord parent)
Get the contents of the section as a tree for display, constructing it if not already done.
getTree in class Sectionparent - the node to which this section is to be added if it needs to be created de novo
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||