Class ParsingUtils

java.lang.Object
org.orekit.files.rinex.utils.ParsingUtils

public class ParsingUtils extends Object
Utilities for RINEX various messages files.
Since:
12.0
Author:
Luc Maisonobe
  • Method Details

    • parseComment

      public static void parseComment(int lineNumber, String line, RinexFile<?> rinexFile)
      Parse a comment.
      Parameters:
      lineNumber - line number
      line - line to parse
      rinexFile - rinex file
    • parseDouble

      public static double parseDouble(String line, int startIndex, int size)
      Parse a double value.
      Parameters:
      line - line to parse
      startIndex - start index
      size - size of the value
      Returns:
      the parsed value
    • parseInt

      public static int parseInt(String line, int startIndex, int size)
      Parse an integer value.
      Parameters:
      line - line to parse
      startIndex - start index
      size - size of the value
      Returns:
      the parsed value
    • parseLong

      public static long parseLong(String line, int startIndex, int size)
      Parse a long integer value.
      Parameters:
      line - line to parse
      startIndex - start index
      size - size of the value
      Returns:
      the parsed value
      Since:
      14.0
    • parseString

      public static String parseString(String line, int startIndex, int size)
      Parse a string value.
      Parameters:
      line - line to parse
      startIndex - start index
      size - size of the value
      Returns:
      the parsed value
    • convert2DigitsYear

      public static int convert2DigitsYear(int yy)
      Convert a 2 digits year to a complete year.
      Parameters:
      yy - year between 0 and 99
      Returns:
      complete year
      Since:
      12.0