public class Summary
extends com.lf.commons.web.msg.XMLMessage
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SUMMARY_DOCNAME
The name of the root element.
|
static java.lang.String |
SUMMARY_DTD
The underlying DTD.
|
static java.lang.String |
SUMMARY_VERSION_1_0
The underlying DTD version.
|
static java.lang.String |
SUMMARY_VERSION_1_1
The underlying DTD version.
|
Constructor and Description |
---|
Summary()
Constructs an instance based on a given DTD.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDigestResults(boolean intermediates,
java.lang.Object parentdir,
java.util.Vector<DigestResult> collector,
boolean pgpsigs,
boolean uppercase)
Extracts all contained digests optionally including intermediates.
|
java.io.File |
getFirstTargetFile(java.io.File parentdir)
Provides the first target in this document.
|
org.apache.commons.vfs2.FileObject |
getFirstTargetURL(org.apache.commons.vfs2.FileObject parentdir)
Provides the first target in this document.
|
int |
getTargetCount()
Provides the number of target entries in this document.
|
java.lang.String |
getVersion()
Provides the summary file version.
|
canProcess, getAttribute, getAttributeValue, getContents, getDocument, getDTD, getElement, getElements, getElementValue, getEncoding, getIntFunctionResult, isArmed, isValid, printDocument, read, read, setEncoding, setFormat, write, write
public static final java.lang.String SUMMARY_VERSION_1_0
public static final java.lang.String SUMMARY_VERSION_1_1
public static final java.lang.String SUMMARY_DTD
public static final java.lang.String SUMMARY_DOCNAME
public java.lang.String getVersion()
null
public java.lang.String getDigestResults(boolean intermediates, java.lang.Object parentdir, java.util.Vector<DigestResult> collector, boolean pgpsigs, boolean uppercase)
DigestChecker
class will download and check the URL.
intermediates
- Include intermediates?parentdir
- The parental directory or URL folder to check relative pathscollector
- Container for digestspgpsigs
- Extract PGP signatures?uppercase
- Base64 values in upper-case hex?null
if successfuljava.lang.IllegalArgumentException
- If a parameter is invalidpublic int getTargetCount()
public java.io.File getFirstTargetFile(java.io.File parentdir)
parentdir
- The parental directorynull
otherwisepublic org.apache.commons.vfs2.FileObject getFirstTargetURL(org.apache.commons.vfs2.FileObject parentdir)
parentdir
- The parental directorynull
otherwiseCopyright © 2005-2015 Leisenfels UG. All rights reserved.