Package org.orekit.files.iirv.terms
Class IIRVTermUtils
java.lang.Object
org.orekit.files.iirv.terms.IIRVTermUtils
Utilities class for
IIRVVectorTerm subclasses.- Since:
- 13.0
- Author:
- Nick LaFarge
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddPadding(String string, char c, int size, boolean addPaddingToLeft) Add padding characters to a string.static StringiirvTermsToLineString(IIRVVectorTerm<?>... terms) Converts a list ofIIRVVectorTerminstances to a String for a single line of anIIRVVector.static StringiirvTermsToLineStringSplitByTerm(String delimiter, IIRVVectorTerm<?>... terms) Converts a list ofIIRVVectorTerminstances to a String for a single line of anIIRVVector, where each term in the line is split by a specified delimiter.
-
Method Details
-
addPadding
Add padding characters to a string.- Parameters:
string- string to padc- padding charactersize- desired sizeaddPaddingToLeft- if true, the resulting string is right justified (i.e. the padding character is added to the left of the string)- Returns:
- padded String
-
iirvTermsToLineString
Converts a list ofIIRVVectorTerminstances to a String for a single line of anIIRVVector.- Parameters:
terms- terms to parse/convert- Returns:
- String containing each of the inputted terms
-
iirvTermsToLineStringSplitByTerm
Converts a list ofIIRVVectorTerminstances to a String for a single line of anIIRVVector, where each term in the line is split by a specified delimiter.For real IIRV vector, the deliminator is always empty; it is only used when creating human-readable forms to more readily identify specific terms within a given message.
- Parameters:
delimiter- delimiter to insert between each IIRV vector termterms- terms to parse/convert- Returns:
- String containing each of the inputted terms
-