public class OcmWriter extends AbstractMessageWriter<OdmHeader,Segment<OcmMetadata,OcmData>,Ocm>
EphemerisOcmWriter,
StreamingOcmWriter| Modifier and Type | Field and Description |
|---|---|
static double |
CCSDS_OCM_VERS
Version number implemented.
|
static int |
KVN_PADDING_WIDTH
Padding width for aligning the '=' sign.
|
DEFAULT_ORIGINATOR| Constructor and Description |
|---|
OcmWriter(IERSConventions conventions,
double equatorialRadius,
double flattening,
DataContext dataContext)
Complete constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getEquatorialRadius()
Get the central body equatorial radius.
|
double |
getFlattening()
Get the central body flattening.
|
protected void |
writeSegmentContent(Generator generator,
double formatVersion,
Segment<OcmMetadata,OcmData> segment)
Write one segment content (without XML wrapping).
|
getContext, getDefaultVersion, getFormatVersionKey, getRoot, getTimeConverter, getVersion, setContext, writeFooter, writeHeader, writeSegmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteMessagepublic static final double CCSDS_OCM_VERS
public static final int KVN_PADDING_WIDTH
public OcmWriter(IERSConventions conventions, double equatorialRadius, double flattening, DataContext dataContext)
Calling this constructor directly is not recommended. Users should rather use
writerBuilder.buildOcmWriter().
conventions - IERS ConventionsequatorialRadius - central body equatorial radiusflattening - central body flatteningdataContext - used to retrieve frames, time scales, etc.public double getEquatorialRadius()
public double getFlattening()
protected void writeSegmentContent(Generator generator, double formatVersion, Segment<OcmMetadata,OcmData> segment) throws IOException
writeSegmentContent in class AbstractMessageWriter<OdmHeader,Segment<OcmMetadata,OcmData>,Ocm>generator - generator to use for producing outputformatVersion - format version to usesegment - segment to writeIOException - if any buffer writing operations failsCopyright © 2002-2023 CS GROUP. All rights reserved.