Package org.geotools.mbstyle.parse
Class MBStyleParser
Object
MBStyleParser
- Author:
- Torben Barsballe (Boundless)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MBStyleParser
public MBStyleParser()
-
-
Method Details
-
parse
Parse the provided json into MBStyle.Please be aware that
MBStyle
.is a thin wrapper around the provided json and will lazily parse map box style contents as required.- Parameters:
json
- String- Returns:
- MBStyle
- Throws:
ParseException
- If JSON is not well formedMBFormatException
- If MapBox Style is obviously not well formed
-
parse
Parse the provided json into MBStyle.Please be aware that
MBStyle
.is a thin wrapper around the provided json and will lazily parse map box style contents as required.- Parameters:
json
- Reader- Returns:
- MBStyle
- Throws:
ParseException
- If JSON is not well formedIOException
- If json reader cannot be readMBFormatException
- If MapBox Style is obviously not well formed
-
parse
Parse the provided json into MBStyle.Please be aware that
MBStyle
.is a thin wrapper around the provided json and will lazily parse map box style contents as required.- Parameters:
json
- InputStream- Returns:
- MBStyle
- Throws:
ParseException
- If JSON is not well formedIOException
- If json input stream cannot be readMBFormatException
- If MapBox Style is obviously not well formed
-