|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.utils.cdx.CDXRecord
public class CDXRecord
Represents a line i a CDX-file. A CDX-file is an index over arcfiles, with fields for uri, ip, date, mimetype, length, arcfile, and offset in the file.
Constructor Summary | |
---|---|
CDXRecord(java.lang.String line)
Constructor, which tries to parse the given string as a CDXRecord. |
|
CDXRecord(java.lang.String[] fields)
Constructor for class CDXRecord. |
Method Summary | |
---|---|
java.lang.String |
getArcfile()
Get the given arcfile. |
java.lang.String |
getDate()
Get the given date. |
java.lang.String |
getIP()
Get the given IP. |
long |
getLength()
Get the given length. |
java.lang.String |
getMimetype()
Get the given mimetype. |
long |
getOffset()
Get the given offset. |
java.lang.String |
getURL()
Get the given URL. |
static boolean |
URLsEqual(java.lang.String url1,
java.lang.String url2)
Compare two URLs for equality; first URL-unescaping (in UTF-8) all arguments in any query part. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CDXRecord(java.lang.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 CDXRecord(java.lang.String line)
line
- a CDXlineMethod Detail |
---|
public static boolean URLsEqual(java.lang.String url1, java.lang.String url2)
url1
- The first URLurl2
- The second URL
public java.lang.String getURL()
public java.lang.String getIP()
public java.lang.String getDate()
public java.lang.String getMimetype()
public long getLength()
public java.lang.String getArcfile()
public long getOffset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |