public class OtherByteAttributeMultipleCompressedFrames extends Attribute implements ByteFrameSource, BasicOffsetTableAccessor
A concrete class specializing Attribute for
Other Byte (OB) attributes whose values are memory or file resident compressed pixel data frames.
Attribute,
AttributeList| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
allframes |
protected int[] |
basicOffsetTable |
protected File[] |
files |
protected byte[][] |
frames |
protected static AttributeTag |
itemTag |
protected static AttributeTag |
sequenceDelimitationItemTag |
valueLength, valueMultiplicity| Constructor and Description |
|---|
OtherByteAttributeMultipleCompressedFrames(AttributeTag t,
byte[] allframes)
Construct an attribute from a single byte array containing all compressed frames.
|
OtherByteAttributeMultipleCompressedFrames(AttributeTag t,
byte[][] frames)
Construct an attribute from a set of compressed frames.
|
OtherByteAttributeMultipleCompressedFrames(AttributeTag t,
File[] files)
Construct an attribute from a set of compressed frames.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getBasicOffsetTable()
Get the 32 bit array Basic Offset Table.
|
byte[] |
getByteValuesForSelectedFrame(int frameNumber)
Get the value of this attribute as a byte array for one selected frame.
|
File[] |
getFiles()
Get the files for each frame.
|
byte[][] |
getFrames()
Get the byte arrays for each frame.
|
int |
getNumberOfFrames()
Get the number of frames.
|
byte[] |
getVR()
Get the value representation of this attribute (OB).
|
void |
removeValues()
Remove any existing values, making the attribute empty (zero length).
|
void |
setBasicOffsetTable(int[] basicOffsetTable)
Set the 32 bit array Basic Offset Table.
|
String |
toString(DicomDictionary dictionary)
Dump the contents of the attribute as a human-readable string.
|
void |
write(DicomOutputStream o)
Write the entire attribute (including values) to the output stream.
|
protected void |
writeItemTag(DicomOutputStream o,
long length) |
protected void |
writeSequenceDelimitationItemTag(DicomOutputStream o) |
addValue, addValue, addValue, addValue, addValue, addValue, addValue, getByteValues, getByteValues, getDelimitedStringValuesOrDefault, getDelimitedStringValuesOrDefault, getDelimitedStringValuesOrDefault, getDelimitedStringValuesOrDefault, getDelimitedStringValuesOrDefault, getDelimitedStringValuesOrDefault, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrNull, getDelimitedStringValuesOrNull, getDelimitedStringValuesOrNull, getDelimitedStringValuesOrNull, getDelimitedStringValuesOrNull, getDelimitedStringValuesOrNull, getDoubleValues, getDoubleValues, getDoubleValues, getElement, getFloatValues, getFloatValues, getFloatValues, getGroup, getIntegerValues, getIntegerValues, getIntegerValues, getLengthOfEncodedValue, getLongValues, getLongValues, getLongValues, getOriginalStringValues, getPaddedVL, getShortValues, getSingleDoubleValueOrDefault, getSingleDoubleValueOrDefault, getSingleDoubleValueOrDefault, getSingleFloatValueOrDefault, getSingleFloatValueOrDefault, getSingleFloatValueOrDefault, getSingleIntegerValueOrDefault, getSingleIntegerValueOrDefault, getSingleIntegerValueOrDefault, getSingleLongValueOrDefault, getSingleLongValueOrDefault, getSingleLongValueOrDefault, getSingleStringValueOrDefault, getSingleStringValueOrDefault, getSingleStringValueOrDefault, getSingleStringValueOrDefault, getSingleStringValueOrDefault, getSingleStringValueOrDefault, getSingleStringValueOrEmptyString, getSingleStringValueOrEmptyString, getSingleStringValueOrEmptyString, getSingleStringValueOrEmptyString, getSingleStringValueOrEmptyString, getSingleStringValueOrEmptyString, getSingleStringValueOrNull, getSingleStringValueOrNull, getSingleStringValueOrNull, getSingleStringValueOrNull, getSingleStringValueOrNull, getSingleStringValueOrNull, getStringValues, getStringValues, getStringValues, getStringValues, getStringValues, getStringValues, getTag, getVL, getVM, getVRAsString, isValid, repairValues, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValues, setValues, setValues, setValues, setValues, setValues, setValues, toString, writeBaseprotected byte[] allframes
protected int[] basicOffsetTable
protected File[] files
protected byte[][] frames
protected static final AttributeTag itemTag
protected static final AttributeTag sequenceDelimitationItemTag
public OtherByteAttributeMultipleCompressedFrames(AttributeTag t, byte[] allframes)
Construct an attribute from a single byte array containing all compressed frames.
The VL is not required, since it is undefined by definition.
t - the tag of the attributeallframes - the framespublic OtherByteAttributeMultipleCompressedFrames(AttributeTag t, byte[][] frames)
Construct an attribute from a set of compressed frames.
The VL is not required, since it is undefined by definition.
t - the tag of the attributeframes - the framespublic OtherByteAttributeMultipleCompressedFrames(AttributeTag t, File[] files)
Construct an attribute from a set of compressed frames.
The VL is not required, since it is undefined by definition.
t - the tag of the attributefiles - the files containing the compressed bit streamspublic int[] getBasicOffsetTable()
Get the 32 bit array Basic Offset Table.
getBasicOffsetTable in interface BasicOffsetTableAccessorpublic byte[] getByteValuesForSelectedFrame(int frameNumber)
throws DicomException
Get the value of this attribute as a byte array for one selected frame.
getByteValuesForSelectedFrame in interface ByteFrameSourceframeNumber - from 0DicomException - thrown if values cannot be readpublic File[] getFiles()
Get the files for each frame.
public byte[][] getFrames()
Get the byte arrays for each frame.
public int getNumberOfFrames()
Get the number of frames.
public byte[] getVR()
Get the value representation of this attribute (OB).
getVR in class AttributeValueRepresentationpublic void removeValues()
AttributeRemove any existing values, making the attribute empty (zero length).
removeValues in class Attributepublic void setBasicOffsetTable(int[] basicOffsetTable)
Set the 32 bit array Basic Offset Table.
setBasicOffsetTable in interface BasicOffsetTableAccessorbasicOffsetTable - public String toString(DicomDictionary dictionary)
AttributeDump the contents of the attribute as a human-readable string.
No new line is appended.
The result is of the form:
(0xgggg,0xeeee) Name VR=<XX> VL=<0xnnnn> <...>
For example:
(0x0018,0x0020) ScanningSequence VR=<CS> VL=<0x2> <GR>
public void write(DicomOutputStream o) throws DicomException, IOException
AttributeWrite the entire attribute (including values) to the output stream.
write in class Attributeo - IOExceptionDicomException - if no byte array or files containing the compressed bitstream have been suppliedprotected void writeItemTag(DicomOutputStream o, long length) throws IOException
IOExceptionprotected void writeSequenceDelimitationItemTag(DicomOutputStream o) throws IOException
IOException