Package org.orekit.files.rinex.clock
Class RinexClockWriter
java.lang.Object
org.orekit.files.rinex.utils.BaseRinexWriter<RinexClockHeader>
org.orekit.files.rinex.clock.RinexClockWriter
- All Implemented Interfaces:
AutoCloseable
Writer for Rinex clock file.
- Since:
- 14.0
- Author:
- Luc Maisonobe
-
Field Summary
Fields inherited from class org.orekit.files.rinex.utils.BaseRinexWriter
FOUR_DIGITS_INTEGER, NINE_TWO_DIGITS_FLOAT, NINETEEN_SCIENTIFIC_FLOAT, PADDED_FOUR_DIGITS_INTEGER, PADDED_TWO_DIGITS_INTEGER, SIX_DIGITS_INTEGER, THREE_DIGITS_INTEGER, TWO_DIGITS_INTEGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteClockDataLine(ClockDataLine clockDataLine) Write a clock data line.voidwriteCompleteFile(RinexClock rinexClock) Write a complete clock file.voidwriteHeader(RinexClockHeader header) Write header.Methods inherited from class org.orekit.files.rinex.utils.BaseRinexWriter
checkHeaderWritten, close, exceedsHeaderLength, finishHeaderLine, finishLine, getColumn, getHeader, outputField, outputField, outputField, outputField, outputField, prepareComments, writeHeader, writeHeaderLine, writeProgramRunByDate
-
Constructor Details
-
RinexClockWriter
Simple constructor.This constructor uses the
default data contextand recognizes onlyPredefinedTimeSystem.- Parameters:
output- destination of generated outputoutputName- output name for error messages
-
-
Method Details
-
writeCompleteFile
Write a complete clock file.This method calls
BaseRinexWriter.prepareComments(List)andwriteHeader(RinexClockHeader)once and then loops on callingwriteClockDataLine(ClockDataLine)for all data lines in the file- Parameters:
rinexClock- Rinex clock file to write- Throws:
IOException- if an I/O error occurs.- See Also:
-
writeHeader
Write header.This method must be called exactly once at the beginning (directly or by
writeCompleteFile(RinexClock))- Parameters:
header- header to write- Throws:
IOException- if an I/O error occurs.
-
writeClockDataLine
Write a clock data line.- Parameters:
clockDataLine- clock data line to write- Throws:
IOException- if an I/O error occurs.
-