| Modifier and Type | Field and Description |
|---|---|
WarcDate |
WarcHeader.warcDate
WARC-Date converted to a
Date object, if valid. |
WarcDate |
WarcHeader.warcRefersToDate
WARC-Date converted to a
Date object, if valid. |
| Modifier and Type | Method and Description |
|---|---|
static WarcDate |
WarcDate.fromLocalDate(java.util.Date date)
Returns a
WarcDate object from on a Date in the default system timezone. |
static WarcDate |
WarcDate.fromUTCDate(java.util.Date date)
Returns a
WarcDate object from on a Date in the default system timezone. |
static WarcDate |
WarcDate.getWarcDate(byte[] bytes,
int pos,
int limit)
Attempt to parse a WARC date string from a byte array in a subset of the W3CDTF format.
|
static WarcDate |
WarcDate.getWarcDate(java.lang.String datestring)
Attempt to parse a WARC date string in a subset of the W3CDTF format.
|
static WarcDate |
WarcDate.now()
Returns a
WarcDate representing the current UTC date time. |
WarcDate |
WarcFieldParsers.parseWarcDate(java.lang.String dateStr,
java.lang.String field) |
| Modifier and Type | Method and Description |
|---|---|
HeaderLine |
WarcHeader.addHeader(java.lang.String fieldName,
java.lang.String fieldValueStr,
int dt,
java.lang.Integer integerFieldValue,
java.lang.Long longFieldValue,
WarcDigest digestFieldValue,
ContentType contentTypeFieldValue,
WarcDate dateFieldValue,
java.net.InetAddress inetAddrFieldValue,
Uri uriFieldValue)
Add a header with the supplied field name, data type and value and
return a
HeaderLine corresponding to how the header will
be read. |
HeaderLine |
WarcHeader.addHeader(java.lang.String fieldName,
WarcDate dateFieldValue,
java.lang.String fieldValueStr)
Add an Date header using the supplied string and object values and return
a
HeaderLine object corresponding to how the header would be read. |
Copyright © 2011–2023. All rights reserved.