Package uk.ac.rdg.resc.edal.covjson
Class CoverageJsonConverterImpl
- java.lang.Object
-
- uk.ac.rdg.resc.edal.covjson.CoverageJsonConverterImpl
-
- All Implemented Interfaces:
CoverageJsonConverter
public class CoverageJsonConverterImpl extends Object implements CoverageJsonConverter
- Author:
- Maik Riechert
-
-
Constructor Summary
Constructors Constructor Description CoverageJsonConverterImpl()
CoverageJsonConverterImpl(Map<String,DecimalFormat> field2dp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkFeaturesSupported(Collection<? extends Feature<?>> features)
Checks whether the converter will be able to convert the given features successfully.void
checkFeatureSupported(Feature<?> feature)
Checks whether the converter will be able to convert the given feature successfully.void
convertFeaturesToJson(OutputStream os, Collection<? extends Feature<?>> features)
Writes a collection of Features as a CoverageJSON document to the given OutputStream.void
convertFeatureToJson(OutputStream os, Feature<?> feature)
Writes a Feature as a CoverageJSON document to the given OutputStream.
-
-
-
Constructor Detail
-
CoverageJsonConverterImpl
public CoverageJsonConverterImpl()
-
CoverageJsonConverterImpl
public CoverageJsonConverterImpl(Map<String,DecimalFormat> field2dp)
-
-
Method Detail
-
convertFeatureToJson
public void convertFeatureToJson(OutputStream os, Feature<?> feature)
Description copied from interface:CoverageJsonConverter
Writes a Feature as a CoverageJSON document to the given OutputStream. Note that the OutputStream is *not* closed at the end.- Specified by:
convertFeatureToJson
in interfaceCoverageJsonConverter
- Parameters:
os
- The stream to write to.feature
- The feature to serialize.
-
convertFeaturesToJson
public void convertFeaturesToJson(OutputStream os, Collection<? extends Feature<?>> features)
Description copied from interface:CoverageJsonConverter
Writes a collection of Features as a CoverageJSON document to the given OutputStream. Note that the OutputStream is *not* closed at the end.- Specified by:
convertFeaturesToJson
in interfaceCoverageJsonConverter
- Parameters:
os
- The stream to write to.features
- The features to serialize.
-
checkFeatureSupported
public void checkFeatureSupported(Feature<?> feature)
Description copied from interface:CoverageJsonConverter
Checks whether the converter will be able to convert the given feature successfully.- Specified by:
checkFeatureSupported
in interfaceCoverageJsonConverter
- Parameters:
feature
- The feature to check.
-
checkFeaturesSupported
public void checkFeaturesSupported(Collection<? extends Feature<?>> features)
Description copied from interface:CoverageJsonConverter
Checks whether the converter will be able to convert the given features successfully.- Specified by:
checkFeaturesSupported
in interfaceCoverageJsonConverter
- Parameters:
features
- The features to check.
-
-