Package org.n52.io.handler
Class IoHandler<T extends Data<? extends AbstractValue<?>>>
- java.lang.Object
-
- org.n52.io.handler.IoHandler<T>
-
- Direct Known Subclasses:
ChartIoHandler,CsvIoHandler,ReportGenerator
public abstract class IoHandler<T extends Data<? extends AbstractValue<?>>> extends Object
-
-
Constructor Summary
Constructors Constructor Description IoHandler(IoParameters parameters, IoProcessChain<T> processChain)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidencodeAndWriteTo(DataCollection<T> data, OutputStream stream)Encodes and writes previously generated output to the given stream.protected IoParametersgetParameters()voidwriteBinary(OutputStream outputStream)
-
-
-
Field Detail
-
i18n
protected final I18N i18n
-
-
Constructor Detail
-
IoHandler
public IoHandler(IoParameters parameters, IoProcessChain<T> processChain)
-
-
Method Detail
-
encodeAndWriteTo
protected abstract void encodeAndWriteTo(DataCollection<T> data, OutputStream stream) throws IoHandlerException
Encodes and writes previously generated output to the given stream.- Parameters:
data- the input data collection to create an output for.stream- the stream to write on the generated ouput.- Throws:
IoHandlerException- if writing output to stream fails.
-
writeBinary
public void writeBinary(OutputStream outputStream) throws IoHandlerException
- Throws:
IoHandlerException
-
getParameters
protected IoParameters getParameters()
-
-