org.geotools.styling
Class SLDStyle

java.lang.Object
  extended byorg.geotools.styling.SLDParser
      extended byorg.geotools.styling.SLDStyle

Deprecated. Replaced by SLDParser which has a more appropriate name

public class SLDStyle
extends SLDParser

A class to read and parse an SLD file based on verion 0.7.2 of the OGC Styled Layer Descriptor Spec.

Version:
$Id: SLDStyle.java,v 1.42 2004/03/28 04:08:50 jmacgill Exp $
Author:
Ian Turton, Sean Geoghegan

Field Summary
 
Fields inherited from class org.geotools.styling.SLDParser
factory, source
 
Constructor Summary
SLDStyle(StyleFactory factory)
          Deprecated. Create a Stylereader - use if you already have a dom to parse.
SLDStyle(StyleFactory factory, java.io.File f)
          Deprecated. Creates a new SLDStyle object.
SLDStyle(StyleFactory factory, java.io.InputStream s)
          Deprecated. Creates a new SLDStyle object.
SLDStyle(StyleFactory factory, java.lang.String filename)
          Deprecated. Creates a new instance of SLDStyler
SLDStyle(StyleFactory factory, java.net.URL url)
          Deprecated. Creates a new SLDStyle object.
 
Methods inherited from class org.geotools.styling.SLDParser
parseDescriptor, parseNamedStyle, parseSLD, parseStyle, readDOM, readXML, setInput, setInput, setInput, setInput, setInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SLDStyle

public SLDStyle(StyleFactory factory)
Deprecated. 
Create a Stylereader - use if you already have a dom to parse.

Parameters:
factory - The StyleFactory to use to build the style

SLDStyle

public SLDStyle(StyleFactory factory,
                java.lang.String filename)
         throws java.io.FileNotFoundException
Deprecated. 
Creates a new instance of SLDStyler

Parameters:
factory - The StyleFactory to use to read the file
filename - The file to be read.
Throws:
java.io.FileNotFoundException - - if the file is missing

SLDStyle

public SLDStyle(StyleFactory factory,
                java.io.File f)
         throws java.io.FileNotFoundException
Deprecated. 
Creates a new SLDStyle object.

Parameters:
factory - The StyleFactory to use to read the file
f - the File to be read
Throws:
java.io.FileNotFoundException - - if the file is missing

SLDStyle

public SLDStyle(StyleFactory factory,
                java.net.URL url)
         throws java.io.IOException
Deprecated. 
Creates a new SLDStyle object.

Parameters:
factory - The StyleFactory to use to read the file
url - the URL to be read.
Throws:
java.io.IOException - - if something goes wrong reading the file

SLDStyle

public SLDStyle(StyleFactory factory,
                java.io.InputStream s)
Deprecated. 
Creates a new SLDStyle object.

Parameters:
factory - The StyleFactory to use to read the file
s - The inputstream to be read


Copyright © GeoTools. All Rights Reserved.