|
|||||||||
| 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.Section0
public class Section0
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 | |
|---|---|
Section0(SectionHeader header)
|
|
| Method Summary | |
|---|---|
int[] |
getSectionIDNumbers()
|
long[] |
getSectionIndexes()
|
long[] |
getSectionLengths()
|
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. |
String |
validate()
Validate the section against the standard. |
String |
validateAgainstOtherSections(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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Section0(SectionHeader header)
| Method Detail |
|---|
public String getSectionName()
Get a string name for this section.
getSectionName in class Sectionpublic int[] getSectionIDNumbers()
public long[] getSectionLengths()
public long[] getSectionIndexes()
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 String validateAgainstOtherSections(TreeMap sections)
Validate the section against the contents of other sections.
Specifically, checks pointers and lengths.
sections - all the sections
Stringpublic 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 | ||||||||