@Title(value="Input-Stream based database connection") @Description(value="Parse an input stream such as STDIN into a database.") public class InputStreamDatabaseConnection extends AbstractDatabaseConnection
Modifier and Type | Class and Description |
---|---|
static class |
InputStreamDatabaseConnection.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
(package private) InputStream |
in
The input stream to parse from.
|
private static Logging |
logger
The logger for this class.
|
(package private) Parser |
parser
Holds the instance of the parser.
|
static OptionID |
PARSER_ID
Parameter to specify the parser to provide a database.
|
filters, FILTERS_ID, LABEL_CONCATENATION
Constructor and Description |
---|
InputStreamDatabaseConnection(List<ObjectFilter> filters,
Parser parser)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Logging |
getLogger()
Get the logger for this database connection.
|
MultipleObjectsBundle |
loadData()
Returns the initial data for a database.
|
invokeFilters
private static final Logging logger
public static final OptionID PARSER_ID
Key: -dbc.parser
Parser parser
InputStream in
public InputStreamDatabaseConnection(List<ObjectFilter> filters, Parser parser)
filters
- Filters to useparser
- the parser to provide a databasepublic MultipleObjectsBundle loadData()
DatabaseConnection
protected Logging getLogger()
AbstractDatabaseConnection
getLogger
in class AbstractDatabaseConnection