public static final class DefaultParserProviders.ArffParserProvider extends ParserProvider
Constructor and Description |
---|
ArffParserProvider() |
Modifier and Type | Method and Description |
---|---|
Parser |
createParser(ParseSetup setup,
Key<Job> jobKey)
Create a new parser
|
ParseSetup |
createParserSetup(Key[] inputs,
ParseSetup requiredSetup)
Create a parser specific setup.
|
ParseSetup |
guessInitSetup(ByteVec v,
byte[] bits,
ParseSetup ps)
Constructs initial ParseSetup from a given user setup
Any exception thrown by this method will signal that this ParserProvider doesn't support
the input data.
|
ParserInfo |
info()
Technical information for this parser
|
guessFinalSetup, guessSetup_impl, guessSetup, guessSetup, setupLocal
public ParserInfo info()
ParserProvider
info
in class ParserProvider
public Parser createParser(ParseSetup setup, Key<Job> jobKey)
ParserProvider
createParser
in class ParserProvider
public ParseSetup guessInitSetup(ByteVec v, byte[] bits, ParseSetup ps)
ParserProvider
guessInitSetup
in class ParserProvider
v
- optional ByteVecbits
- first bytes of the fileps
- user specified setuppublic ParseSetup createParserSetup(Key[] inputs, ParseSetup requiredSetup)
ParserProvider
createParserSetup
in class ParserProvider
inputs
- input keysrequiredSetup
- user given parser setup