|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.scpecg.SectionHeader
public class SectionHeader
A class to encapsulate the header portion of an SCP-ECG section.
| Field Summary | |
|---|---|
protected SCPTreeRecord |
tree
|
| Constructor Summary | |
|---|---|
SectionHeader()
|
|
| Method Summary | |
|---|---|
long |
getByteOffset()
|
long |
getBytesRead()
|
int |
getProtocolVersionNumber()
|
byte[] |
getReservedBytes()
|
int |
getSectionCRC()
|
int |
getSectionIDNumber()
|
long |
getSectionLength()
|
int |
getSectionVersionNumber()
|
SCPTreeRecord |
getTree()
Get the contents of the header as a tree for display. |
SCPTreeRecord |
getTree(SCPTreeRecord parent)
Get the contents of the header as a tree for display, constructing it if not already done. |
long |
read(BinaryInputStream i,
long byteOffset)
Read the section header from a stream. |
String |
toString()
Dump the header as a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SCPTreeRecord tree
| Constructor Detail |
|---|
public SectionHeader()
| Method Detail |
|---|
public int getSectionCRC()
public int getSectionIDNumber()
public long getSectionLength()
public int getSectionVersionNumber()
public int getProtocolVersionNumber()
public byte[] getReservedBytes()
public long getBytesRead()
public long getByteOffset()
public long read(BinaryInputStream i,
long byteOffset)
throws IOException
Read the section header from a stream.
i - the input streambyteOffset - byte offset
IOExceptionpublic String toString()
Dump the header as a String.
toString in class ObjectStringpublic SCPTreeRecord getTree()
Get the contents of the header as a tree for display.
public SCPTreeRecord getTree(SCPTreeRecord parent)
Get the contents of the header as a tree for display, constructing it if not already done.
parent - 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 | ||||||||