Class EncapsulatedDocumentLength
java.lang.Object
org.dcm4che.typeddicom.AbstractAttributesWrapper
org.dcm4che.typeddicom.AbstractDataElementWrapper
org.dcm4che.typeddicom.dataelements.EncapsulatedDocumentLength
- All Implemented Interfaces:
AttributesWrapper,DataElementWrapper,BytesDataElementWrapper,IntDataElementWrapper,UnsignedLongWrapper
public class EncapsulatedDocumentLength
extends AbstractDataElementWrapper
implements UnsignedLongWrapper
Name: Encapsulated Document Length
Keyword: EncapsulatedDocumentLength
Tag: (0042,0015)
Value Representation: UL
Value Multiplicity: 1
Keyword: EncapsulatedDocumentLength
Tag: (0042,0015)
Value Representation: UL
Value Multiplicity: 1
- Described in the contexts:
as follows:
Attribute Name: Encapsulated Document Length
Type: 3
Attribute Description:The length of the Encapsulated Document stream, not including any trailing padding added for encapsulation as a DICOM object.
If present, shall be equal to the Value Length if even, or one less than the Value Length if odd.
NoteIn the absence of this Attribute, the value of Encapsulated Document (0042,0011) may have been padded to even length as required for all DICOM Data Element Values, so it would not be possible to extract the original unpadded document if it were of odd length.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceEncapsulatedDocumentLength.Builder<SELF extends EncapsulatedDocumentLength.Builder<SELF,T>, T extends EncapsulatedDocumentLength.Holder> static interfaceA class implementing this interface can hold attributes which contain the DICOM tag "Encapsulated Document Length" (seeEncapsulatedDocumentLength)static classNested classes/interfaces inherited from interface org.dcm4che.typeddicom.valuerepresentations.UnsignedLongWrapper
UnsignedLongWrapper.Setter<B extends Builder<B,? extends AttributesWrapper>, D extends UnsignedLongWrapper> -
Field Summary
FieldsFields inherited from interface org.dcm4che.typeddicom.valuerepresentations.UnsignedLongWrapper
VALUE_REPRESENTATION -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new Encapsulated Document Length object which wraps a new and emptyAttributesobject.EncapsulatedDocumentLength(org.dcm4che3.data.Attributes attributes) Creates a new Encapsulated Document Length object which wraps the providedattributes. -
Method Summary
Methods inherited from class org.dcm4che.typeddicom.AbstractDataElementWrapper
equals, exists, getValue, hashCode, toStringMethods inherited from class org.dcm4che.typeddicom.AbstractAttributesWrapper
getAttributesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.dcm4che.typeddicom.AttributesWrapper
copy, getAttributes, isEmptyMethods inherited from interface org.dcm4che.typeddicom.valuerepresentations.BytesDataElementWrapper
getBytes, getSafeBytes, setBytesMethods inherited from interface org.dcm4che.typeddicom.DataElementWrapper
exists, getPrivateCreator, getValueMethods inherited from interface org.dcm4che.typeddicom.valuerepresentations.IntDataElementWrapper
getInt, setIntMethods inherited from interface org.dcm4che.typeddicom.valuerepresentations.UnsignedLongWrapper
getValueRepresentation
-
Field Details
-
TAG
public static final int TAGThe DICOM Tag associated with this class.- See Also:
-
-
Constructor Details
-
EncapsulatedDocumentLength
public EncapsulatedDocumentLength(org.dcm4che3.data.Attributes attributes) Creates a new Encapsulated Document Length object which wraps the providedattributes.- Parameters:
attributes- TheAttributesobject to be wrapped.
-
EncapsulatedDocumentLength
public EncapsulatedDocumentLength()Creates a new Encapsulated Document Length object which wraps a new and emptyAttributesobject.
-
-
Method Details
-
copy
Returns a new Encapsulated Document Length which wraps a copy of the Attributes wrapped in this Encapsulated Document Length. (seeAttributes(Attributes)- Returns:
- a new Encapsulated Document Length which wraps a copy of the Attributes wrapped in this Encapsulated Document Length.
-
getTag
public int getTag()- Specified by:
getTagin interfaceDataElementWrapper- Returns:
- The DICOM Tag of the wrapped DICOM attributes.
-