monolineformatter.html

来自「Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理」· HTML 代码 · 共 570 行 · 第 1/2 页

HTML
570 行
字号
</TR></TABLE>&nbsp;<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>&nbsp;<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="MonolineFormatter()"><!-- --></A><H3>MonolineFormatter</H3><PRE>public <B>MonolineFormatter</B>()</PRE><DL><DD>Construct a default .<P></DL><HR><A NAME="MonolineFormatter(java.lang.String)"><!-- --></A><H3>MonolineFormatter</H3><PRE>public <B>MonolineFormatter</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;base)</PRE><DL><DD>Construct a .<P><DT><B>Parameters:</B><DD><CODE>base</CODE> - The base logger name. This is used for shortening the logger                name when formatting message. For example, if the base                logger name is "org.geotools" and a log record come from                the "org.geotools.core" logger, it will be formatted as                "[LEVEL core]" (i.e. the "org.geotools" part is ommited).</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="setTimeFormat(java.lang.String)"><!-- --></A><H3>setTimeFormat</H3><PRE>public void <B>setTimeFormat</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;pattern)</PRE><DL><DD>Set the format for displaying ellapsed time. The pattern must matches the format specified in <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/text/SimpleDateFormat.html" title="class or interface in java.text"><CODE>SimpleDateFormat</CODE></A>. For example, the pattern <code>"HH:mm:ss.SSS"</code> will display the ellapsed time in hours, minutes, seconds and milliseconds.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>pattern</CODE> - The time patter, or  to disable time formatting.</DL></DD></DL><HR><A NAME="getTimeFormat()"><!-- --></A><H3>getTimeFormat</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>getTimeFormat</B>()</PRE><DL><DD>Returns the format for displaying ellapsed time. This is the pattern specified to the last call to <A HREF="../../../org/geotools/util/MonolineFormatter.html#setTimeFormat(java.lang.String)"><CODE>setTimeFormat(java.lang.String)</CODE></A>, or the patten specified in the  property in the  file.<P><DD><DL><DT><B>Returns:</B><DD>The time pattern, or  if time is not formatted.</DL></DD></DL><HR><A NAME="setSourceFormat(java.lang.String)"><!-- --></A><H3>setSourceFormat</H3><PRE>public void <B>setSourceFormat</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;format)</PRE><DL><DD>Set the format for displaying the source. The pattern may be one of the following: <code>"none"</code>, <code>"logger:short"</code>,  <code>"class:short"</code>, <code>"logger:long"</code> or <code>"class:long"</code>. The difference between a  and <code>"none"</code> is that  may be replaced by a default value, while <code>"none"</code> means that the user explicitly requested no source.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - The format for displaying the source, or         to disable source formatting.</DL></DD></DL><HR><A NAME="getSourceFormat()"><!-- --></A><H3>getSourceFormat</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>getSourceFormat</B>()</PRE><DL><DD>Returns the format for displaying the source. This is the pattern specified to the last call to <A HREF="../../../org/geotools/util/MonolineFormatter.html#setSourceFormat(java.lang.String)"><CODE>setSourceFormat(java.lang.String)</CODE></A>, or the patten specified in the  property in the  file.<P><DD><DL><DT><B>Returns:</B><DD>The source pattern, or  if source is not formatted.</DL></DD></DL><HR><A NAME="format(java.util.logging.LogRecord)"><!-- --></A><H3>format</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>format</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/logging/LogRecord.html" title="class or interface in java.util.logging">LogRecord</A>&nbsp;record)</PRE><DL><DD>Format the given log record and return the formatted string.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>record</CODE> - the log record to be formatted.<DT><B>Returns:</B><DD>a formatted log record</DL></DD></DL><HR><A NAME="init(java.lang.String)"><!-- --></A><H3>init</H3><PRE>public static <A HREF="../../../org/geotools/util/MonolineFormatter.html" title="class in org.geotools.util">MonolineFormatter</A> <B>init</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;base)</PRE><DL><DD>Setup a  for the specified logger and its children.  This method search for all instances of <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/logging/ConsoleHandler.html" title="class or interface in java.util.logging"><CODE>ConsoleHandler</CODE></A> using the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/logging/SimpleFormatter.html" title="class or interface in java.util.logging"><CODE>SimpleFormatter</CODE></A>. If such instances are found, they are replaced by a single instance of  writting to the <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> (instead of 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>). If no such <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/logging/ConsoleHandler.html" title="class or interface in java.util.logging"><CODE>ConsoleHandler</CODE></A> are found, then a new one is created with this . This action has no effect on any loggers outside the  namespace.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>base</CODE> - The base logger name to apply the change on (e.g. "org.geotools").<DT><B>Returns:</B><DD>The registered  (never ).         The formatter output can be configured using the <A HREF="../../../org/geotools/util/MonolineFormatter.html#setTimeFormat(java.lang.String)"><CODE>setTimeFormat(java.lang.String)</CODE></A>         and <A HREF="../../../org/geotools/util/MonolineFormatter.html#setSourceFormat(java.lang.String)"><CODE>setSourceFormat(java.lang.String)</CODE></A> methods.</DL></DD></DL><HR><A NAME="init(java.lang.String, java.util.logging.Level)"><!-- --></A><H3>init</H3><PRE>public static <A HREF="../../../org/geotools/util/MonolineFormatter.html" title="class in org.geotools.util">MonolineFormatter</A> <B>init</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;base,                                     <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>&nbsp;level)</PRE><DL><DD>Convenience method setting both a  and the logger levels. This method behave like <A HREF="../../../org/geotools/util/MonolineFormatter.html#init(java.lang.String)"><CODE>init(String)</CODE></A>, except that it accepts an optional level argument. If the level is non-null, then all <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/logging/Handler.html" title="class or interface in java.util.logging"><CODE>Handler</CODE></A>s using the monoline formatter will be set to the specified level. The logger named  will also be set to this level. <p> Note: Avoid this method as much as possible,  since it overrides user's level setting for       the  logger. A user trying to configure its logging properties may       find confusing to see his setting ignored.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>base</CODE> - The base logger name to apply the change on (e.g. "org.geotools").<DD><CODE>level</CODE> - The desired level, or  if no level should be set.<DT><B>Returns:</B><DD>The registered  (never ).         The formatter output can be configured using the <A HREF="../../../org/geotools/util/MonolineFormatter.html#setTimeFormat(java.lang.String)"><CODE>setTimeFormat(java.lang.String)</CODE></A>         and <A HREF="../../../org/geotools/util/MonolineFormatter.html#setSourceFormat(java.lang.String)"><CODE>setSourceFormat(java.lang.String)</CODE></A> methods.</DL></DD></DL><HR><A NAME="initGeotools()"><!-- --></A><H3>initGeotools</H3><PRE>public static void <B>initGeotools</B>()</PRE><DL><DD>Initialise the formatter for the "" loggers.<P><DD><DL></DL></DD></DL><HR><A NAME="initGeotools(java.util.logging.Level)"><!-- --></A><H3>initGeotools</H3><PRE>public static void <B>initGeotools</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>&nbsp;level)</PRE><DL><DD>Initialise the formatter for the "" loggers with the specified level. <strong>NOTE:</strong> Avoid this method as much as possible, since it overrides user's level setting for the "" logger. A user trying to configure its logging properties may find confusing to see his setting ignored.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>level</CODE> - The logging level, or  if no level should be set.</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/MonolineFormatter.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/util/MapEntry.html" title="class in org.geotools.util"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/geotools/util/NameFactory.html" title="class in org.geotools.util"><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>  &nbsp;&nbsp;<A HREF="MonolineFormatter.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;FIELD&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;FIELD&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 + =
减小字号Ctrl + -
显示快捷键?