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 voidcheckFeaturesSupported(Collection<? extends Feature<?>> features)Checks whether the converter will be able to convert the given features successfully.voidcheckFeatureSupported(Feature<?> feature)Checks whether the converter will be able to convert the given feature successfully.voidconvertFeaturesToJson(OutputStream os, Collection<? extends Feature<?>> features)Writes a collection of Features as a CoverageJSON document to the given OutputStream.voidconvertFeatureToJson(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:CoverageJsonConverterWrites a Feature as a CoverageJSON document to the given OutputStream. Note that the OutputStream is *not* closed at the end.- Specified by:
convertFeatureToJsonin 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:CoverageJsonConverterWrites a collection of Features as a CoverageJSON document to the given OutputStream. Note that the OutputStream is *not* closed at the end.- Specified by:
convertFeaturesToJsonin interfaceCoverageJsonConverter- Parameters:
os- The stream to write to.features- The features to serialize.
-
checkFeatureSupported
public void checkFeatureSupported(Feature<?> feature)
Description copied from interface:CoverageJsonConverterChecks whether the converter will be able to convert the given feature successfully.- Specified by:
checkFeatureSupportedin interfaceCoverageJsonConverter- Parameters:
feature- The feature to check.
-
checkFeaturesSupported
public void checkFeaturesSupported(Collection<? extends Feature<?>> features)
Description copied from interface:CoverageJsonConverterChecks whether the converter will be able to convert the given features successfully.- Specified by:
checkFeaturesSupportedin interfaceCoverageJsonConverter- Parameters:
features- The features to check.
-
-