?? archivereader.html
字號:
</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/io/ArchiveReader.html#getStrippedFileName(java.lang.String, java.lang.String)">getStrippedFileName</A></B>(java.lang.String name, java.lang.String dotFileExtension)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/io/ArchiveReader.html#getTrueOrFalse(java.lang.String)">getTrueOrFalse</A></B>(java.lang.String value)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/io/ArchiveReader.html#getVersion()">getVersion</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/io/ArchiveReader.html#gotoEOR(org.archive.io.ArchiveRecord)">gotoEOR</A></B>(<A HREF="../../../org/archive/io/ArchiveRecord.html" title="class in org.archive.io">ArchiveRecord</A> record)</CODE><BR> Skip over any trailing new lines at end of the record so we're lined up ready to read the next.</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/archive/io/ArchiveReader.html#initialize(java.lang.String)">initialize</A></B>(java.lang.String i)</CODE><BR> Convenience method used by subclass constructors.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/io/ArchiveReader.html#isCompressed()">isCompressed</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/io/ArchiveReader.html#isDigest()">isDigest</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/io/ArchiveReader.html#isStrict()">isStrict</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/io/ArchiveReader.html#isValid()">isValid</A></B>()</CODE><BR> Test Archive file is valid.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Iterator<<A HREF="../../../org/archive/io/ArchiveRecord.html" title="class in org.archive.io">ArchiveRecord</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/io/ArchiveReader.html#iterator()">iterator</A></B>()</CODE><BR> Returns an ArchiveRecord iterator.</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/archive/io/ArchiveReader.html#logStdErr(java.util.logging.Level, java.lang.String)">logStdErr</A></B>(java.util.logging.Level level, java.lang.String message)</CODE><BR> Log on stderr.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/io/ArchiveReader.html#output(java.lang.String)">output</A></B>(java.lang.String format)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/io/ArchiveReader.html#outputRecord(org.archive.io.ArchiveReader, java.lang.String)">outputRecord</A></B>(<A HREF="../../../org/archive/io/ArchiveReader.html" title="class in org.archive.io">ArchiveReader</A> r, java.lang.String format)</CODE><BR> Output passed record using passed format specifier.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/io/ArchiveReader.html#outputRecord(java.lang.String)">outputRecord</A></B>(java.lang.String format)</CODE><BR> Output passed record using passed format specifier.</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/archive/io/ArchiveReader.html#rewind()">rewind</A></B>()</CODE><BR> Rewinds stream to start of the Archive file.</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/archive/io/ArchiveReader.html#setCompressed(boolean)">setCompressed</A></B>(boolean compressed)</CODE><BR> </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/archive/io/ArchiveReader.html#setDigest(boolean)">setDigest</A></B>(boolean d)</CODE><BR> </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/archive/io/ArchiveReader.html#setIn(java.io.InputStream)">setIn</A></B>(java.io.InputStream in)</CODE><BR> </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/archive/io/ArchiveReader.html#setReaderIdentifier(java.lang.String)">setReaderIdentifier</A></B>(java.lang.String i)</CODE><BR> </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/archive/io/ArchiveReader.html#setStrict(boolean)">setStrict</A></B>(boolean s)</CODE><BR> </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/archive/io/ArchiveReader.html#setVersion(java.lang.String)">setVersion</A></B>(java.lang.String version)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/io/ArchiveReader.html#stripExtension(java.lang.String, java.lang.String)">stripExtension</A></B>(java.lang.String name, java.lang.String ext)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.List</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/io/ArchiveReader.html#validate()">validate</A></B>()</CODE><BR> Validate the Archive file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.List</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/io/ArchiveReader.html#validate(int)">validate</A></B>(int noRecords)</CODE><BR> Validate the Archive file.</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_ALLOWED_RECOVERABLES"><!-- --></A><H3>MAX_ALLOWED_RECOVERABLES</H3><PRE>public static final int <B>MAX_ALLOWED_RECOVERABLES</B></PRE><DL><DD>Maximum amount of recoverable exceptions in a row. If more than this amount in a row, we'll let out the exception rather than go back in for yet another retry.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.archive.io.ArchiveReader.MAX_ALLOWED_RECOVERABLES">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"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ArchiveReader()"><!-- --></A><H3>ArchiveReader</H3><PRE>protected <B>ArchiveReader</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="initialize(java.lang.String)"><!-- --></A><H3>initialize</H3><PRE>protected void <B>initialize</B>(java.lang.String i)</PRE><DL><DD>Convenience method used by subclass constructors.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - Identifier for Archive file this reader goes against.</DL></DD></DL><HR><A NAME="getInputStream(java.io.File, long)"><!-- --></A><H3>getInputStream</H3><PRE>protected java.io.InputStream <B>getInputStream</B>(java.io.File f, long offset) throws java.io.IOException</PRE><DL><DD>Convenience method for constructors.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>f</CODE> - File to read.<DD><CODE>offset</CODE> - Offset at which to start reading.<DT><B>Returns:</B><DD>InputStream to read from.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If failed open or fail to get a memory mapped byte buffer on file.</DL></DD></DL><HR><A NAME="isCompressed()"><!-- --></A><H3>isCompressed</H3><PRE>public boolean <B>isCompressed</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="get(long)"><!-- --></A><H3>get</H3><PRE>public <A HREF="../../../org/archive/io/ArchiveRecord.html" title="class in org.archive.io">ArchiveRecord</A> <B>get</B>(long offset) throws java.io.IOException</PRE><DL><DD>Get record at passed <code>offset</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>offset</CODE> - Byte index into file at which a record starts.<DT><B>Returns:</B><DD>An Archive Record reference.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="get()"><!-- --></A><H3>get</H3><PRE>public <A HREF="../../../org/archive/io/ArchiveRecord.html" title="class in org.archive.io">ArchiveRecord</A> <B>get</B>() throws java.io.IOException</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Return Archive Record created against current offset.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>() throws java.io.IOException</PRE><DL><DD><DL></DL>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -