public class CDXFormat extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CDX_MAGIC |
static char |
COMPRESSED_LENGTH |
static char |
COMPRESSED_OFFSET |
protected char |
delimiter |
protected String |
delimiterS |
static char |
DIGEST |
protected CDXField[] |
fields |
static char |
FILE |
static char |
HTTP_CODE |
static char |
MIME_TYPE |
static char |
ORIGINAL_URL |
static char |
REDIRECT |
static char |
ROBOT_FLAGS |
static char |
TIMESTAMP |
static char |
URL_KEY |
Constructor and Description |
---|
CDXFormat(String cdxSpec)
Construct a CDXFormat reader/writer based on the specification argument
|
Modifier and Type | Method and Description |
---|---|
protected CDXField |
getField(char fieldChar) |
CaptureSearchResult |
parseResult(String line) |
String |
serializeResult(CaptureSearchResult result) |
protected CDXField[] fields
protected char delimiter
protected String delimiterS
public static String CDX_MAGIC
public static char URL_KEY
public static char TIMESTAMP
public static char ORIGINAL_URL
public static char MIME_TYPE
public static char HTTP_CODE
public static char DIGEST
public static char REDIRECT
public static char ROBOT_FLAGS
public static char COMPRESSED_OFFSET
public static char COMPRESSED_LENGTH
public static char FILE
public CDXFormat(String cdxSpec) throws CDXFormatException
cdxSpec
- CDXFormatException
protected CDXField getField(char fieldChar) throws CDXFormatException
CDXFormatException
public CaptureSearchResult parseResult(String line) throws CDXFormatException
line
- CDXFormatException
public String serializeResult(CaptureSearchResult result)
result
- Copyright © 2005–2015 IIPC. All rights reserved.