Package uk.ac.rdg.resc.edal.covjson
Interface CoverageJsonConverter
-
- All Known Implementing Classes:
CoverageJsonConverterImpl
public interface CoverageJsonConverter
-
-
Method Summary
All Methods Instance Methods Abstract 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 out, Collection<? extends Feature<?>> features)Writes a collection of Features as a CoverageJSON document to the given OutputStream.voidconvertFeatureToJson(OutputStream out, Feature<?> feature)Writes a Feature as a CoverageJSON document to the given OutputStream.
-
-
-
Method Detail
-
convertFeatureToJson
void convertFeatureToJson(OutputStream out, Feature<?> feature)
Writes a Feature as a CoverageJSON document to the given OutputStream. Note that the OutputStream is *not* closed at the end.- Parameters:
out- The stream to write to.feature- The feature to serialize.
-
checkFeatureSupported
void checkFeatureSupported(Feature<?> feature)
Checks whether the converter will be able to convert the given feature successfully.- Parameters:
feature- The feature to check.- Throws:
EdalException- If the feature cannot be converted.
-
convertFeaturesToJson
void convertFeaturesToJson(OutputStream out, Collection<? extends Feature<?>> features)
Writes a collection of Features as a CoverageJSON document to the given OutputStream. Note that the OutputStream is *not* closed at the end.- Parameters:
out- The stream to write to.features- The features to serialize.
-
checkFeaturesSupported
void checkFeaturesSupported(Collection<? extends Feature<?>> features)
Checks whether the converter will be able to convert the given features successfully.- Parameters:
features- The features to check.- Throws:
EdalException- If the features cannot be converted.
-
-