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

📄 warcreader.html

📁 用JAVA编写的,在做实验的时候留下来的,本来想删的,但是传上来,大家分享吧
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.5.0_06) on Wed Sep 27 16:03:13 PDT 2006 --><TITLE>WARCReader (Heritrix 1.10.1)</TITLE><META NAME="keywords" CONTENT="org.archive.io.warc.WARCReader class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){    parent.document.title="WARCReader (Heritrix 1.10.1)";}</SCRIPT><NOSCRIPT></NOSCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" 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_top_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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/WARCReader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../org/archive/io/warc/WARCConstants.html" title="interface in org.archive.io.warc"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/archive/io/warc/WARCReaderFactory.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/WARCReader.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="WARCReader.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;<A HREF="#nested_classes_inherited_from_class_org.archive.io.ArchiveReader">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.archive.io.ArchiveReader">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.archive.io.warc</FONT><BR>Class WARCReader</H2><PRE>java.lang.Object  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/archive/io/ArchiveReader.html" title="class in org.archive.io">org.archive.io.ArchiveReader</A>      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.archive.io.warc.WARCReader</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/archive/io/ArchiveFileConstants.html" title="interface in org.archive.io">ArchiveFileConstants</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html" title="interface in org.archive.io.warc">WARCConstants</A></DD></DL><HR><DL><DT><PRE>public class <B>WARCReader</B><DT>extends <A HREF="../../../../org/archive/io/ArchiveReader.html" title="class in org.archive.io">ArchiveReader</A><DT>implements <A HREF="../../../../org/archive/io/warc/WARCConstants.html" title="interface in org.archive.io.warc">WARCConstants</A></DL></PRE><P>WARCReader. Go via <A HREF="../../../../org/archive/io/warc/WARCReaderFactory.html" title="class in org.archive.io.warc"><CODE>WARCReaderFactory</CODE></A> to get instance.<P><P><DL><DT><B>Version:</B></DT>  <DD>$Date: 2006/08/28 23:44:17 $ $Version$</DD><DT><B>Author:</B></DT>  <DD>stack</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><A NAME="nested_class_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Nested Class Summary</B></FONT></TH></TR></TABLE>&nbsp;<A NAME="nested_classes_inherited_from_class_org.archive.io.ArchiveReader"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Nested classes/interfaces inherited from class org.archive.io.<A HREF="../../../../org/archive/io/ArchiveReader.html" title="class in org.archive.io">ArchiveReader</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/archive/io/ArchiveReader.ArchiveRecordIterator.html" title="class in org.archive.io">ArchiveReader.ArchiveRecordIterator</A>, <A HREF="../../../../org/archive/io/ArchiveReader.RepositionableBufferedInputStream.html" title="class in org.archive.io">ArchiveReader.RepositionableBufferedInputStream</A></CODE></TD></TR></TABLE>&nbsp;<!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Field Summary</B></FONT></TH></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_org.archive.io.ArchiveReader"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Fields inherited from class org.archive.io.<A HREF="../../../../org/archive/io/ArchiveReader.html" title="class in org.archive.io">ArchiveReader</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/archive/io/ArchiveReader.html#MAX_ALLOWED_RECOVERABLES">MAX_ALLOWED_RECOVERABLES</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_org.archive.io.warc.WARCConstants"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Fields inherited from interface org.archive.io.warc.<A HREF="../../../../org/archive/io/warc/WARCConstants.html" title="interface in org.archive.io.warc">WARCConstants</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/archive/io/warc/WARCConstants.html#COMPRESSED_WARC_FILE_EXTENSION">COMPRESSED_WARC_FILE_EXTENSION</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#CONTINUATION">CONTINUATION</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#CONTINUATION_INDEX">CONTINUATION_INDEX</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#CONVERSION">CONVERSION</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#CONVERSION_INDEX">CONVERSION_INDEX</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#DEFAULT_ENCODING">DEFAULT_ENCODING</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#DEFAULT_MAX_WARC_FILE_SIZE">DEFAULT_MAX_WARC_FILE_SIZE</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#DOT_COMPRESSED_FILE_EXTENSION">DOT_COMPRESSED_FILE_EXTENSION</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#DOT_COMPRESSED_WARC_FILE_EXTENSION">DOT_COMPRESSED_WARC_FILE_EXTENSION</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#DOT_WARC_FILE_EXTENSION">DOT_WARC_FILE_EXTENSION</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#HEADER_FIELD_KEYS">HEADER_FIELD_KEYS</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#HEADER_FIELD_SEPARATOR">HEADER_FIELD_SEPARATOR</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#HEADER_LINE_ENCODING">HEADER_LINE_ENCODING</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#HTTP_REQUEST_MIMETYPE">HTTP_REQUEST_MIMETYPE</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#HTTP_RESPONSE_MIMETYPE">HTTP_RESPONSE_MIMETYPE</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#MAX_LINE_LENGTH">MAX_LINE_LENGTH</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#MAX_WARC_HEADER_LINE_LENGTH">MAX_WARC_HEADER_LINE_LENGTH</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#METADATA">METADATA</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#METADATA_INDEX">METADATA_INDEX</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#NAMED_FIELD_CHECKSUM_LABEL">NAMED_FIELD_CHECKSUM_LABEL</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#NAMED_FIELD_DESCRIPTION">NAMED_FIELD_DESCRIPTION</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#NAMED_FIELD_FILEDESC">NAMED_FIELD_FILEDESC</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#NAMED_FIELD_IP_LABEL">NAMED_FIELD_IP_LABEL</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#NAMED_FIELD_RELATED_LABEL">NAMED_FIELD_RELATED_LABEL</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#NAMED_FIELD_TRUNCATED">NAMED_FIELD_TRUNCATED</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#NAMED_FIELD_TRUNCATED_VALUE_HEAD">NAMED_FIELD_TRUNCATED_VALUE_HEAD</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#NAMED_FIELD_TRUNCATED_VALUE_LEN">NAMED_FIELD_TRUNCATED_VALUE_LEN</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#NAMED_FIELD_TRUNCATED_VALUE_TIME">NAMED_FIELD_TRUNCATED_VALUE_TIME</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#NAMED_FIELD_TRUNCATED_VALUE_UNSPECIFIED">NAMED_FIELD_TRUNCATED_VALUE_UNSPECIFIED</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#NAMED_FIELD_WARCFILENAME">NAMED_FIELD_WARCFILENAME</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#PLACEHOLDER_RECORD_LENGTH_STRING">PLACEHOLDER_RECORD_LENGTH_STRING</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#REQUEST">REQUEST</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#REQUEST_INDEX">REQUEST_INDEX</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#RESOURCE">RESOURCE</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#RESOURCE_INDEX">RESOURCE_INDEX</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#RESPONSE">RESPONSE</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#RESPONSE_INDEX">RESPONSE_INDEX</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#REVISIT">REVISIT</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#REVISIT_INDEX">REVISIT_INDEX</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#TYPE">TYPE</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#TYPES">TYPES</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#TYPES_LIST">TYPES_LIST</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#WARC_FILE_EXTENSION">WARC_FILE_EXTENSION</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#WARC_ID">WARC_ID</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#WARC_MAGIC">WARC_MAGIC</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#WARC_VERSION">WARC_VERSION</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#WARCINFO">WARCINFO</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#WARCINFO_INDEX">WARCINFO_INDEX</A>, <A HREF="../../../../org/archive/io/warc/WARCConstants.html#WSP">WSP</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_org.archive.io.ArchiveFileConstants"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Fields inherited from interface org.archive.io.<A HREF="../../../../org/archive/io/ArchiveFileConstants.html" title="interface in org.archive.io">ArchiveFileConstants</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/archive/io/ArchiveFileConstants.html#ABSOLUTE_OFFSET_KEY">ABSOLUTE_OFFSET_KEY</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#CDX">CDX</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#CDX_FILE">CDX_FILE</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#CDX_LINE_BUFFER_SIZE">CDX_LINE_BUFFER_SIZE</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#COMPRESSED_FILE_EXTENSION">COMPRESSED_FILE_EXTENSION</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#CRLF">CRLF</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#DATE_FIELD_KEY">DATE_FIELD_KEY</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#DEFAULT_DIGEST_METHOD">DEFAULT_DIGEST_METHOD</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#DUMP">DUMP</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#GZIP_DUMP">GZIP_DUMP</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#INVALID_SUFFIX">INVALID_SUFFIX</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#LENGTH_FIELD_KEY">LENGTH_FIELD_KEY</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#MIMETYPE_FIELD_KEY">MIMETYPE_FIELD_KEY</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#NOHEAD">NOHEAD</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#OCCUPIED_SUFFIX">OCCUPIED_SUFFIX</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#READER_IDENTIFIER_FIELD_KEY">READER_IDENTIFIER_FIELD_KEY</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#RECORD_IDENTIFIER_FIELD_KEY">RECORD_IDENTIFIER_FIELD_KEY</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#SINGLE_SPACE">SINGLE_SPACE</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#TYPE_FIELD_KEY">TYPE_FIELD_KEY</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#URL_FIELD_KEY">URL_FIELD_KEY</A>, <A HREF="../../../../org/archive/io/ArchiveFileConstants.html#VERSION_FIELD_KEY">VERSION_FIELD_KEY</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../org/archive/io/warc/WARCReader.html#WARCReader()">WARCReader</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../../org/archive/io/warc/WARCRecord.html" title="class in org.archive.io.warc">WARCRecord</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/io/warc/WARCReader.html#createArchiveRecord(java.io.InputStream, long)">createArchiveRecord</A></B>(java.io.InputStream&nbsp;is,                    long&nbsp;offset)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create new WARC record.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD>

⌨️ 快捷键说明

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