Package org.goplanit.converter
Class MultiConverter<T,U>
- java.lang.Object
-
- org.goplanit.converter.ConverterBase
-
- org.goplanit.converter.MultiConverter<T,U>
-
- Type Parameters:
T
- planit entity to convertU
- planit entity to convert
- Direct Known Subclasses:
IntermodalConverter
public abstract class MultiConverter<T,U> extends ConverterBase
Convert multiple PLANit entities parsed by a reader from one format and persisted with a writer to another- Author:
- markr
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MultiConverter(MultiConverterReader<T,U> reader, MultiConverterWriter<T,U> writer)
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
convert()
Convert the reader's parsed content by passing it on to the writer.-
Methods inherited from class org.goplanit.converter.ConverterBase
getReader, getWriter
-
-
-
-
Constructor Detail
-
MultiConverter
protected MultiConverter(MultiConverterReader<T,U> reader, MultiConverterWriter<T,U> writer)
constructor- Parameters:
reader
- to use for parsingwriter
- to use for persisting
-
-
Method Detail
-
convert
public void convert() throws PlanItException
Convert the reader's parsed content by passing it on to the writer. It is assumed both reader and writer are fully configured when this method is called- Specified by:
convert
in classConverterBase
- Throws:
PlanItException
- thrown if error
-
-