?? arcrecord.html
字號:
<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> h)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected 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> h)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCRecord.html#getStatusCode()">getStatusCode</A></B>()</CODE><BR> 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 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> h)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCRecord.html#read()">read</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/arc/ARCRecord.html#read(byte[], int, int)">read</A></B>(byte[] b, int offset, int length)</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/arc/ARCRecord.html#skipHttpHeader()">skipHttpHeader</A></B>()</CODE><BR> Skip over the the http header if one present.</TD></TR></TABLE> <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> <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> <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><!-- ========= 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 in, <A HREF="../../../../org/archive/io/ArchiveRecordHeader.html" title="interface in org.archive.io">ArchiveRecordHeader</A> 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 in, <A HREF="../../../../org/archive/io/ArchiveRecordHeader.html" title="interface in org.archive.io">ArchiveRecordHeader</A> metaData, int bodyOffset, boolean digest, boolean strict, boolean 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="dumpHttpHeader()"><!-- --></A><H3>dumpHttpHeader</H3><PRE>public void <B>dumpHttpHeader</B>() 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="getStatusCode()"><!-- --></A><H3>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -