public class CdxRecords extends Object
| Constructor and Description |
|---|
CdxRecords()
No-argument constructor to be used when processing PyWayBack requests.
|
CdxRecords(Map<String,String> openWayBackQuery,
String charsetName)
Constructor to be used when processing OpenWayBack requests.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCdxRecord(CdxRecord cdxRecord)
Adds a CDX record to this object.
|
int |
getCdxRecordCount()
Provides the count of CDX records in this object.
|
List<CdxRecord> |
getCdxRecords()
Provides the CDX records in this object, for testing purposes.
|
String |
toIaText()
Provides the representation of this object in Internet Archive format.
|
String |
toJson()
Provides the representation of this object in JSON format.
|
String |
toXmlText()
Writes the representation of this object in OpenWayback XML format.
|
public CdxRecords()
public CdxRecords(Map<String,String> openWayBackQuery, String charsetName)
openWayBackQuery - A MapcharsetName - A String with the character set name to be used for XML
generation.public void addCdxRecord(CdxRecord cdxRecord)
cdxRecord - A CdxRecord with the CDX record to be added.public int getCdxRecordCount()
public String toIaText()
public String toXmlText() throws XMLStreamException
XMLStreamException - if there are problems writing the XML element.public String toJson()
Copyright © 2000–2023 LOCKSS Program. All rights reserved.