public class Result extends Object implements Comparable<Result>
Modifier and Type | Field and Description |
---|---|
String |
file |
String |
filename |
String |
from |
String |
href |
String |
mimeType |
String |
name |
String |
nicename |
String |
prettyRelativeHref |
String |
relativeHref |
Long |
size |
Constructor and Description |
---|
Result() |
Modifier and Type | Method and Description |
---|---|
File |
asFile()
Get the result as a File object if possible; null otherwise.
|
String |
asText()
Get the result as a String object if possible; null otherwise.
|
Document |
asXml()
Get the result as a Document object if possible; null otherwise.
|
int |
compareTo(Result other) |
static Result |
parseResultXml(Node resultNode) |
static Result |
parseResultXml(Node resultNode,
String base) |
void |
toXml(Element resultElement) |
public String href
public String file
public String mimeType
public String name
public String from
public String nicename
public Long size
public String filename
public String prettyRelativeHref
public String relativeHref
public static Result parseResultXml(Node resultNode) throws Pipeline2Exception
Pipeline2Exception
public static Result parseResultXml(Node resultNode, String base) throws Pipeline2Exception
Pipeline2Exception
public int compareTo(Result other)
compareTo
in interface Comparable<Result>
public void toXml(Element resultElement)
public File asFile()
public String asText()
public Document asXml()
Copyright © 2012–2022 The DAISY Consortium. All rights reserved.