warcrecord.html
来自「网络爬虫开源代码」· HTML 代码 · 共 423 行 · 第 1/3 页
HTML
423 行
<P><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - Stream cue'd up just past Header Line and Named Fields.<DD><CODE>headers</CODE> - Header Line and ANVL Named fields.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DL><HR><A NAME="WARCRecord(java.io.InputStream, java.lang.String, long, boolean, boolean)"><!-- --></A><H3>WARCRecord</H3><PRE>public <B>WARCRecord</B>(java.io.InputStream in, java.lang.String identifier, long offset, boolean digest, boolean strict) 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 or, if <code>headers</code> is not null, just past the Header Line and Named Fields.<DD><CODE>identifier</CODE> - Identifier for this the hosting Reader.<DD><CODE>offset</CODE> - Current offset into <code>in</code> (Used to keep <code>position</code> properly aligned). Usually 0.<DD><CODE>digest</CODE> - True if we're to calculate digest for this record. Not digesting saves about ~15% of cpu during parse.<DD><CODE>strict</CODE> - Be strict parsing (Parsing stops if file inproperly formatted).<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="parseHeaders(java.io.InputStream, java.lang.String, long, boolean)"><!-- --></A><H3>parseHeaders</H3><PRE>protected <A HREF="../../../../org/archive/io/ArchiveRecordHeader.html" title="interface in org.archive.io">ArchiveRecordHeader</A> <B>parseHeaders</B>(java.io.InputStream in, java.lang.String identifier, long offset, boolean strict) throws java.io.IOException</PRE><DL><DD>Parse WARC Header Line and Named Fields.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - Stream to read.<DD><CODE>identifier</CODE> - Identifier for the hosting Reader.<DD><CODE>offset</CODE> - Absolute offset into Reader.<DD><CODE>strict</CODE> - Whether to be loose parsing or not.<DT><B>Returns:</B><DD>An ArchiveRecordHeader.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="getMimetype4Cdx(org.archive.io.ArchiveRecordHeader)"><!-- --></A><H3>getMimetype4Cdx</H3><PRE>protected java.lang.String <B>getMimetype4Cdx</B>(<A HREF="../../../../org/archive/io/ArchiveRecordHeader.html" title="interface in org.archive.io">ArchiveRecordHeader</A> h)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/archive/io/ArchiveRecord.html#getMimetype4Cdx(org.archive.io.ArchiveRecordHeader)">getMimetype4Cdx</A></CODE> in class <CODE><A HREF="../../../../org/archive/io/ArchiveRecord.html" title="class in org.archive.io">ArchiveRecord</A></CODE></DL></DD><DD><DL></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/WARCRecord.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/warc/WARCReaderFactory.html" title="class in org.archive.io.warc"><B>PREV CLASS</B></A> <A HREF="../../../../org/archive/io/warc/WARCWriterPool.html" title="class in org.archive.io.warc"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/archive/io/warc/WARCRecord.html" target="_top"><B>FRAMES</B></A> <A HREF="WARCRecord.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 | <A HREF="#fields_inherited_from_class_org.archive.io.ArchiveRecord">FIELD</A> | <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 + =
减小字号Ctrl + -
显示快捷键?