Package elki.datasource
Class InputStreamDatabaseConnection.Par
- java.lang.Object
-
- elki.datasource.AbstractDatabaseConnection.Par
-
- elki.datasource.InputStreamDatabaseConnection.Par
-
- All Implemented Interfaces:
Parameterizer
- Direct Known Subclasses:
FileBasedDatabaseConnection.Par
- Enclosing class:
- InputStreamDatabaseConnection
public static class InputStreamDatabaseConnection.Par extends AbstractDatabaseConnection.Par
Parameterization class.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.InputStream
instream
Input stream.static OptionID
STREAM_ID
Input stream to read.-
Fields inherited from class elki.datasource.AbstractDatabaseConnection.Par
filters, FILTERS_ID, parser, PARSER_ID
-
-
Constructor Summary
Constructors Constructor Description Par()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Parameterization config)
Configure the class.InputStreamDatabaseConnection
make()
Make an instance after successful configuration.-
Methods inherited from class elki.datasource.AbstractDatabaseConnection.Par
configFilters, configParser
-
-
-
-
Field Detail
-
STREAM_ID
public static final OptionID STREAM_ID
Input stream to read.Note that this parameter is not used by the subclass
FileBasedDatabaseConnection
. It is mostly useful with the Parameterization API from java.
-
instream
protected java.io.InputStream instream
Input stream.
-
-
Method Detail
-
configure
public void configure(Parameterization config)
Description copied from interface:Parameterizer
Configure the class.Note: the status is collected by the parameterization object, so that multiple errors may arise and be reported in one run.
- Parameters:
config
- Parameterization
-
make
public InputStreamDatabaseConnection make()
Description copied from interface:Parameterizer
Make an instance after successful configuration.Note: your class should return the exact type, only this very broad interface should use
Object
as return type.- Returns:
- a new instance
-
-