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 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 out, Collection<? extends Feature<?>> features)
Writes a collection of Features as a CoverageJSON document to the given OutputStream.void
convertFeatureToJson(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.
-
-