parse method
Parse a hex encoded geometry
Is synchronized to protect offset counter. (Unfortunately, Java does not have neither call by reference nor multiple return values.)
@param value String containing the data to be parsed @return resulting geometry for the parsed data TODO Parse a binary encoded geometry.
Is synchronized to protect offset counter. (Unfortunately, Java does not have neither call by reference nor multiple return values.)
@param value byte array containing the data to be parsed @return resulting geometry for the parsed data
Implementation
// Geometry parseString(String value) {
// StringByteGetter bytes = new StringByteGetter(value);
// return parseGeometry(valueGetterForEndian(bytes));
// }
/// Parse a binary encoded geometry.
///
/// Is synchronized to protect offset counter. (Unfortunately, Java does not
/// have neither call by reference nor multiple return values.)
///
/// @param value byte array containing the data to be parsed
/// @return resulting geometry for the parsed data
Geometry parse(List<int> value) {
BinaryByteGetter bytes = BinaryByteGetter(value);
return parseGeometry(valueGetterForEndian(bytes));
}