Class LexicalAnalyzerSelector
- java.lang.Object
-
- org.orekit.files.ccsds.utils.lexical.LexicalAnalyzerSelector
-
public class LexicalAnalyzerSelector extends Object
Utility class for selecting eitherXmlLexicalAnalyzer
orKvnLexicalAnalyzer
depending on data first bytes.- Since:
- 11.0
- Author:
- Luc Maisonobe
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LexicalAnalyzer
select(DataSource source)
Select aLexicalAnalyzer
for aDataSource
based on content.
-
-
-
Method Detail
-
select
public static LexicalAnalyzer select(DataSource source) throws IOException
Select aLexicalAnalyzer
for aDataSource
based on content.- Parameters:
source
- data source to analyze- Returns:
- lexical analyzer suited for the data source format
- Throws:
IOException
- if first bytes of source cannot be read
-
-