⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arcreaderfactory.html

📁 用JAVA编写的,在做实验的时候留下来的,本来想删的,但是传上来,大家分享吧
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../../org/archive/io/ArchiveReader.html" title="class in org.archive.io">ArchiveReader</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCReaderFactory.html#getArchiveReader(java.io.File, long)">getArchiveReader</A></B>(java.io.File&nbsp;f,                 long&nbsp;offset)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../../org/archive/io/ArchiveReader.html" title="class in org.archive.io">ArchiveReader</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCReaderFactory.html#getArchiveReader(java.lang.String, java.io.InputStream, boolean)">getArchiveReader</A></B>(java.lang.String&nbsp;arc,                 java.io.InputStream&nbsp;is,                 boolean&nbsp;atFirstRecord)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCReaderFactory.html#isARCSuffix(java.lang.String)">isARCSuffix</A></B>(java.lang.String&nbsp;arcName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCReaderFactory.html#isCompressed(java.io.File)">isCompressed</A></B>(java.io.File&nbsp;arcFile)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCReaderFactory.html#testCompressedARCFile(java.io.File)">testCompressedARCFile</A></B>(java.io.File&nbsp;arcFile)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check file is compressed and in ARC GZIP format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCReaderFactory.html#testCompressedARCFile(java.io.File, boolean)">testCompressedARCFile</A></B>(java.io.File&nbsp;arcFile,                      boolean&nbsp;skipSuffixCheck)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check file is compressed and in ARC GZIP format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCReaderFactory.html#testCompressedARCStream(java.io.InputStream)">testCompressedARCStream</A></B>(java.io.InputStream&nbsp;is)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests passed stream is gzip stream by reading in the HEAD.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.archive.io.ArchiveReaderFactory"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.archive.io.<A HREF="../../../../org/archive/io/ArchiveReaderFactory.html" title="class in org.archive.io">ArchiveReaderFactory</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/archive/io/ArchiveReaderFactory.html#addUserAgent(java.net.HttpURLConnection)">addUserAgent</A>, <A HREF="../../../../org/archive/io/ArchiveReaderFactory.html#getArchiveReader(java.io.File)">getArchiveReader</A>, <A HREF="../../../../org/archive/io/ArchiveReaderFactory.html#getArchiveReader(java.lang.String)">getArchiveReader</A>, <A HREF="../../../../org/archive/io/ArchiveReaderFactory.html#getArchiveReader(java.net.URL)">getArchiveReader</A>, <A HREF="../../../../org/archive/io/ArchiveReaderFactory.html#getArchiveReader(java.net.URL, long)">getArchiveReader</A>, <A HREF="../../../../org/archive/io/ArchiveReaderFactory.html#makeARCLocal(java.net.URLConnection)">makeARCLocal</A></CODE></TD></TR></TABLE>&nbsp;<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>&nbsp;<P><!-- ========= 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="ARCReaderFactory()"><!-- --></A><H3>ARCReaderFactory</H3><PRE>protected <B>ARCReaderFactory</B>()</PRE><DL><DD>Shutdown any access to default constructor.<P></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="get(java.lang.String)"><!-- --></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.lang.String&nbsp;arcFileOrUrl)                     throws java.net.MalformedURLException,                            java.io.IOException</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.net.MalformedURLException</CODE><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="get(java.io.File)"><!-- --></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.io.File&nbsp;f)                     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="get(java.io.File, 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.io.File&nbsp;f,                            long&nbsp;offset)                     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.io.File, long)"><!-- --></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.io.File&nbsp;f,                                         long&nbsp;offset)                                  throws java.io.IOException</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/archive/io/ArchiveReaderFactory.html#getArchiveReader(java.io.File, long)">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.io.File, boolean, 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.io.File&nbsp;f,                            boolean&nbsp;skipSuffixTest,                            long&nbsp;offset)                     throws java.io.IOException</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>f</CODE> - An arcfile to read.<DD><CODE>skipSuffixTest</CODE> - Set to true if want to test that ARC has proper suffix. Use this method and pass <code>false</code> to open ARCs with the <code>.open</code> or otherwise suffix.<DD><CODE>offset</CODE> - Have returned ARCReader set to start reading at passed offset.<DT><B>Returns:</B><DD>An ARCReader.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="getArchiveReader(java.io.File, boolean, long)"><!-- --></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.io.File&nbsp;arcFile,                                         boolean&nbsp;skipSuffixTest,                                         long&nbsp;offset)                                  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="get(java.lang.String, java.io.InputStream, boolean)"><!-- --></A><H3>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&nbsp;s,                                java.io.InputStream&nbsp;is,                                boolean&nbsp;atFirstRecord)                         throws java.io.IOException</PRE><DL><DD><DL></DL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -