📄 sldparser.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/styling/StyledLayerDescriptor.html" title="interface in org.geotools.styling">StyledLayerDescriptor</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/styling/SLDParser.html#parseSLD()">parseSLD</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/styling/SLDParser.html#parseStyle(org.w3c.dom.Node)">parseStyle</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/org/w3c/dom/Node.html" title="class or interface in org.w3c.dom">Node</A> n)</CODE><BR> build a style for the Node provided</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/styling/SLDParser.html#readDOM(org.w3c.dom.Document)">readDOM</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/org/w3c/dom/Document.html" title="class or interface in org.w3c.dom">Document</A> document)</CODE><BR> Read the DOM provided and create a Style object for each user style found</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/styling/SLDParser.html#readXML()">readXML</A></B>()</CODE><BR> Read the xml inputsource provided and create a Style object for each user style found</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/styling/SLDParser.html#setInput(java.io.File)">setInput</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/File.html" title="class or interface in java.io">File</A> f)</CODE><BR> Sets the file to use to read the SLD from</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/styling/SLDParser.html#setInput(java.io.InputStream)">setInput</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> in)</CODE><BR> Sets the input stream to read the SLD from</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/styling/SLDParser.html#setInput(java.io.Reader)">setInput</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Reader.html" title="class or interface in java.io">Reader</A> in)</CODE><BR> Sets the input stream to read the SLD from</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/styling/SLDParser.html#setInput(java.lang.String)">setInput</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> filename)</CODE><BR> set the file to read the SLD from</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/styling/SLDParser.html#setInput(java.net.URL)">setInput</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URL.html" title="class or interface in java.net">URL</A> url)</CODE><BR> sets an URL to read the SLD from</TD></TR></TABLE> <A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="source"><!-- --></A><H3>source</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/org/xml/sax/InputSource.html" title="class or interface in org.xml.sax">InputSource</A> <B>source</B></PRE><DL><DL></DL></DL><HR><A NAME="factory"><!-- --></A><H3>factory</H3><PRE>protected <A HREF="../../../org/geotools/styling/StyleFactory.html" title="interface in org.geotools.styling">StyleFactory</A> <B>factory</B></PRE><DL><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="SLDParser(org.geotools.styling.StyleFactory)"><!-- --></A><H3>SLDParser</H3><PRE>public <B>SLDParser</B>(<A HREF="../../../org/geotools/styling/StyleFactory.html" title="interface in org.geotools.styling">StyleFactory</A> factory)</PRE><DL><DD>Create a Stylereader - use if you already have a dom to parse.<P><DT><B>Parameters:</B><DD><CODE>factory</CODE> - The StyleFactory to use to build the style</DL><HR><A NAME="SLDParser(org.geotools.styling.StyleFactory, java.lang.String)"><!-- --></A><H3>SLDParser</H3><PRE>public <B>SLDParser</B>(<A HREF="../../../org/geotools/styling/StyleFactory.html" title="interface in org.geotools.styling">StyleFactory</A> factory, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> filename) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/FileNotFoundException.html" title="class or interface in java.io">FileNotFoundException</A></PRE><DL><DD>Creates a new instance of SLDStyler<P><DT><B>Parameters:</B><DD><CODE>factory</CODE> - The StyleFactory to use to read the file<DD><CODE>filename</CODE> - The file to be read.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/FileNotFoundException.html" title="class or interface in java.io">FileNotFoundException</A></CODE> - - if the file is missing</DL><HR><A NAME="SLDParser(org.geotools.styling.StyleFactory, java.io.File)"><!-- --></A><H3>SLDParser</H3><PRE>public <B>SLDParser</B>(<A HREF="../../../org/geotools/styling/StyleFactory.html" title="interface in org.geotools.styling">StyleFactory</A> factory, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/File.html" title="class or interface in java.io">File</A> f) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/FileNotFoundException.html" title="class or interface in java.io">FileNotFoundException</A></PRE><DL><DD>Creates a new SLDStyle object.<P><DT><B>Parameters:</B><DD><CODE>factory</CODE> - The StyleFactory to use to read the file<DD><CODE>f</CODE> - the File to be read<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/FileNotFoundException.html" title="class or interface in java.io">FileNotFoundException</A></CODE> - - if the file is missing</DL><HR><A NAME="SLDParser(org.geotools.styling.StyleFactory, java.net.URL)"><!-- --></A><H3>SLDParser</H3><PRE>public <B>SLDParser</B>(<A HREF="../../../org/geotools/styling/StyleFactory.html" title="interface in org.geotools.styling">StyleFactory</A> factory, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URL.html" title="class or interface in java.net">URL</A> url) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Creates a new SLDStyle object.<P><DT><B>Parameters:</B><DD><CODE>factory</CODE> - The StyleFactory to use to read the file<DD><CODE>url</CODE> - the URL to be read.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - - if something goes wrong reading the file</DL><HR><A NAME="SLDParser(org.geotools.styling.StyleFactory, java.io.InputStream)"><!-- --></A><H3>SLDParser</H3><PRE>public <B>SLDParser</B>(<A HREF="../../../org/geotools/styling/StyleFactory.html" title="interface in org.geotools.styling">StyleFactory</A> factory, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> s)</PRE><DL><DD>Creates a new SLDStyle object.<P><DT><B>Parameters:</B><DD><CODE>factory</CODE> - The StyleFactory to use to read the file<DD><CODE>s</CODE> - The inputstream to be read</DL><HR><A NAME="SLDParser(org.geotools.styling.StyleFactory, java.io.Reader)"><!-- --></A><H3>SLDParser</H3><PRE>public <B>SLDParser</B>(<A HREF="../../../org/geotools/styling/StyleFactory.html" title="interface in org.geotools.styling">StyleFactory</A> factory, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Reader.html" title="class or interface in java.io">Reader</A> r)</PRE><DL><DD>Creates a new SLDStyle object.<P><DT><B>Parameters:</B><DD><CODE>factory</CODE> - The StyleFactory to use to read the file<DD><CODE>r</CODE> - The inputstream to be read</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setInput(java.lang.String)"><!-- --></A><H3>setInput</H3><PRE>public void <B>setInput</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> filename) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/FileNotFoundException.html" title="class or interface in java.io">FileNotFoundException</A></PRE><DL><DD>set the file to read the SLD from<P><DD><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - the file to read the SLD from<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/FileNotFoundException.html" title="class or interface in java.io">FileNotFoundException</A></CODE> - if the file is missing</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -