📄 sldparser.html
字号:
</DD></DL><HR><A NAME="setInput(java.io.File)"><!-- --></A><H3>setInput</H3><PRE>public void <B>setInput</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) 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>Sets the file to use to read the SLD from<P><DD><DL><DT><B>Parameters:</B><DD><CODE>f</CODE> - the file to use<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></DD></DL><HR><A NAME="setInput(java.net.URL)"><!-- --></A><H3>setInput</H3><PRE>public void <B>setInput</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) 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>sets an URL to read the SLD from<P><DD><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - the url to read the SLD from<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 anything goes wrong opening the url</DL></DD></DL><HR><A NAME="setInput(java.io.InputStream)"><!-- --></A><H3>setInput</H3><PRE>public void <B>setInput</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)</PRE><DL><DD>Sets the input stream to read the SLD from<P><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - the inputstream used to read the SLD from</DL></DD></DL><HR><A NAME="setInput(java.io.Reader)"><!-- --></A><H3>setInput</H3><PRE>public void <B>setInput</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)</PRE><DL><DD>Sets the input stream to read the SLD from<P><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - the inputstream used to read the SLD from</DL></DD></DL><HR><A NAME="readXML()"><!-- --></A><H3>readXML</H3><PRE>public <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A>[] <B>readXML</B>()</PRE><DL><DD>Read the xml inputsource provided and create a Style object for each user style found<P><DD><DL><DT><B>Returns:</B><DD>Style[] the styles constructed.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/RuntimeException.html" title="class or interface in java.lang">RuntimeException</A></CODE> - if a parsing error occurs</DL></DD></DL><HR><A NAME="readDOM(org.w3c.dom.Document)"><!-- --></A><H3>readDOM</H3><PRE>public <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A>[] <B>readDOM</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)</PRE><DL><DD>Read the DOM provided and create a Style object for each user style found<P><DD><DL><DT><B>Parameters:</B><DD><CODE>document</CODE> - a dom containing the SLD<DT><B>Returns:</B><DD>Style[] the styles constructed.</DL></DD></DL><HR><A NAME="parseSLD()"><!-- --></A><H3>parseSLD</H3><PRE>public <A HREF="../../../org/geotools/styling/StyledLayerDescriptor.html" title="interface in org.geotools.styling">StyledLayerDescriptor</A> <B>parseSLD</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="parseDescriptor(org.w3c.dom.Node)"><!-- --></A><H3>parseDescriptor</H3><PRE>public <A HREF="../../../org/geotools/styling/StyledLayerDescriptor.html" title="interface in org.geotools.styling">StyledLayerDescriptor</A> <B>parseDescriptor</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> root)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="parseNamedStyle(org.w3c.dom.Node)"><!-- --></A><H3>parseNamedStyle</H3><PRE>public <A HREF="../../../org/geotools/styling/NamedStyle.html" title="interface in org.geotools.styling">NamedStyle</A> <B>parseNamedStyle</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)</PRE><DL><DD>Parses a NamedStyle from node. <p> A NamedStyle is used to refer to a style that has a name in a WMS, and is defined as: <pre><code> <xsd:element name="NamedStyle"> <xsd:annotation> <xsd:documentation> A NamedStyle is used to refer to a style that has a name in a WMS. </xsd:documentation> </xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element ref="sld:Name"/> </xsd:sequence> </xsd:complexType> </xsd:element> </code></pre> </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - </DL></DD></DL><HR><A NAME="parseStyle(org.w3c.dom.Node)"><!-- --></A><H3>parseStyle</H3><PRE>public <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A> <B>parseStyle</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)</PRE><DL><DD>build a style for the Node provided<P><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - the node which contains the style to be parsed.<DT><B>Returns:</B><DD>the Style constructed.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/RuntimeException.html" title="class or interface in java.lang">RuntimeException</A></CODE> - if an error occurs setting up the parser</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SLDParser.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/geotools/styling/SLDInlineFeatureParser.html" title="class in org.geotools.styling"><B>PREV CLASS</B></A> <A HREF="../../../org/geotools/styling/SLDTransformer.html" title="class in org.geotools.styling"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="SLDParser.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -