Package io.permazen.cli.parse
Class EncodingParser<T>
java.lang.Object
io.permazen.cli.parse.EncodingParser<T>
- All Implemented Interfaces:
Parser<T>
Parses a value having type supported by an
Encoding.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EncodingParser<?>getEncodingParser(String typeName) Create an instance based on type name.Parse value from the given text.
-
Constructor Details
-
EncodingParser
Constructor.- Parameters:
encoding- type to parse
-
-
Method Details
-
parse
Description copied from interface:ParserParse value from the given text. -
getEncodingParser
Create an instance based on type name.Resolution of
typeNameis deferred until parse time when the database is available.- Parameters:
typeName- the name of anEncoding- Returns:
- parser for the named type
-