Class EncapsulatedDocumentLength
- java.lang.Object
-
- org.dcm4che.typeddicom.AbstractAttributesWrapper
-
- org.dcm4che.typeddicom.AbstractDataElementWrapper
-
- org.dcm4che.typeddicom.dataelements.EncapsulatedDocumentLength
-
- All Implemented Interfaces:
org.dcm4che.typeddicom.AttributesWrapper,org.dcm4che.typeddicom.DataElementWrapper,org.dcm4che.typeddicom.valuerepresentations.BytesDataElementWrapper,org.dcm4che.typeddicom.valuerepresentations.IntDataElementWrapper,UnsignedLongWrapper
public class EncapsulatedDocumentLength extends org.dcm4che.typeddicom.AbstractDataElementWrapper implements UnsignedLongWrapper
Name: Encapsulated Document Length
Keyword: EncapsulatedDocumentLength
Tag: (0042,0015)
Value Representation: UnsignedLong
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 Classes Modifier and Type Class Description static interfaceEncapsulatedDocumentLength.Builder<SELF extends EncapsulatedDocumentLength.Builder<SELF,T>,T extends EncapsulatedDocumentLength.Holder>static interfaceEncapsulatedDocumentLength.HolderA class implementing this interface can hold attributes which contain the DICOM tag "Encapsulated Document Length" (seeEncapsulatedDocumentLength)-
Nested classes/interfaces inherited from interface org.dcm4che.typeddicom.valuerepresentations.UnsignedLongWrapper
UnsignedLongWrapper.Setter<B extends org.dcm4che.typeddicom.Builder<B,? extends org.dcm4che.typeddicom.AttributesWrapper>,D extends UnsignedLongWrapper>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPRIVATE_CREATORThe Private Creator associated with this class.static intTAGThe DICOM Tag associated with this class.-
Fields inherited from interface org.dcm4che.typeddicom.valuerepresentations.UnsignedLongWrapper
VALUE_REPRESENTATION
-
-
Constructor Summary
Constructors Constructor Description EncapsulatedDocumentLength()Creates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncapsulatedDocumentLengthcopy()Returns a new Encapsulated Document Length which wraps a copy of the Attributes wrapped in this Encapsulated Document Length.java.lang.StringgetPrivateCreator()intgetTag()-
Methods inherited from class org.dcm4che.typeddicom.AbstractDataElementWrapper
equals, exists, getValue, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.dcm4che.typeddicom.AttributesWrapper
copy, getAttributes, isEmpty
-
Methods inherited from interface org.dcm4che.typeddicom.valuerepresentations.BytesDataElementWrapper
getBytes, getSafeBytes, setBytes
-
Methods inherited from interface org.dcm4che.typeddicom.valuerepresentations.IntDataElementWrapper
getInt, setInt
-
Methods inherited from interface org.dcm4che.typeddicom.valuerepresentations.UnsignedLongWrapper
getValueRepresentation
-
-
-
-
Field Detail
-
PRIVATE_CREATOR
public static final java.lang.String PRIVATE_CREATOR
The Private Creator associated with this class.
-
TAG
public static final int TAG
The DICOM Tag associated with this class.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
copy
public EncapsulatedDocumentLength 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.
-
getPrivateCreator
public java.lang.String getPrivateCreator()
- Specified by:
getPrivateCreatorin interfaceorg.dcm4che.typeddicom.DataElementWrapper
-
getTag
public int getTag()
- Specified by:
getTagin interfaceorg.dcm4che.typeddicom.DataElementWrapper
-
-