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

📄 arcrecord.html

📁 用JAVA编写的,在做实验的时候留下来的,本来想删的,但是传上来,大家分享吧
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCRecord.html#getDigest4Cdx(org.archive.io.ArchiveRecordHeader)">getDigest4Cdx</A></B>(<A HREF="../../../../org/archive/io/ArchiveRecordHeader.html" title="interface in org.archive.io">ArchiveRecordHeader</A>&nbsp;h)</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;org.apache.commons.httpclient.Header[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCRecord.html#getHttpHeaders()">getHttpHeaders</A></B>()</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;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCRecord.html#getIp4Cdx(org.archive.io.ArchiveRecordHeader)">getIp4Cdx</A></B>(<A HREF="../../../../org/archive/io/ArchiveRecordHeader.html" title="interface in org.archive.io">ArchiveRecordHeader</A>&nbsp;h)</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;<A HREF="../../../../org/archive/io/arc/ARCRecordMetaData.html" title="class in org.archive.io.arc">ARCRecordMetaData</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCRecord.html#getMetaData()">getMetaData</A></B>()</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;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCRecord.html#getStatusCode()">getStatusCode</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return status code for this record.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCRecord.html#getStatusCode4Cdx(org.archive.io.ArchiveRecordHeader)">getStatusCode4Cdx</A></B>(<A HREF="../../../../org/archive/io/ArchiveRecordHeader.html" title="interface in org.archive.io">ArchiveRecordHeader</A>&nbsp;h)</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;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCRecord.html#read()">read</A></B>()</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;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCRecord.html#read(byte[], int, int)">read</A></B>(byte[]&nbsp;b,     int&nbsp;offset,     int&nbsp;length)</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;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCRecord.html#skipHttpHeader()">skipHttpHeader</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Skip over the the http header if one present.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.archive.io.ArchiveRecord"><!-- --></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/ArchiveRecord.html" title="class in org.archive.io">ArchiveRecord</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/archive/io/ArchiveRecord.html#available()">available</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#close()">close</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#dump()">dump</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#dump(java.io.OutputStream)">dump</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#getDigestStr()">getDigestStr</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#getHeader()">getHeader</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#getIn()">getIn</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#getMimetype4Cdx(org.archive.io.ArchiveRecordHeader)">getMimetype4Cdx</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#getPosition()">getPosition</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#incrementPosition()">incrementPosition</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#incrementPosition(long)">incrementPosition</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#isEor()">isEor</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#isStrict()">isStrict</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#markSupported()">markSupported</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#outputCdx(java.lang.String)">outputCdx</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#setEor(boolean)">setEor</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#setHeader(org.archive.io.ArchiveRecordHeader)">setHeader</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#setStrict(boolean)">setStrict</A>, <A HREF="../../../../org/archive/io/ArchiveRecord.html#skip(long)">skip</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.io.InputStream"><!-- --></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.io.InputStream</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>mark, read, reset</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="ARCRecord(java.io.InputStream, org.archive.io.ArchiveRecordHeader)"><!-- --></A><H3>ARCRecord</H3><PRE>public <B>ARCRecord</B>(java.io.InputStream&nbsp;in,                 <A HREF="../../../../org/archive/io/ArchiveRecordHeader.html" title="interface in org.archive.io">ArchiveRecordHeader</A>&nbsp;metaData)          throws java.io.IOException</PRE><DL><DD>Constructor.<P><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - Stream cue'd up to be at the start of the record this instance is to represent.<DD><CODE>metaData</CODE> - Meta data.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DL><HR><A NAME="ARCRecord(java.io.InputStream, org.archive.io.ArchiveRecordHeader, int, boolean, boolean, boolean)"><!-- --></A><H3>ARCRecord</H3><PRE>public <B>ARCRecord</B>(java.io.InputStream&nbsp;in,                 <A HREF="../../../../org/archive/io/ArchiveRecordHeader.html" title="interface in org.archive.io">ArchiveRecordHeader</A>&nbsp;metaData,                 int&nbsp;bodyOffset,                 boolean&nbsp;digest,                 boolean&nbsp;strict,                 boolean&nbsp;parseHttpHeaders)          throws java.io.IOException</PRE><DL><DD>Constructor.<P><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - Stream cue'd up to be at the start of the record this instance is to represent.<DD><CODE>metaData</CODE> - Meta data.<DD><CODE>bodyOffset</CODE> - Offset into the body.  Usually 0.<DD><CODE>digest</CODE> - True if we're to calculate digest for this record.  Not digesting saves about ~15% of cpu during an ARC parse.<DD><CODE>strict</CODE> - Be strict parsing (Parsing stops if ARC inproperly formatted).<DD><CODE>parseHttpHeaders</CODE> - True if we are to parse HTTP headers.  Costs about ~20% of CPU during an ARC parse.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></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="skipHttpHeader()"><!-- --></A><H3>skipHttpHeader</H3><PRE>public void <B>skipHttpHeader</B>()                    throws java.io.IOException</PRE><DL><DD>Skip over the the http header if one present.  Subsequent reads will get the body.  <p>Calling this method in the midst of reading the header will make for strange results.  Otherwise, safe to call at any time though before reading any of the arc record content is only time that it makes sense.  <p>After calling this method, you can call <A HREF="../../../../org/archive/io/arc/ARCRecord.html#getHttpHeaders()"><CODE>getHttpHeaders()</CODE></A> to get the read http header.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="getStatusCode()"><!-- --></A><H3>getStatusCode</H3><PRE>public int <B>getStatusCode</B>()</PRE><DL><DD>Return status code for this record.  This method will return -1 until the http header has been read.<P><DD><DL>

⌨️ 快捷键说明

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