public GeoPackageDataType getDataType ( String type ) { GeoPackageDataType dataType = null ; try { dataType = GeoPackageDataType . fromName ( type ) ; } catch ( IllegalArgumentException dataTypeException ) { try { // Check if a geometry and convert to a blob GeometryType . fromName ( type ) ; dataType = GeoPackageDataType . BLOB ; } catch ( IllegalArgumentException geometryException ) { throw new GeoPackageException ( "Unsupported column data type " + type , dataTypeException ) ; } } return dataType ; }
Get the data type of the string type .