public class MBStyleParser extends Object
| Constructor and Description |
|---|
MBStyleParser() |
| Modifier and Type | Method and 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.
|
public MBStyle parse(String json) throws ParseException, MBFormatException
Please be aware that MBStyle.is a thin wrapper around the provided json and will
lazily parse map box style contents as required.
json - StringParseException - If JSON is not well formedMBFormatException - If MapBox Style is obviously not well formedpublic MBStyle parse(Reader json) throws ParseException, IOException, MBFormatException
Please be aware that MBStyle.is a thin wrapper around the provided json and will
lazily parse map box style contents as required.
json - ReaderParseException - If JSON is not well formedIOException - If json reader cannot be readMBFormatException - If MapBox Style is obviously not well formedpublic MBStyle parse(InputStream json) throws ParseException, IOException, MBFormatException
Please be aware that MBStyle.is a thin wrapper around the provided json and will
lazily parse map box style contents as required.
json - InputStreamParseException - If JSON is not well formedIOException - If json input stream cannot be readMBFormatException - If MapBox Style is obviously not well formedCopyright © 1996–2021 Geotools. All rights reserved.