Package org.geotools.mbstyle.parse
Class MBStyleParser
- Object
-
- MBStyleParser
-
public class MBStyleParser extends Object
- Author:
- Torben Barsballe (Boundless)
-
-
Constructor Summary
Constructors Constructor Description MBStyleParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MBStyle
parse(InputStream json)
Parse the provided json into MBStyle.MBStyle
parse(Reader json)
Parse the provided json into MBStyle.MBStyle
parse(String json)
Parse the provided json into MBStyle.
-
-
-
Method Detail
-
parse
public MBStyle parse(String json) throws ParseException, MBFormatException
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
public MBStyle parse(Reader json) throws ParseException, IOException, MBFormatException
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
public MBStyle parse(InputStream json) throws ParseException, IOException, MBFormatException
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
-
-