Package org.orekit.files.rinex.utils
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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intconvert2DigitsYear(int yy)Convert a 2 digits year to a complete year.static voidparseComment(int lineNumber, String line, RinexFile<?> rinexFile)Parse a comment.static doubleparseDouble(String line, int startIndex, int size)Parse a double value.static intparseInt(String line, int startIndex, int size)Parse an integer value.static longparseLong(String line, int startIndex, int size)Parse a long integer value.static StringparseString(String line, int startIndex, int size)Parse a string value.
-
-
-
Method Detail
-
parseComment
public static void parseComment(int lineNumber, String line, RinexFile<?> rinexFile)Parse a comment.- Parameters:
lineNumber- line numberline- line to parserinexFile- rinex file
-
parseDouble
public static double parseDouble(String line, int startIndex, int size)
Parse a double value.- Parameters:
line- line to parsestartIndex- start indexsize- 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 parsestartIndex- start indexsize- 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 parsestartIndex- start indexsize- 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 parsestartIndex- start indexsize- 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
-
-