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


  • Field Details

  • Constructor Details

    • 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 Details

    • 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 String getPrivateCreator()
      Specified by:
      getPrivateCreator in interface DataElementWrapper
      Returns:
      The DICOM Private Creator of the wrapped DICOM attributes. null if not private
    • getTag

      public int getTag()
      Specified by:
      getTag in interface DataElementWrapper
      Returns:
      The DICOM Tag of the wrapped DICOM attributes.