?? arcreaderfactory.html
字號:
get</H3><PRE>public static <A HREF="../../../../org/archive/io/ArchiveReader.html" title="class in org.archive.io">ArchiveReader</A> <B>get</B>(java.lang.String s, java.io.InputStream is, boolean atFirstRecord) throws java.io.IOException</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="getArchiveReader(java.lang.String, java.io.InputStream, boolean)"><!-- --></A><H3>getArchiveReader</H3><PRE>protected <A HREF="../../../../org/archive/io/ArchiveReader.html" title="class in org.archive.io">ArchiveReader</A> <B>getArchiveReader</B>(java.lang.String arc, java.io.InputStream is, boolean atFirstRecord) throws java.io.IOException</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/archive/io/ArchiveReaderFactory.html#getArchiveReader(java.lang.String, java.io.InputStream, boolean)">getArchiveReader</A></CODE> in class <CODE><A HREF="../../../../org/archive/io/ArchiveReaderFactory.html" title="class in org.archive.io">ArchiveReaderFactory</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="get(java.net.URL, long)"><!-- --></A><H3>get</H3><PRE>public static <A HREF="../../../../org/archive/io/arc/ARCReader.html" title="class in org.archive.io.arc">ARCReader</A> <B>get</B>(java.net.URL arcUrl, long offset) throws java.io.IOException</PRE><DL><DD>Get an ARCReader aligned at <code>offset</code>. This version of get will not bring the ARC local but will try to stream across the net making an HTTP 1.1 Range request on remote http server (RFC1435 Section 14.35).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>arcUrl</CODE> - HTTP URL for an ARC (All ARCs considered remote).<DD><CODE>offset</CODE> - Offset into ARC at which to start fetching.<DT><B>Returns:</B><DD>An ARCReader aligned at offset.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="get(java.net.URL)"><!-- --></A><H3>get</H3><PRE>public static <A HREF="../../../../org/archive/io/arc/ARCReader.html" title="class in org.archive.io.arc">ARCReader</A> <B>get</B>(java.net.URL arcUrl) throws java.io.IOException</PRE><DL><DD>Get an ARCReader. Pulls the ARC local into whereever the System Property <code>java.io.tmpdir</code> points. It then hands back an ARCReader that points at this local copy. A close on this ARCReader instance will remove the local copy.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>arcUrl</CODE> - An URL that points at an ARC.<DT><B>Returns:</B><DD>An ARCReader.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="isCompressed(java.io.File)"><!-- --></A><H3>isCompressed</H3><PRE>public boolean <B>isCompressed</B>(java.io.File arcFile) throws java.io.IOException</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/archive/io/ArchiveReaderFactory.html#isCompressed(java.io.File)">isCompressed</A></CODE> in class <CODE><A HREF="../../../../org/archive/io/ArchiveReaderFactory.html" title="class in org.archive.io">ArchiveReaderFactory</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>arcFile</CODE> - File to test.<DT><B>Returns:</B><DD>True if <code>arcFile</code> is compressed ARC.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="testCompressedARCFile(java.io.File)"><!-- --></A><H3>testCompressedARCFile</H3><PRE>public static boolean <B>testCompressedARCFile</B>(java.io.File arcFile) throws java.io.IOException</PRE><DL><DD>Check file is compressed and in ARC GZIP format.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>arcFile</CODE> - File to test if its Internet Archive ARC file GZIP compressed.<DT><B>Returns:</B><DD>True if this is an Internet Archive GZIP'd ARC file (It begins w/ the Internet Archive GZIP header and has the COMPRESSED_ARC_FILE_EXTENSION suffix).<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If file does not exist or is not unreadable.</DL></DD></DL><HR><A NAME="testCompressedARCFile(java.io.File, boolean)"><!-- --></A><H3>testCompressedARCFile</H3><PRE>public static boolean <B>testCompressedARCFile</B>(java.io.File arcFile, boolean skipSuffixCheck) throws java.io.IOException</PRE><DL><DD>Check file is compressed and in ARC GZIP format.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>arcFile</CODE> - File to test if its Internet Archive ARC file GZIP compressed.<DD><CODE>skipSuffixCheck</CODE> - Set to true if we're not to test on the '.arc.gz' suffix.<DT><B>Returns:</B><DD>True if this is an Internet Archive GZIP'd ARC file (It begins w/ the Internet Archive GZIP header).<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If file does not exist or is not unreadable.</DL></DD></DL><HR><A NAME="isARCSuffix(java.lang.String)"><!-- --></A><H3>isARCSuffix</H3><PRE>public static boolean <B>isARCSuffix</B>(java.lang.String arcName)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="testCompressedARCStream(java.io.InputStream)"><!-- --></A><H3>testCompressedARCStream</H3><PRE>public static boolean <B>testCompressedARCStream</B>(java.io.InputStream is) throws java.io.IOException</PRE><DL><DD>Tests passed stream is gzip stream by reading in the HEAD. Does not reposition the stream. That is left up to the caller.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>is</CODE> - An InputStream.<DT><B>Returns:</B><DD>True if compressed stream.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></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=2 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/ARCReaderFactory.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/archive/io/arc/ARCReader.html" title="class in org.archive.io.arc"><B>PREV CLASS</B></A> <A HREF="../../../../org/archive/io/arc/ARCRecord.html" title="class in org.archive.io.arc"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/archive/io/arc/ARCReaderFactory.html" target="_top"><B>FRAMES</B></A> <A HREF="ARCReaderFactory.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 | FIELD | <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 © 2003-2007 Internet Archive. All Rights Reserved.</BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -