Package org.orekit.files.ccsds.ndm.cdm
Class CdmWriter
- java.lang.Object
-
- org.orekit.files.ccsds.ndm.cdm.CdmMessageWriter
-
- org.orekit.files.ccsds.ndm.cdm.CdmWriter
-
- All Implemented Interfaces:
MessageWriter<CdmHeader,CdmSegment,Cdm>
public class CdmWriter extends CdmMessageWriter
Writer for CCSDS Conjunction Data Message.- Since:
- 11.2
- Author:
- Melina Vanel
-
-
Field Summary
Fields Modifier and Type Field Description static double
CCSDS_CDM_VERS
Version number implemented.static int
KVN_PADDING_WIDTH
Padding width for aligning the '=' sign.-
Fields inherited from class org.orekit.files.ccsds.ndm.cdm.CdmMessageWriter
DEFAULT_ORIGINATOR
-
-
Constructor Summary
Constructors Constructor Description CdmWriter(IERSConventions conventions, DataContext dataContext)
Complete constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeRelativeMetadataContent(Generator generator, double formatVersion, CdmRelativeMetadata relativeMetadata)
Write RelativeMetadata part only once after header.void
writeSegmentContent(Generator generator, double formatVersion, Segment<CdmMetadata,CdmData> segment)
Write one segment content (without XML wrapping).-
Methods inherited from class org.orekit.files.ccsds.ndm.cdm.CdmMessageWriter
getContext, getDefaultVersion, getFormatVersionKey, getRoot, getTimeConverter, getVersion, setContext, writeFooter, writeHeader, writeSegment
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.files.ccsds.utils.generation.MessageWriter
writeMessage
-
-
-
-
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 ConventionsdataContext
- 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 classCdmMessageWriter
- Parameters:
generator
- generator to use for producing outputformatVersion
- format version to usesegment
- 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 classCdmMessageWriter
- Parameters:
generator
- generator to use for producing outputformatVersion
- format version to userelativeMetadata
- relative metadata to write- Throws:
IOException
- if any buffer writing operations fails
-
-