Package org.n52.io.handler.profile
Class ProfileCsvIoHandler
- java.lang.Object
-
- org.n52.io.handler.IoHandler<Data<T>>
-
- org.n52.io.handler.CsvIoHandler<ProfileValue<?>>
-
- org.n52.io.handler.profile.ProfileCsvIoHandler
-
public class ProfileCsvIoHandler extends CsvIoHandler<ProfileValue<?>>
-
-
Field Summary
-
Fields inherited from class org.n52.io.handler.CsvIoHandler
UTF8
-
-
Constructor Summary
Constructors Constructor Description ProfileCsvIoHandler(IoParameters parameters, IoProcessChain<Data<ProfileValue<?>>> processChain, List<? extends DatasetOutput<ProfileValue<?>>> seriesMetadatas)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencodeAndWriteTo(DataCollection<Data<ProfileValue<?>>> data, OutputStream stream)Encodes and writes previously generated output to the given stream.protected StringgetFilenameFor(DatasetOutput<ProfileValue<?>> seriesMetadata)protected String[]getHeader(DatasetOutput<ProfileValue<?>> metadata)protected voidwriteData(DatasetOutput<ProfileValue<?>> metadata, Data<ProfileValue<?>> series, OutputStream stream)-
Methods inherited from class org.n52.io.handler.CsvIoHandler
csvEncode, getLabel, getMetadatas, getPlatformLabel, isTrajectory, isZipOutput, parseTime, setZipOutput, writeAsZipStream, writeHeader, writeText
-
Methods inherited from class org.n52.io.handler.IoHandler
getParameters, writeBinary
-
-
-
-
Constructor Detail
-
ProfileCsvIoHandler
public ProfileCsvIoHandler(IoParameters parameters, IoProcessChain<Data<ProfileValue<?>>> processChain, List<? extends DatasetOutput<ProfileValue<?>>> seriesMetadatas)
-
-
Method Detail
-
encodeAndWriteTo
public void encodeAndWriteTo(DataCollection<Data<ProfileValue<?>>> data, OutputStream stream) throws IoParseException
Description copied from class:IoHandlerEncodes and writes previously generated output to the given stream.- Overrides:
encodeAndWriteToin classCsvIoHandler<ProfileValue<?>>- Parameters:
data- the input data collection to create an output for.stream- the stream to write on the generated ouput.- Throws:
IoParseException
-
getHeader
protected String[] getHeader(DatasetOutput<ProfileValue<?>> metadata)
- Specified by:
getHeaderin classCsvIoHandler<ProfileValue<?>>
-
writeData
protected void writeData(DatasetOutput<ProfileValue<?>> metadata, Data<ProfileValue<?>> series, OutputStream stream) throws IOException
- Specified by:
writeDatain classCsvIoHandler<ProfileValue<?>>- Throws:
IOException
-
getFilenameFor
protected String getFilenameFor(DatasetOutput<ProfileValue<?>> seriesMetadata)
- Specified by:
getFilenameForin classCsvIoHandler<ProfileValue<?>>
-
-