Class LexicalAnalyzerSelector
java.lang.Object
org.orekit.files.ccsds.utils.lexical.LexicalAnalyzerSelector
Utility class for selecting either
XmlLexicalAnalyzer or KvnLexicalAnalyzer depending on
data first bytes.- Since:
- 11.0
- Author:
- Luc Maisonobe
-
Method Summary
Modifier and TypeMethodDescriptionstatic LexicalAnalyzerselect(DataSource source) Select aLexicalAnalyzerfor aDataSourcebased on content.
-
Method Details
-
select
Select aLexicalAnalyzerfor aDataSourcebased 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
-