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

📄 tablewriter.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DL><DD>Set the alignment for current and next cells. Change to the alignment doesn't affect the alignment of previous cells and previous rows. The default alignment is <A HREF="../../../org/geotools/io/TableWriter.html#ALIGN_LEFT"><CODE>ALIGN_LEFT</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><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="getAlignment()"><!-- --></A><H3>getAlignment</H3><PRE>public int <B>getAlignment</B>()</PRE><DL><DD>Returns the alignment for current and next cells.<P><DD><DL><DT><B>Returns:</B><DD>Cell alignment: <A HREF="../../../org/geotools/io/TableWriter.html#ALIGN_LEFT"><CODE>ALIGN_LEFT</CODE></A> (the default),         <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="write(int)"><!-- --></A><H3>write</H3><PRE>public void <B>write</B>(int&nbsp;c)</PRE><DL><DD>Write a single character. If <A HREF="../../../org/geotools/io/TableWriter.html#isMultiLinesCells()"><CODE>isMultiLinesCells()</CODE></A> is false (which is the default), then: <ul>   <li>Tabulations (<code>'\t'</code>) are replaced       by <A HREF="../../../org/geotools/io/TableWriter.html#nextColumn()"><CODE>nextColumn()</CODE></A> invocations.</li>   <li>Line separators (<code>'\r'</code>, <code>'\n'</code>       or <code>"\r\n"</code>) are replaced       by <A HREF="../../../org/geotools/io/TableWriter.html#nextLine()"><CODE>nextLine()</CODE></A> invocations.</li> </ul><P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - Character to write.</DL></DD></DL><HR><A NAME="write(java.lang.String)"><!-- --></A><H3>write</H3><PRE>public void <B>write</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;string)</PRE><DL><DD>Write a string. Tabulations and line separators are interpreted as by <A HREF="../../../org/geotools/io/TableWriter.html#write(int)"><CODE>write(int)</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>string</CODE> - String to write.</DL></DD></DL><HR><A NAME="write(java.lang.String, int, int)"><!-- --></A><H3>write</H3><PRE>public void <B>write</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;string,                  int&nbsp;offset,                  int&nbsp;length)</PRE><DL><DD>Write a portion of a string. Tabulations and line separators are interpreted as by <A HREF="../../../org/geotools/io/TableWriter.html#write(int)"><CODE>write(int)</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>string</CODE> - String to write.<DD><CODE>offset</CODE> - Offset from which to start writing characters.<DD><CODE>length</CODE> - Number of characters to write.</DL></DD></DL><HR><A NAME="write(char[])"><!-- --></A><H3>write</H3><PRE>public void <B>write</B>(char[]&nbsp;cbuf)</PRE><DL><DD>Write an array of characters. Tabulations and line separators are interpreted as by <A HREF="../../../org/geotools/io/TableWriter.html#write(int)"><CODE>write(int)</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>cbuf</CODE> - Array of characters to be written.</DL></DD></DL><HR><A NAME="write(char[], int, int)"><!-- --></A><H3>write</H3><PRE>public void <B>write</B>(char[]&nbsp;cbuf,                  int&nbsp;offset,                  int&nbsp;length)</PRE><DL><DD>Write a portion of an array of characters. Tabulations and line separators are interpreted as by <A HREF="../../../org/geotools/io/TableWriter.html#write(int)"><CODE>write(int)</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>cbuf</CODE> - Array of characters.<DD><CODE>offset</CODE> - Offset from which to start writing characters.<DD><CODE>length</CODE> - Number of characters to write.</DL></DD></DL><HR><A NAME="writeHorizontalSeparator()"><!-- --></A><H3>writeHorizontalSeparator</H3><PRE>public void <B>writeHorizontalSeparator</B>()</PRE><DL><DD>Write an horizontal separator.<P><DD><DL></DL></DD></DL><HR><A NAME="nextColumn()"><!-- --></A><H3>nextColumn</H3><PRE>public void <B>nextColumn</B>()</PRE><DL><DD>Moves one column to the right. Next write operations will occur in a new cell on the same row.<P><DD><DL></DL></DD></DL><HR><A NAME="nextColumn(char)"><!-- --></A><H3>nextColumn</H3><PRE>public void <B>nextColumn</B>(char&nbsp;fill)</PRE><DL><DD>Moves one column to the right. Next write operations will occur in a new cell on the same row.  This method fill every remaining space in the current cell with the specified character. For example calling <code>nextColumn('*')</code> from the first character of a cell is a convenient way to put a pad value in this cell.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>fill</CODE> - Character filling the cell (default to whitespace).</DL></DD></DL><HR><A NAME="nextLine()"><!-- --></A><H3>nextLine</H3><PRE>public void <B>nextLine</B>()</PRE><DL><DD>Moves to the first column on the next row. Next write operations will occur on a new row.<P><DD><DL></DL></DD></DL><HR><A NAME="nextLine(char)"><!-- --></A><H3>nextLine</H3><PRE>public void <B>nextLine</B>(char&nbsp;fill)</PRE><DL><DD>Moves to the first column on the next row. Next write operations will occur on a new row. This method fill every remaining cell in the current row with the specified character. Calling <code>nextLine('-')</code> from the first column of a row is a convenient way to fill this row with a line separator.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>fill</CODE> - Character filling the rest of the line         (default to whitespace). This caracter may         be use as a row separator.</DL></DD></DL><HR><A NAME="flush()"><!-- --></A><H3>flush</H3><PRE>public void <B>flush</B>()           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>Flush the table content to the underlying stream. This method should not be called before the table is completed (otherwise, columns may have the wrong width).<P><DD><DL><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 an output operation failed.</DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>()           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>Flush the table content and close the underlying stream.<P><DD><DL><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 an output operation failed.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <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>toString</B>()</PRE><DL><DD>Returns the table content as a string.<P><DD><DL></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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/TableWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/geotools/io/NumberedLineWriter.html" title="class in org.geotools.io"><B>PREV CLASS</B></A>&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="TableWriter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright &copy; 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 + -