public class Ysld extends Object
Modifier and Type | Field and Description |
---|---|
static String |
OPTION_PREFIX |
Constructor and Description |
---|
Ysld() |
Modifier and Type | Method and Description |
---|---|
static void |
encode(StyledLayerDescriptor sld,
Object output)
Encodes a GeoTools style object as Ysld.
|
static void |
encode(StyledLayerDescriptor sld,
Object output,
UomMapper uomMapper)
Encodes a GeoTools style object as Ysld.
|
static StyledLayerDescriptor |
parse(Object ysld)
Parses a Ysld stream into GeoTools style objects.
|
static StyledLayerDescriptor |
parse(Object ysld,
List<ZoomContextFinder> zCtxtFinders,
ResourceLocator locator)
Parses a Ysld stream into GeoTools style objects.
|
static StyledLayerDescriptor |
parse(Object ysld,
List<ZoomContextFinder> zCtxtFinders,
ResourceLocator locator,
UomMapper uomMapper)
Parses a Ysld stream into GeoTools style objects.
|
static void |
transform(InputStream sld,
Writer ysld)
Transforms an SLD stream to Ysld.
|
static void |
transform(XMLStreamReader sld,
Writer ysld)
Transforms an SLD stream to Ysld.
|
static List<MarkedYAMLException> |
validate(Object ysld)
Validates a Ysld stream.
|
static List<MarkedYAMLException> |
validate(Object ysld,
List<ZoomContextFinder> zContextFinders,
UomMapper uomMapper)
Validates a Ysld stream.
|
static XMLStreamReader |
xmlReader(Object input)
Creates an XML reader from an input object.
|
public static String OPTION_PREFIX
public static XMLStreamReader xmlReader(Object input) throws IOException
input
- THe input object, see reader(Object)
for details.IOException
public static StyledLayerDescriptor parse(Object ysld, @Nullable List<ZoomContextFinder> zCtxtFinders, @Nullable ResourceLocator locator) throws IOException
ysld
- The Ysld content, anything accepted by reader(Object)
.locator
- Resource locator for resolving relative URIs.IOException
public static StyledLayerDescriptor parse(Object ysld, @Nullable List<ZoomContextFinder> zCtxtFinders, @Nullable ResourceLocator locator, @Nullable UomMapper uomMapper) throws IOException
ysld
- The Ysld content, anything accepted by reader(Object)
.locator
- Resource locator for resolving relative URIs.IOException
public static StyledLayerDescriptor parse(Object ysld) throws IOException
ysld
- The Ysld content, anything accepted by reader(Object)
.IOException
public static void encode(StyledLayerDescriptor sld, Object output) throws IOException
sld
- The sld to encode.output
- The output object, anything accepted by writer(Object)
IOException
public static void encode(StyledLayerDescriptor sld, Object output, UomMapper uomMapper) throws IOException
sld
- The sld to encode.output
- The output object, anything accepted by writer(Object)
IOException
public static void transform(XMLStreamReader sld, Writer ysld) throws IOException
sld
- SLD xml reader.ysld
- Ysld writer.IOException
public static void transform(InputStream sld, Writer ysld) throws IOException
sld
- SLD xml reader.ysld
- Ysld writer.IOException
public static List<MarkedYAMLException> validate(Object ysld) throws IOException
ysld
- The Ysld.IOException
public static List<MarkedYAMLException> validate(Object ysld, List<ZoomContextFinder> zContextFinders, UomMapper uomMapper) throws IOException
ysld
- The Ysld.zContextFinders
- additional zoom context finders in order of priority.IOException
Copyright © 1996–2019 Geotools. All rights reserved.