Class 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.

      Note

      In 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.


    • Constructor Summary

      Constructors 
      Constructor Description
      EncapsulatedDocumentLength()
      Creates a new Encapsulated Document Length object which wraps a new and empty Attributes object.
      EncapsulatedDocumentLength​(org.dcm4che3.data.Attributes attributes)
      Creates a new Encapsulated Document Length object which wraps the provided attributes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      EncapsulatedDocumentLength copy()
      Returns a new Encapsulated Document Length which wraps a copy of the Attributes wrapped in this Encapsulated Document Length.
      java.lang.String getPrivateCreator()  
      int getTag()  
      • Methods inherited from class org.dcm4che.typeddicom.AbstractDataElementWrapper

        equals, exists, getValue, hashCode, toString
      • Methods inherited from class org.dcm4che.typeddicom.AbstractAttributesWrapper

        getAttributes
      • 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, getKnownAttributeTags, getUnknownAttributeTags, isEmpty
      • Methods inherited from interface org.dcm4che.typeddicom.valuerepresentations.BytesDataElementWrapper

        getBytes, getSafeBytes, setBytes
      • Methods inherited from interface org.dcm4che.typeddicom.DataElementWrapper

        exists, getValue
      • Methods inherited from interface org.dcm4che.typeddicom.valuerepresentations.IntDataElementWrapper

        getInt, setInt
    • Constructor Detail

      • EncapsulatedDocumentLength

        public EncapsulatedDocumentLength​(org.dcm4che3.data.Attributes attributes)
        Creates a new Encapsulated Document Length object which wraps the provided attributes.
        Parameters:
        attributes - the Attributes object to be wrapped.
      • EncapsulatedDocumentLength

        public EncapsulatedDocumentLength()
        Creates a new Encapsulated Document Length object which wraps a new and empty Attributes object.
    • 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. (see Attributes(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:
        getPrivateCreator in interface org.dcm4che.typeddicom.DataElementWrapper
      • getTag

        public int getTag()
        Specified by:
        getTag in interface org.dcm4che.typeddicom.DataElementWrapper