Package org.orekit.files.ccsds.section
Class AbstractWriter
java.lang.Object
org.orekit.files.ccsds.section.AbstractWriter
- Direct Known Subclasses:
AdditionalParametersWriter,AdmCommonMetadataWriter,CartesianCovarianceWriter,CdmMetadataWriter,CommonMetadataWriter,ODParametersWriter,RTNCovarianceWriter,SpacecraftParametersWriter,StateVectorWriter,StateVectorWriter,UserDefinedWriter
Top level class for writing CCSDS message sections.
- Since:
- 11.0
- Author:
- Luc Maisonobe
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractWriter(String xmlTag, String kvnTag) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidenterSection(Generator generator) Enter the section.voidexitSection(Generator generator) Exit the section.protected StringintArrayToString(int[] integers) Convert an array of integer to a comma-separated list.voidWrite the section, including surrounding tags.protected abstract voidwriteContent(Generator generator) Write the content of the section, excluding surrounding tags.
-
Constructor Details
-
AbstractWriter
Simple constructor.- Parameters:
xmlTag- name of the XML tag surrounding the sectionkvnTag- name of the KVN tag surrounding the section (may be null)
-
-
Method Details
-
write
Write the section, including surrounding tags.- Parameters:
generator- generator to use for producing output- Throws:
IOException- if any buffer writing operations fails
-
enterSection
Enter the section.- Parameters:
generator- generator to use for producing output- Throws:
IOException- if an I/O error occurs.- Since:
- 12.0
-
exitSection
Exit the section.- Parameters:
generator- generator to use for producing output- Throws:
IOException- if an I/O error occurs.- Since:
- 12.0
-
writeContent
Write the content of the section, excluding surrounding tags.- Parameters:
generator- generator to use for producing output- Throws:
IOException- if any buffer writing operations fails
-
intArrayToString
Convert an array of integer to a comma-separated list.- Parameters:
integers- integers to write- Returns:
- arrays as a string
-