?? archiveutils.html
字號:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.util.Date</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#getDate(java.lang.String)">getDate</A></B>(java.lang.String d)</CODE><BR> Parses an ARC-style date.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#getLog14Date()">getLog14Date</A></B>()</CODE><BR> Utility function for creating log timestamps, in W3C/ISO8601 format, assuming UTC.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#getLog14Date(java.util.Date)">getLog14Date</A></B>(java.util.Date date)</CODE><BR> Utility function for creating log timestamps, in W3C/ISO8601 format, assuming UTC.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#getLog14Date(long)">getLog14Date</A></B>(long date)</CODE><BR> Utility function for creating log timestamps, in W3C/ISO8601 format, assuming UTC.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#getLog17Date()">getLog17Date</A></B>()</CODE><BR> Utility function for creating log timestamps, in W3C/ISO8601 format, assuming UTC.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#getLog17Date(long)">getLog17Date</A></B>(long date)</CODE><BR> Utility function for creating log timestamps, in W3C/ISO8601 format, assuming UTC.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.util.Date</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#getSecondsSinceEpoch(java.lang.String)">getSecondsSinceEpoch</A></B>(java.lang.String timestamp)</CODE><BR> </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/archive/util/ArchiveUtils.html#longIntoByteArray(long, byte[], int)">longIntoByteArray</A></B>(long l, byte[] array, int offset)</CODE><BR> Copy the raw bytes of a long into a byte array, starting at the specified offset.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#padTo(int, int)">padTo</A></B>(int i, int pad)</CODE><BR> Convert an <code>int</code> to a <code>String</code>, and pad it to <code>pad</code> spaces.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#padTo(java.lang.String, int)">padTo</A></B>(java.lang.String s, int pad)</CODE><BR> Pad the given <code>String</code> to <code>pad</code> characters wide by pre-pending spaces.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#padTo(java.lang.String, int, char)">padTo</A></B>(java.lang.String s, int pad, char padChar)</CODE><BR> Pad the given <code>String</code> to <code>pad</code> characters wide by pre-pending <code>padChar</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.util.Date</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#parse12DigitDate(java.lang.String)">parse12DigitDate</A></B>(java.lang.String date)</CODE><BR> Utility function for parsing arc-style date stamps in the format yyyMMddHHmm.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.util.Date</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#parse14DigitDate(java.lang.String)">parse14DigitDate</A></B>(java.lang.String date)</CODE><BR> Utility function for parsing arc-style date stamps in the format yyyMMddHHmmss.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.util.Date</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#parse17DigitDate(java.lang.String)">parse17DigitDate</A></B>(java.lang.String date)</CODE><BR> Utility function for parsing arc-style date stamps in the format yyyMMddHHmmssSSS.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#secondsSinceEpoch(java.lang.String)">secondsSinceEpoch</A></B>(java.lang.String timestamp)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#singleLineReport(org.archive.util.Reporter)">singleLineReport</A></B>(<A HREF="../../../org/archive/util/Reporter.html" title="interface in org.archive.util">Reporter</A> rep)</CODE><BR> Utility method to get a String singleLineReport from Reporter</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#startsWith(byte[], byte[])">startsWith</A></B>(byte[] array, byte[] prefix)</CODE><BR> Verify that the array begins with the prefix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.util.Calendar</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#timestamp17ToCalendar(java.lang.String)">timestamp17ToCalendar</A></B>(java.lang.String timestamp17String)</CODE><BR> Convert 17-digit date format timestamps (as found in crawl.log, for example) into a GregorianCalendar object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#writeReportToString(org.archive.util.Reporter, java.lang.String)">writeReportToString</A></B>(<A HREF="../../../org/archive/util/Reporter.html" title="interface in org.archive.util">Reporter</A> rep, java.lang.String name)</CODE><BR> Compose the requested report into a String.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/util/ArchiveUtils.html#zeroPadInteger(int)">zeroPadInteger</A></B>(int i)</CODE><BR> </TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</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"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="MAX_INT_CHAR_WIDTH"><!-- --></A><H3>MAX_INT_CHAR_WIDTH</H3><PRE>public static int <B>MAX_INT_CHAR_WIDTH</B></PRE><DL><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ArchiveUtils()"><!-- --></A><H3>ArchiveUtils</H3><PRE>public <B>ArchiveUtils</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"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="get17DigitDate()"><!-- --></A><H3>get17DigitDate</H3><PRE>public static java.lang.String <B>get17DigitDate</B>()</PRE><DL><DD>Utility function for creating arc-style date stamps in the format yyyMMddHHmmssSSS. Date stamps are in the UTC time zone<P><DD><DL><DT><B>Returns:</B><DD>the date stamp</DL></DD></DL><HR><A NAME="get14DigitDate()"><!-- --></A><H3>get14DigitDate</H3><PRE>public static java.lang.String <B>get14DigitDate</B>()</PRE><DL><DD>Utility function for creating arc-style date stamps in the format yyyMMddHHmmss. Date stamps are in the UTC time zone<P><DD><DL><DT><B>Returns:</B><DD>the date stamp</DL></DD></DL><HR><A NAME="get12DigitDate()"><!-- --></A><H3>get12DigitDate</H3><PRE>public static java.lang.String <B>get12DigitDate</B>()</PRE><DL><DD>Utility function for creating arc-style date stamps in the format yyyMMddHHmm. Date stamps are in the UTC time zone<P><DD><DL><DT><B>Returns:</B><DD>the date stamp</DL></DD></DL><HR><A NAME="getLog17Date()"><!-- --></A><H3>getLog17Date</H3><PRE>public static java.lang.String <B>getLog17Date</B>()</PRE><DL><DD>Utility function for creating log timestamps, in W3C/ISO8601 format, assuming UTC. Use current time. Format is yyyy-MM-dd'T'HH:mm:ss.SSS'Z'<P><DD><DL><DT><B>Returns:</B><DD>the date stamp</DL></DD></DL><HR><A NAME="getLog17Date(long)"><!-- --></A><H3>getLog17Date</H3><PRE>public static java.lang.String <B>getLog17Date</B>(long date)</PRE><DL><DD>Utility function for creating log timestamps, in
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -