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

📄 archivefileconstants.java

📁 这是个爬虫和lucece相结合最好了
💻 JAVA
字号:
/* $Id: ArchiveFileConstants.java 4620 2006-09-12 19:41:23Z stack-sf $ * * Created on August 16th, 2006. * * Copyright (C) 2006 Internet Archive. * * This file is part of the Heritrix web crawler (crawler.archive.org). * * Heritrix is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * any later version. * * Heritrix is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU Lesser Public License for more details. * * You should have received a copy of the GNU Lesser Public License * along with Heritrix; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */package org.archive.io;/** * Constants used by Archive files and in Archive file processing. * @author stack * @version $Date: 2006-09-12 19:41:23 +0000 (Tue, 12 Sep 2006) $ $Revision: 4620 $ */public interface ArchiveFileConstants {    /**     * Suffix given to files currently in use.     */    public static final String OCCUPIED_SUFFIX = ".open";        /**     * Suffix appended to 'broken' files.     */    public static final String INVALID_SUFFIX = ".invalid";        /**     * Compressed file extention.     */    public static final String COMPRESSED_FILE_EXTENSION = "gz";        /**     * Dot plus compressed file extention.     */    public static final String DOT_COMPRESSED_FILE_EXTENSION = "." +        COMPRESSED_FILE_EXTENSION;        /**     * Key for the Archive File version field.     */    public static final String VERSION_FIELD_KEY = "version";        /**     * Key for the Archive File length field.     */    public static final String LENGTH_FIELD_KEY = "length";        /**     * Key for the Archive File type field.     */    public static final String TYPE_FIELD_KEY = "type";        /**     * Key for the Archive File URL field.     */    public static final String URL_FIELD_KEY = "subject-uri";        /**     * Key for the Archive File Creation Date field.     */    public static final String DATE_FIELD_KEY = "creation-date";    /**     * Key for the Archive File mimetype field.     */    public static final String MIMETYPE_FIELD_KEY = "content-type";        /**     * Key for the Archive File record field.     */    public static final String RECORD_IDENTIFIER_FIELD_KEY =    	"record-identifier";        /**     * Key for the Archive Record absolute offset into Archive file.     */    public static final String ABSOLUTE_OFFSET_KEY = "absolute-offset";        public static final String READER_IDENTIFIER_FIELD_KEY =    	"reader-identifier";        /**     * Size used to preallocate stringbuffer used outputting a cdx line.     * The numbers below are guesses at sizes of each of the cdx fields.     * The ones in the below are spaces. Here is the legend used outputting     * the cdx line: CDX b e a m s c V n g.  Consult cdx documentation on     * meaning of each of these fields.     */    public static final int CDX_LINE_BUFFER_SIZE = 14 + 1 + 15 + 1 + 1024 +        1 + 24 + 1 + + 3 + 1 + 32 + 1 + 20 + 1 + 20 + 1 + 64;        public static final String DEFAULT_DIGEST_METHOD = "SHA-1";        public static final char SINGLE_SPACE = ' ';        public static final String CRLF = "\r\n";        public static final String CDX = "cdx";    public static final String DUMP = "dump";    public static final String GZIP_DUMP = "gzipdump";    public static final String HEADER = "header";    public static final String NOHEAD = "nohead";    public static final String CDX_FILE = "cdxfile";}

⌨️ 快捷键说明

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