public class MapBoxStyle extends Object
StyledLayerDescriptor.| Constructor and Description |
|---|
MapBoxStyle() |
| Modifier and Type | Method and Description |
|---|---|
static StyledLayerDescriptor |
parse(InputStream stream)
Read in the provided JSON as a
StyledLayerDescriptor. |
static StyledLayerDescriptor |
parse(Reader reader)
Read in the provided JSON as a
StyledLayerDescriptor. |
static List<Exception> |
validate(Reader reader)
Validate ability to read json, and parse each layer.
|
public static StyledLayerDescriptor parse(Reader reader) throws IOException, ParseException
StyledLayerDescriptor.reader - JSON contentParseException - Invalid JSON providedIOException - Problem reading definition from readerpublic static StyledLayerDescriptor parse(InputStream stream) throws IOException, ParseException
StyledLayerDescriptor.stream - JSON contentParseException - Invalid JSON providedIOException - Problem reading definition from streamCopyright © 1996–2021 Geotools. All rights reserved.