Package org.geotools.measure
Interface UnitFormatter
- All Known Implementing Classes:
BaseUnitFormatter
,EpsgUnitFormat
,EsriUnitFormat
,NetCDFUnitFormat
,UnitFormat
,WktUnitFormat
public interface UnitFormatter
An interface similar to
UnitFormat
but without mutating methods.-
Method Summary
Modifier and TypeMethodDescriptiondefault String
format
(Unit<?> unit) format
(Unit<?> unit, Appendable appendable) Unit<?>
parse
(CharSequence csq) Unit<?>
parse
(CharSequence csq, ParsePosition pos)
-
Method Details
-
format
- Throws:
IOException
-
format
-
parse
Unit<?> parse(CharSequence csq, ParsePosition pos) throws IllegalArgumentException, MeasurementParseException - Throws:
IllegalArgumentException
MeasurementParseException
-
parse
- Throws:
MeasurementParseException
-