Package de.uni_trier.wi2.procake.data.io
Class IOImpl
- java.lang.Object
-
- de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
-
- de.uni_trier.wi2.procake.data.io.IOImpl
-
- All Implemented Interfaces:
IO
- Direct Known Subclasses:
Deserializer,PrologGraphParser,Serializer,StringReader,StringWriter,XMLReaderImpl,XMLReadHandlerImpl,XMLWriterImpl
public abstract class IOImpl extends FactoryObjectImplementation implements IO
Standard implementation for all IO-operators- Author:
- Alexander Stromer
-
-
Field Summary
-
Fields inherited from interface de.uni_trier.wi2.procake.utils.io.IO
COMPONENT, COMPONENT_KEY, DEFAULT_ENCODING, LOG_CONTENTHANDLER_NOT_FOUND, LOG_FILE_NOT_FOUND, LOG_IO_EXCEPTION, LOG_READER_NOT_FOUND, LOG_SAX_EXCEPTION, LOG_UNKNOWN_PARAMETER, LOG_WRITER_NOT_FOUND, LOG_WRONG_PARAMATER_TYPE, RESOURCE_XML
-
-
Constructor Summary
Constructors Constructor Description IOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()A description of the io component.StringgetFamily()Returns the IO-family of this operatorList<Parameter>getParameters()voidpostInit()Called after all factories are initialized withFactoryObjectImplementation.preInit(AbstractParameter[])and bind to the factory.voidpreInit(AbstractParameter[] parameter)Called directly after creating the implementation.voidsetFamily(String familyName)Sets the IO-family of this operator-
Methods inherited from class de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
getParameter, initParametersBasedOn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.uni_trier.wi2.procake.utils.io.IO
copy, getName, isHandlerFor
-
-
-
-
Method Detail
-
preInit
public void preInit(AbstractParameter[] parameter)
Called directly after creating the implementation.- Specified by:
preInitin classFactoryObjectImplementation- Parameters:
parameter- The parameters to initialize the implementation.
-
postInit
public void postInit()
Called after all factories are initialized withFactoryObjectImplementation.preInit(AbstractParameter[])and bind to the factory.- Specified by:
postInitin classFactoryObjectImplementation
-
getParameters
public List<Parameter> getParameters()
- Specified by:
getParametersin classFactoryObjectImplementation- Returns:
- Returns a list of available parameters in the implementation. This method can be called
without initialization and is never
null.
-
getDescription
public String getDescription()
A description of the io component. The description should contain the file format and the classes that can be managed.- Specified by:
getDescriptionin interfaceIO- Returns:
- a description of the io component
-
getFamily
public String getFamily()
Returns the IO-family of this operator
-
-