Modifier and Type | Field and Description |
---|---|
DicomAttribute |
attribute |
private boolean |
bigEndianTransferSyntax |
java.util.List<DicomTag> |
children |
int |
elementLength |
java.lang.String |
key |
private boolean |
oddLocations |
DicomTag |
parent |
private long |
start |
ResolutionStrategy |
strategy |
int |
tag |
java.lang.Object |
value |
DicomVR |
vr |
Constructor and Description |
---|
DicomTag(DicomAttribute attribute) |
DicomTag(DicomAttribute attribute,
DicomVR vr) |
DicomTag(int tag,
DicomVR vr) |
DicomTag(loci.common.RandomAccessInputStream in,
boolean bigEndian,
long location,
boolean oddLocations)
Read a complete tag and value from the given input stream.
|
DicomTag(loci.common.RandomAccessInputStream in,
boolean bigEndian,
long location,
boolean oddLocations,
boolean readValue)
Read a complete tag and optionally a value from the given input stream.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DicomTag o) |
long |
getEndPointer()
Get the file pointer at which the value ends (useful for sequences and byte streams).
|
private int |
getLength(loci.common.RandomAccessInputStream in)
Get the length of the next value in the given input stream.
|
private int |
getNextTag(loci.common.RandomAccessInputStream in)
Get the next 4 byte DICOM tag from the given input stream.
|
java.lang.Number |
getNumberValue()
Get a number representation of the current value, or null if not a number.
|
java.lang.String |
getStringValue()
Get a string representation of the current value.
|
long |
getValueStartPointer()
Get the file pointer at which the value starts (useful for sequences and byte streams).
|
boolean |
isPrivateContentCreator()
See https://dicom.nema.org/dicom/2013/output/chtml/part05/sect_7.8.html
|
DicomTag |
lookupChild(DicomAttribute attr)
Find the first child tag with the given attribute, or null if one does not exist.
|
java.lang.String |
toString() |
boolean |
validate(java.util.List<DicomTag> tags)
Check this tag against a list of existing tags.
|
void |
validateValue()
Compare the value type to the VR.
|
public DicomTag parent
public java.util.List<DicomTag> children
public int tag
public DicomAttribute attribute
public DicomVR vr
public java.lang.String key
public java.lang.Object value
public int elementLength
private long start
private boolean bigEndianTransferSyntax
private boolean oddLocations
public ResolutionStrategy strategy
public DicomTag(DicomAttribute attribute)
public DicomTag(DicomAttribute attribute, DicomVR vr)
public DicomTag(int tag, DicomVR vr)
public DicomTag(loci.common.RandomAccessInputStream in, boolean bigEndian, long location, boolean oddLocations) throws FormatException, java.io.IOException
FormatException
java.io.IOException
public DicomTag(loci.common.RandomAccessInputStream in, boolean bigEndian, long location, boolean oddLocations, boolean readValue) throws FormatException, java.io.IOException
FormatException
java.io.IOException
private int getNextTag(loci.common.RandomAccessInputStream in) throws FormatException, java.io.IOException
FormatException
java.io.IOException
private int getLength(loci.common.RandomAccessInputStream in) throws java.io.IOException
java.io.IOException
public java.lang.String getStringValue()
public java.lang.Number getNumberValue()
public long getValueStartPointer()
public long getEndPointer()
public DicomTag lookupChild(DicomAttribute attr)
public boolean validate(java.util.List<DicomTag> tags)
public void validateValue()
public boolean isPrivateContentCreator()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2024 Open Microscopy Environment