Constructor and Description |
---|
CDXRecord(String line)
Constructor, which tries to parse the given string as a CDXRecord.
|
CDXRecord(String[] fields)
Constructor for class CDXRecord.
|
Modifier and Type | Method and Description |
---|---|
String |
getArcfile()
Get the given arcfile.
|
String |
getDate()
Get the given date.
|
String |
getIP()
Get the given IP.
|
long |
getLength()
Get the given length.
|
String |
getMimetype()
Get the given mimetype.
|
long |
getOffset()
Get the given offset.
|
String |
getURL()
Get the given URL.
|
static boolean |
URLsEqual(String url1,
String url2)
Compare two URLs for equality; first URL-unescaping (in UTF-8) all arguments in any query part.
|
public CDXRecord(String[] fields)
fields
- the given fields of a line i CDX-format.ArgumentNotValid
- if argument is null or number of fields is less than 7 or if length or offset does not
contain long values.public static boolean URLsEqual(String url1, String url2)
url1
- The first URLurl2
- The second URLpublic String getMimetype()
public long getLength()
public String getArcfile()
public long getOffset()
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.