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