📄 tablewriter.html
字号:
<BR> Moves one column to the right. </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/io/TableWriter.html#nextLine()">nextLine</A></B>()</CODE><BR> Moves to the first column on the next row. </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/io/TableWriter.html#nextLine(char)">nextLine</A></B>(char fill)</CODE><BR> Moves to the first column on the next row. </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/io/TableWriter.html#setAlignment(int)">setAlignment</A></B>(int alignment)</CODE><BR> Set the alignment for current and next cells. </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/io/TableWriter.html#setColumnAlignment(int, int)">setColumnAlignment</A></B>(int column, int alignment)</CODE><BR> Set the alignment for all cells in the specified column. </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/io/TableWriter.html#setMultiLinesCells(boolean)">setMultiLinesCells</A></B>(boolean multiLines)</CODE><BR> Set the desired behavior for EOL and tabulations characters. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/io/TableWriter.html#toString()">toString</A></B>()</CODE><BR> Returns the table content as a string.</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/io/TableWriter.html#write(char[])">write</A></B>(char[] cbuf)</CODE><BR> Write an array of characters. </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/io/TableWriter.html#write(char[], int, int)">write</A></B>(char[] cbuf, int offset, int length)</CODE><BR> Write a portion of an array of characters. </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/io/TableWriter.html#write(int)">write</A></B>(int c)</CODE><BR> Write a single character. </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/io/TableWriter.html#write(java.lang.String)">write</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> string)</CODE><BR> Write a string. </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/io/TableWriter.html#write(java.lang.String, int, int)">write</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> string, int offset, int length)</CODE><BR> Write a portion of a string. </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/io/TableWriter.html#writeHorizontalSeparator()">writeHorizontalSeparator</A></B>()</CODE><BR> Write an horizontal separator.</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#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="ALIGN_LEFT"><!-- --></A><H3>ALIGN_LEFT</H3><PRE>public static final int <B>ALIGN_LEFT</B></PRE><DL><DD>A possible value for cell alignment. This specifies that the text is aligned to the left indent and extra whitespace should be placed on the right.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.geotools.io.TableWriter.ALIGN_LEFT">Constant Field Values</A></DL></DL><HR><A NAME="ALIGN_RIGHT"><!-- --></A><H3>ALIGN_RIGHT</H3><PRE>public static final int <B>ALIGN_RIGHT</B></PRE><DL><DD>A possible value for cell alignment. This specifies that the text is aligned to the right indent and extra whitespace should be placed on the left.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.geotools.io.TableWriter.ALIGN_RIGHT">Constant Field Values</A></DL></DL><HR><A NAME="ALIGN_CENTER"><!-- --></A><H3>ALIGN_CENTER</H3><PRE>public static final int <B>ALIGN_CENTER</B></PRE><DL><DD>A possible value for cell alignment. This specifies that the text is aligned to the center and extra whitespace should be placed equally on the left and right.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.geotools.io.TableWriter.ALIGN_CENTER">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="TableWriter(java.io.Writer)"><!-- --></A><H3>TableWriter</H3><PRE>public <B>TableWriter</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Writer.html" title="class or interface in java.io">Writer</A> out)</PRE><DL><DD>Creates a new table writer with a default column separator. Note: this writer may produces bad output on Windows console, unless the underlying stream use the correct codepage (e.g. <code>OutputStreamWriter(System.out, "Cp437")</code>). To display the appropriate codepage for a Windows NT console, type on the command line.<P><DT><B>Parameters:</B><DD><CODE>out</CODE> - Writer object to provide the underlying stream, or if there is no underlying stream. If is null, then the <A HREF="../../../org/geotools/io/TableWriter.html#toString()"><CODE>toString()</CODE></A> method is the only way to get the table's content.</DL><HR><A NAME="TableWriter(java.io.Writer, int)"><!-- --></A><H3>TableWriter</H3><PRE>public <B>TableWriter</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Writer.html" title="class or interface in java.io">Writer</A> out, int spaces)</PRE><DL><DD>Creates a new table writer with the specified amount of spaces as column separator.<P><DT><B>Parameters:</B><DD><CODE>out</CODE> - Writer object to provide the underlying stream, or if there is no underlying stream. If is null, then the <A HREF="../../../org/geotools/io/TableWriter.html#toString()"><CODE>toString()</CODE></A> method is the only way to get the table's content.<DD><CODE>spaces</CODE> - Amount of white spaces to use as column separator.</DL><HR><A NAME="TableWriter(java.io.Writer, java.lang.String)"><!-- --></A><H3>TableWriter</H3><PRE>public <B>TableWriter</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Writer.html" title="class or interface in java.io">Writer</A> out, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> separator)</PRE><DL><DD>Creates a new table writer with the specified column separator.<P><DT><B>Parameters:</B><DD><CODE>out</CODE> - Writer object to provide the underlying stream, or if there is no underlying stream. If is null, then the <A HREF="../../../org/geotools/io/TableWriter.html#toString()"><CODE>toString()</CODE></A> method is the only way to get the table's content.<DD><CODE>separator</CODE> - String to write between columns. Drawing box characters are treated specially. For example <code>" \\u2502 "</code> can be used for a single-line box.</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="setMultiLinesCells(boolean)"><!-- --></A><H3>setMultiLinesCells</H3><PRE>public void <B>setMultiLinesCells</B>(boolean multiLines)</PRE><DL><DD>Set the desired behavior for EOL and tabulations characters. <ul> <li>If , EOL (<code>'\r'</code>, <code>'\n'</code> or <code>"\r\n"</code>) and tabulations (<code>'\t'</code>) characters are copied straight into the current cell, which mean that next write operations will continue inside the same cell.</li> <li>If , then tabulations move to next column and EOL move to the first cell of next row (i.e. tabulation and EOL are equivalent to <A HREF="../../../org/geotools/io/TableWriter.html#nextColumn()"><CODE>nextColumn()</CODE></A> and <A HREF="../../../org/geotools/io/TableWriter.html#nextLine()"><CODE>nextLine()</CODE></A> calls respectively).</li> </ul> The default value is .<P><DD><DL><DT><B>Parameters:</B><DD><CODE>multiLines</CODE> - true if EOL are used for line feeds inside current cells, or if EOL move to the next row.</DL></DD></DL><HR><A NAME="isMultiLinesCells()"><!-- --></A><H3>isMultiLinesCells</H3><PRE>public boolean <B>isMultiLinesCells</B>()</PRE><DL><DD>Tells if EOL characters are used for line feeds inside current cells.<P><DD><DL></DL></DD></DL><HR><A NAME="setColumnAlignment(int, int)"><!-- --></A><H3>setColumnAlignment</H3><PRE>public void <B>setColumnAlignment</B>(int column, int alignment)</PRE><DL><DD>Set the alignment for all cells in the specified column. This method overwrite the alignment for all previous cells in the specified column.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>column</CODE> - The 0-based column number.<DD><CODE>alignment</CODE> - Cell alignment. Must be <A HREF="../../../org/geotools/io/TableWriter.html#ALIGN_LEFT"><CODE>ALIGN_LEFT</CODE></A> <A HREF="../../../org/geotools/io/TableWriter.html#ALIGN_RIGHT"><CODE>ALIGN_RIGHT</CODE></A> or <A HREF="../../../org/geotools/io/TableWriter.html#ALIGN_CENTER"><CODE>ALIGN_CENTER</CODE></A>.</DL></DD></DL><HR><A NAME="setAlignment(int)"><!-- --></A><H3>setAlignment</H3><PRE>public void <B>setAlignment</B>(int alignment)</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -