documentwriter.html
来自「Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理」· HTML 代码 · 共 658 行 · 第 1/3 页
HTML
658 行
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/xml/DocumentWriter.html#writeDocument(java.lang.Object, org.geotools.xml.schema.Schema, java.io.File, java.util.Map)">writeDocument</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> value, <A HREF="../../../org/geotools/xml/schema/Schema.html" title="interface in org.geotools.xml.schema">Schema</A> schema, <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, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A> hints)</CODE><BR> Write value to file using provided schema. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/xml/DocumentWriter.html#writeDocument(java.lang.Object, org.geotools.xml.schema.Schema, java.io.Writer, java.util.Map)">writeDocument</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> value, <A HREF="../../../org/geotools/xml/schema/Schema.html" title="interface in org.geotools.xml.schema">Schema</A> schema, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Writer.html" title="class or interface in java.io">Writer</A> w, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A> hints)</CODE><BR> Entry Point to Document writer. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/xml/DocumentWriter.html#writeFragment(java.lang.Object, org.geotools.xml.schema.Schema, java.io.File, java.util.Map)">writeFragment</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> value, <A HREF="../../../org/geotools/xml/schema/Schema.html" title="interface in org.geotools.xml.schema">Schema</A> schema, <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, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A> hints)</CODE><BR> Write value to file using provided schema. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/xml/DocumentWriter.html#writeFragment(java.lang.Object, org.geotools.xml.schema.Schema, java.io.Writer, java.util.Map)">writeFragment</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> value, <A HREF="../../../org/geotools/xml/schema/Schema.html" title="interface in org.geotools.xml.schema">Schema</A> schema, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Writer.html" title="class or interface in java.io">Writer</A> w, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A> hints)</CODE><BR> Entry Point to Document writer. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/xml/DocumentWriter.html#writeSchema(org.geotools.xml.schema.Schema, java.io.Writer, java.util.Map)">writeSchema</A></B>(<A HREF="../../../org/geotools/xml/schema/Schema.html" title="interface in org.geotools.xml.schema">Schema</A> schema, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Writer.html" title="class or interface in java.io">Writer</A> w, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A> hints)</CODE><BR> DOCUMENT ME!</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="logger"><!-- --></A><H3>logger</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/logging/Logger.html" title="class or interface in java.util.logging">Logger</A> <B>logger</B></PRE><DL><DD>DOCUMENT ME!<P><DL></DL></DL><HR><A NAME="WRITE_SCHEMA"><!-- --></A><H3>WRITE_SCHEMA</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>WRITE_SCHEMA</B></PRE><DL><DD>Writer ... include the key to represent true when writing to files, include a Writer to write to otherwise.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.geotools.xml.DocumentWriter.WRITE_SCHEMA">Constant Field Values</A></DL></DL><HR><A NAME="BASE_ELEMENT"><!-- --></A><H3>BASE_ELEMENT</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>BASE_ELEMENT</B></PRE><DL><DD>Element or String ... include a ref to an Element to be used, or a string representing the name of the element<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.geotools.xml.DocumentWriter.BASE_ELEMENT">Constant Field Values</A></DL></DL><HR><A NAME="SCHEMA_ORDER"><!-- --></A><H3>SCHEMA_ORDER</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>SCHEMA_ORDER</B></PRE><DL><DD>Schema[] or String[]... The order to search the schemas for a valid element, either an array of ref to Schema instances or an Array or TargetNamespaces<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.geotools.xml.DocumentWriter.SCHEMA_ORDER">Constant Field Values</A></DL></DL><HR><A NAME="USE_NEAREST"><!-- --></A><H3>USE_NEAREST</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>USE_NEAREST</B></PRE><DL><DD>boolean ... include the key to use the "nearest" strategy for searching schemas. This will be ignored if a schema order was set. When not included the schema order as they appear in the orginal schema will be used.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.geotools.xml.DocumentWriter.USE_NEAREST">Constant Field Values</A></DL></DL><HR><A NAME="SCHEMA_LOCATION_HINT"><!-- --></A><H3>SCHEMA_LOCATION_HINT</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>SCHEMA_LOCATION_HINT</B></PRE><DL><DD>a map of URI->URI representing targetNamespace->Location<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.geotools.xml.DocumentWriter.SCHEMA_LOCATION_HINT">Constant Field Values</A></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="DocumentWriter()"><!-- --></A><H3>DocumentWriter</H3><PRE>public <B>DocumentWriter</B>()</PRE><DL></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="setLevel(java.util.logging.Level)"><!-- --></A><H3>setLevel</H3><PRE>public static void <B>setLevel</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/logging/Level.html" title="class or interface in java.util.logging">Level</A> l)</PRE><DL><DD>Sets the logger level<P><DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - Level</DL></DD></DL><HR><A NAME="writeDocument(java.lang.Object, org.geotools.xml.schema.Schema, java.io.File, java.util.Map)"><!-- --></A><H3>writeDocument</H3><PRE>public static void <B>writeDocument</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> value, <A HREF="../../../org/geotools/xml/schema/Schema.html" title="interface in org.geotools.xml.schema">Schema</A> schema, <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, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A> hints) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/naming/OperationNotSupportedException.html" title="class or interface in javax.naming">OperationNotSupportedException</A>, <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>Write value to file using provided schema. <p> Hints: <ul>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?