⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sldparser.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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>&nbsp;n)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;document)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;in)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;in)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;filename)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;url)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sets an URL to read the SLD from</TD></TR></TABLE>&nbsp;<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>&nbsp;<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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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 + -