archivereaderfactory.html

来自「网络爬虫开源代码」· HTML 代码 · 共 744 行 · 第 1/3 页

HTML
744
字号
&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/ArchiveReaderFactory.html#getArchiveReader(java.lang.String)">getArchiveReader</A></B>(java.lang.String&nbsp;arcFileOrUrl)</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/ArchiveReaderFactory.html#getArchiveReader(java.lang.String, java.io.InputStream, boolean)">getArchiveReader</A></B>(java.lang.String&nbsp;id,                 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>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/ArchiveReaderFactory.html#getArchiveReader(java.lang.String, long)">getArchiveReader</A></B>(java.lang.String&nbsp;arcFileOrUrl,                 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/ArchiveReaderFactory.html#getArchiveReader(java.net.URL)">getArchiveReader</A></B>(java.net.URL&nbsp;u)</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/ArchiveReaderFactory.html#getArchiveReader(java.net.URL, long)">getArchiveReader</A></B>(java.net.URL&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;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/archive/io/ArchiveReaderFactory.html#isCompressed(java.io.File)">isCompressed</A></B>(java.io.File&nbsp;f)</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/ArchiveReaderFactory.html#makeARCLocal(java.net.URLConnection)">makeARCLocal</A></B>(java.net.URLConnection&nbsp;connection)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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="ArchiveReaderFactory()"><!-- --></A><H3>ArchiveReaderFactory</H3><PRE>protected <B>ArchiveReaderFactory</B>()</PRE><DL><DD>Shutdown any public 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/ArchiveReader.html" title="class in org.archive.io">ArchiveReader</A> <B>get</B>(java.lang.String&nbsp;arcFileOrUrl)                         throws java.net.MalformedURLException,                                java.io.IOException</PRE><DL><DD>Get an Archive file Reader on passed path or url. Does primitive heuristic figuring if path or URL.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>arcFileOrUrl</CODE> - File path or URL pointing at an Archive file.<DT><B>Returns:</B><DD>An Archive file Reader.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE><DD><CODE>java.net.MalformedURLException</CODE><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="getArchiveReader(java.lang.String)"><!-- --></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&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="getArchiveReader(java.lang.String, 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.lang.String&nbsp;arcFileOrUrl,                                         long&nbsp;offset)                                  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/ArchiveReader.html" title="class in org.archive.io">ArchiveReader</A> <B>get</B>(java.io.File&nbsp;f)                         throws java.io.IOException</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>f</CODE> - An Archive file to read.<DT><B>Returns:</B><DD>An ArchiveReader<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="getArchiveReader(java.io.File)"><!-- --></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)                                  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/ArchiveReader.html" title="class in org.archive.io">ArchiveReader</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>Parameters:</B><DD><CODE>f</CODE> - An Archive file to read.<DD><CODE>offset</CODE> - Have returned Reader set to start reading at this offset.<DT><B>Returns:</B><DD>An ArchiveReader<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></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>Wrap a Reader around passed Stream.

⌨️ 快捷键说明

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