Class NdmWriter

java.lang.Object
org.orekit.files.ccsds.ndm.NdmWriter

public class NdmWriter extends Object
Writer for CCSDS Navigation Data Message.
Since:
11.0
Author:
Luc Maisonobe
  • Constructor Details

    • NdmWriter

      public NdmWriter(WriterBuilder builder)
      Simple constructor.

      Calling this constructor directly is not recommended. Users should rather use WriterBuilder.buildNdmWriter().

      Parameters:
      builder - builder for the constituents parsers
  • Method Details

    • writeMessage

      public void writeMessage(Generator generator, Ndm message) throws IOException
      Write one complete message.
      Parameters:
      generator - generator to use for producing output
      message - message to write
      Throws:
      IOException - if the stream cannot write to stream
    • writeComment

      public void writeComment(Generator generator, String comment) throws IOException
      Write a comment line.

      Comments allows comments only before constituents, so attempting to add comments after the first constituent has been written will produce an exception.

      Parameters:
      generator - generator to use for producing output
      comment - comment line to write
      Throws:
      IOException - if the stream cannot write to stream
    • writeConstituent

      public <H extends Header, S extends Segment<?, ?>, F extends NdmConstituent<H, S>> void writeConstituent(Generator generator, F constituent) throws IOException
      Write a constituent.
      Type Parameters:
      H - type of the header
      S - type of the segments
      F - type of the file
      Parameters:
      generator - generator to use for producing output
      constituent - constituent
      Throws:
      IOException - if the stream cannot write to stream