Class CdmWriter

    • Field Detail

      • CCSDS_CDM_VERS

        public static final double CCSDS_CDM_VERS
        Version number implemented.
        See Also:
        Constant Field Values
      • KVN_PADDING_WIDTH

        public static final int KVN_PADDING_WIDTH
        Padding width for aligning the '=' sign.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CdmWriter

        public CdmWriter​(IERSConventions conventions,
                         DataContext dataContext)
        Complete constructor.

        Calling this constructor directly is not recommended. Users should rather use writerBuilder.buildCdmWriter().

        Parameters:
        conventions - IERS Conventions
        dataContext - used to retrieve frames, time scales, etc.
    • Method Detail

      • writeSegmentContent

        public void writeSegmentContent​(Generator generator,
                                        double formatVersion,
                                        Segment<CdmMetadata,​CdmData> segment)
                                 throws IOException
        Write one segment content (without XML wrapping).
        Specified by:
        writeSegmentContent in class CdmMessageWriter
        Parameters:
        generator - generator to use for producing output
        formatVersion - format version to use
        segment - segment to write
        Throws:
        IOException - if any buffer writing operations fails
      • writeRelativeMetadataContent

        public void writeRelativeMetadataContent​(Generator generator,
                                                 double formatVersion,
                                                 CdmRelativeMetadata relativeMetadata)
                                          throws IOException
        Description copied from class: CdmMessageWriter
        Write RelativeMetadata part only once after header.
        Specified by:
        writeRelativeMetadataContent in class CdmMessageWriter
        Parameters:
        generator - generator to use for producing output
        formatVersion - format version to use
        relativeMetadata - relative metadata to write
        Throws:
        IOException - if any buffer writing operations fails