Package com.pixelmed.scpecg
Class Section0
- java.lang.Object
-
- com.pixelmed.scpecg.Section
-
- com.pixelmed.scpecg.Section0
-
public class Section0 extends Section
A class to encapsulate the SCP-ECG Pointers to Data Areas section.
-
-
Field Summary
-
Fields inherited from class com.pixelmed.scpecg.Section
bytesRead, header, sectionBytesRemaining, tree
-
-
Constructor Summary
Constructors Constructor Description Section0(SectionHeader header)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getSectionIDNumbers()
long[]
getSectionIndexes()
long[]
getSectionLengths()
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 aString
.java.lang.String
validate()
Validate the section against the standard.java.lang.String
validateAgainstOtherSections(java.util.TreeMap sections)
Validate the section against the contents of other sections.-
Methods inherited from class com.pixelmed.scpecg.Section
addNodeOfDecimalAndHex, addNodeOfDecimalWithMissingValues, addSectionHeaderToTree, describeMissingValues, getSectionHeader, getTree, getValueForSectionNodeInTree, makeSection, makeStringFromByteArrayRemovingAnyNulls, skipToEndOfSectionIfNotAlreadyThere
-
-
-
-
Constructor Detail
-
Section0
public Section0(SectionHeader header)
-
-
Method Detail
-
getSectionName
public java.lang.String getSectionName()
Get a string name for this section.
- Overrides:
getSectionName
in classSection
- Returns:
- a string name for this section
-
getSectionIDNumbers
public int[] getSectionIDNumbers()
-
getSectionLengths
public long[] getSectionLengths()
-
getSectionIndexes
public long[] getSectionIndexes()
-
read
public long read(BinaryInputStream i) throws java.io.IOException
Description copied from class:Section
Read the remainder of the section from a stream.
-
toString
public java.lang.String toString()
Description copied from class:Section
Dump the section as a
String
.
-
validate
public java.lang.String validate()
Description copied from class:Section
Validate the section against the standard.
-
validateAgainstOtherSections
public java.lang.String validateAgainstOtherSections(java.util.TreeMap sections)
Validate the section against the contents of other sections.
Specifically, checks pointers and lengths.
- Parameters:
sections
- all the sections- Returns:
- the validation results as a
String
-
getTree
public SCPTreeRecord getTree(SCPTreeRecord parent)
Get the contents of the section as a tree for display, constructing it if not already done.
-
-