📄 console.html
字号:
<BR> Run the console from the command line. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/referencing/Console.html#reportError(java.lang.Exception)">reportError</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A> exception)</CODE><BR> Print an exception message to the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/System.html#err" title="class or interface in java.lang">standard error stream</A>. The error message includes the line number, and the column where the failure occured in the exception is an instance of <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/text/ParseException.html" title="class or interface in java.text"><CODE>ParseException</CODE></A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/referencing/Console.html#test()">test</A></B>()</CODE><BR> Invoked automatically when the instruction were executed and a were previously set. </TD></TR></TABLE> <A NAME="methods_inherited_from_class_AbstractConsole"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="../../../org/geotools/referencing/wkt/AbstractConsole.html" title="class in org.geotools.referencing.wkt">AbstractConsole</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/geotools/referencing/wkt/AbstractConsole.html#addDefinition(java.lang.String, java.lang.String)">addDefinition</A>, <A HREF="../../../org/geotools/referencing/wkt/AbstractConsole.html#executeAll()">executeAll</A>, <A HREF="../../../org/geotools/referencing/wkt/AbstractConsole.html#getPrompt()">getPrompt</A>, <A HREF="../../../org/geotools/referencing/wkt/AbstractConsole.html#loadDefinitions(java.io.LineNumberReader)">loadDefinitions</A>, <A HREF="../../../org/geotools/referencing/wkt/AbstractConsole.html#parseObject(java.lang.String, java.lang.Class)">parseObject</A>, <A HREF="../../../org/geotools/referencing/wkt/AbstractConsole.html#printDefinitions()">printDefinitions</A>, <A HREF="../../../org/geotools/referencing/wkt/AbstractConsole.html#run()">run</A>, <A HREF="../../../org/geotools/referencing/wkt/AbstractConsole.html#setPrompt(java.lang.String)">setPrompt</A>, <A HREF="../../../org/geotools/referencing/wkt/AbstractConsole.html#stop()">stop</A></CODE></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 =========== --><!-- ========= 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="Console()"><!-- --></A><H3>Console</H3><PRE>public <B>Console</B>()</PRE><DL><DD>Creates a new console instance using <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/System.html#in" title="class or interface in java.lang">standard input stream</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/System.html#out" title="class or interface in java.lang">standard output stream</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/System.html#err" title="class or interface in java.lang">error output stream</A> and the system default line separator.<P></DL><HR><A NAME="Console(java.io.LineNumberReader)"><!-- --></A><H3>Console</H3><PRE>public <B>Console</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/LineNumberReader.html" title="class or interface in java.io">LineNumberReader</A> in)</PRE><DL><DD>Creates a new console instance using the specified input stream.<P><DT><B>Parameters:</B><DD><CODE>in</CODE> - The input stream.</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="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</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>[] args)</PRE><DL><DD>Run the console from the command line. Before to process all instructions from the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/System.html#in" title="class or interface in java.lang">standard input stream</A>, this method first process the following optional command-line arguments: <P> <TABLE CELLPADDING='0' CELLSPACING='0'> <TR><TD NOWRAP><CODE>-load</CODE> <VAR><filename></VAR></TD> <TD> Load a definition file before to run instructions from the standard input stream.</TD></TR> <TR><TD NOWRAP><CODE>-encoding</CODE> <VAR><code></VAR></TD> <TD> Set the character encoding.</TD></TR> <TR><TD NOWRAP><CODE>-locale</CODE> <VAR><language></VAR></TD> <TD> Set the language for the output (e.g. "fr" for French).</TD></TR> </TABLE><P><DD><DL><DT><B>Parameters:</B><DD><CODE>args</CODE> - the command line arguments</DL></DD></DL><HR><A NAME="execute(java.lang.String)"><!-- --></A><H3>execute</H3><PRE>protected void <B>execute</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> instruction) 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>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/text/ParseException.html" title="class or interface in java.text">ParseException</A>, FactoryException, TransformException</PRE><DL><DD>Execute the specified instruction.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/referencing/wkt/AbstractConsole.html#execute(java.lang.String)">execute</A></CODE> in class <CODE><A HREF="../../../org/geotools/referencing/wkt/AbstractConsole.html" title="class in org.geotools.referencing.wkt">AbstractConsole</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instruction</CODE> - The instruction to execute.<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 I/O operation failed while writting to the <A HREF="../../../org/geotools/referencing/wkt/AbstractConsole.html#out">output stream</A>.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/text/ParseException.html" title="class or interface in java.text">ParseException</A></CODE> - if a line can't be parsed.<DD><CODE>FactoryException</CODE> - If a transform can't be created.<DD><CODE>TransformException</CODE> - if a transform failed.</DL></DD></DL><HR><A NAME="test()"><!-- --></A><H3>test</H3><PRE>protected void <B>test</B>() throws TransformException, MismatchedDimensionException</PRE><DL><DD>Invoked automatically when the instruction were executed and a were previously set. The default implementation compares the transformed source point with the expected target point. If a mismatch greater than the tolerance error is found, an exception is thrown. Subclasses may overrides this method in order to performs more tests.<P><DD><DL><DT><B>Throws:</B><DD><CODE>TransformException</CODE> - if the source point can't be transformed, or a mistmatch is found.<DD><CODE>MismatchedDimensionException</CODE> - if the transformed source point doesn't have the expected dimension.</DL></DD></DL><HR><A NAME="reportError(java.lang.Exception)"><!-- --></A><H3>reportError</H3><PRE>protected void <B>reportError</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A> exception)</PRE><DL><DD>Print an exception message to the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/System.html#err" title="class or interface in java.lang">standard error stream</A>. The error message includes the line number, and the column where the failure occured in the exception is an instance of <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/text/ParseException.html" title="class or interface in java.text"><CODE>ParseException</CODE></A>.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/geotools/referencing/wkt/AbstractConsole.html#reportError(java.lang.Exception)">reportError</A></CODE> in class <CODE><A HREF="../../../org/geotools/referencing/wkt/AbstractConsole.html" title="class in org.geotools.referencing.wkt">AbstractConsole</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>exception</CODE> - The exception to report.</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/Console.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/referencing/AbstractReferenceSystem.html" title="class in org.geotools.referencing"><B>PREV CLASS</B></A> <A HREF="../../../org/geotools/referencing/CRS.html" title="class in org.geotools.referencing"><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="Console.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="#fields_inherited_from_class_AbstractConsole">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: FIELD | <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 + -