public class DigesterURLWriteUtils
extends java.lang.Object
Constructor and Description |
---|
DigesterURLWriteUtils()
Constructor method for i18n purposes only.
|
Modifier and Type | Method and Description |
---|---|
static int |
writeBSDMultiple(org.apache.commons.vfs2.FileObject directory,
java.util.Vector<org.apache.commons.vfs2.FileObject> childs,
java.util.Vector<DigestResult> digests,
java.util.Vector<URLResult> urls,
java.util.Vector<java.lang.String> algos,
java.util.Vector<java.lang.String> suffices,
boolean overwrite,
java.lang.String summary,
java.util.Vector<java.lang.String[]> messages,
boolean verbose,
java.lang.String comment,
com.lf.vfslib.net.VFSConnection vfsconn)
Generates BSD summary URLs containing the digests for the given target and algorithm.
|
static int |
writeBSDSingle(org.apache.commons.vfs2.FileObject target,
java.util.Vector<DigestResult> digests,
java.util.Vector<URLResult> urls,
java.lang.String algorithm,
java.lang.String suffix,
boolean overwrite,
boolean timestamp,
java.util.Vector<java.lang.String[]> messages,
boolean verbose,
java.lang.String comment,
com.lf.vfslib.net.VFSConnection vfsconn)
Generates a BSD URL containing the digest for the given target.
|
static int |
writeGNUMultiple(org.apache.commons.vfs2.FileObject directory,
java.util.Vector<org.apache.commons.vfs2.FileObject> childs,
java.util.Vector<DigestResult> digests,
java.util.Vector<URLResult> urls,
java.util.Vector<java.lang.String> algos,
java.util.Vector<java.lang.String> suffices,
boolean overwrite,
java.lang.String summary,
java.util.Vector<java.lang.String[]> messages,
boolean verbose,
java.lang.String comment,
com.lf.vfslib.net.VFSConnection vfsconn)
Generates GNU summary URLs containing the digests for the given target and algorithm.
|
static int |
writeGNUSingle(org.apache.commons.vfs2.FileObject target,
java.util.Vector<DigestResult> digests,
java.util.Vector<URLResult> urls,
java.lang.String algorithm,
java.lang.String suffix,
boolean overwrite,
boolean timestamp,
java.util.Vector<java.lang.String[]> messages,
boolean verbose,
java.lang.String comment,
com.lf.vfslib.net.VFSConnection vfsconn)
Generates a GNU URL containing the digest for the given target.
|
static int |
writePGPSingle(org.apache.commons.vfs2.FileObject target,
java.util.Vector<DigestResult> digests,
java.util.Vector<URLResult> urls,
boolean ascii,
java.lang.String suffix,
boolean overwrite,
boolean timestamp,
java.util.Vector<java.lang.String[]> messages,
boolean verbose,
java.lang.String comment)
Generates a PGP file containing the signatures for the given target.
|
static int |
writeXML(java.io.OutputStream ostream,
org.apache.commons.vfs2.FileObject[] urls,
java.util.Vector<DigestResult> digests,
boolean abspath,
org.apache.commons.vfs2.FileObject parent,
java.lang.String format,
java.lang.String xmlcomment,
java.lang.String urlvalue,
boolean includepgpsig,
boolean includekeyid,
boolean includekeyname,
boolean includekeyemail,
boolean includekeyurl,
com.lf.commons.crypto.CryptoManager cryptomanager)
Saves the message digests with the specified byte based XML output stream.
|
static int |
writeXMLMultiple(org.apache.commons.vfs2.FileObject directory,
java.util.Vector<org.apache.commons.vfs2.FileObject> childs,
java.util.Vector<DigestResult> digests,
java.util.Vector<URLResult> urls,
boolean overwrite,
java.lang.String summary,
java.lang.String extension,
boolean abspath,
java.lang.String format,
java.lang.String xmlcomment,
java.util.Vector<java.lang.String[]> messages,
boolean verbose,
java.lang.String urlvalue,
boolean includepgpsig,
boolean includekeyid,
boolean includekeyname,
boolean includekeyemail,
boolean includekeyurl,
java.lang.String comment,
com.lf.commons.crypto.CryptoManager cryptomanager,
com.lf.vfslib.net.VFSConnection vfsconn)
Generates an XML URL containing the digest for the given target.
|
static int |
writeXMLSingle(org.apache.commons.vfs2.FileObject target,
java.util.Vector<DigestResult> digests,
java.util.Vector<URLResult> urls,
java.lang.String suffix,
boolean overwrite,
boolean abspath,
java.lang.String format,
java.lang.String xmlcomment,
boolean timestamp,
java.util.Vector<java.lang.String[]> messages,
boolean verbose,
java.lang.String urlvalue,
boolean includepgpsig,
boolean includekeyid,
boolean includekeyname,
boolean includekeyemail,
boolean includekeyurl,
java.lang.String comment,
com.lf.commons.crypto.CryptoManager cryptomanager,
com.lf.vfslib.net.VFSConnection vfsconn)
Generates an XML URL containing the digest for the given target.
|
public DigesterURLWriteUtils() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic static int writeXML(java.io.OutputStream ostream, org.apache.commons.vfs2.FileObject[] urls, java.util.Vector<DigestResult> digests, boolean abspath, org.apache.commons.vfs2.FileObject parent, java.lang.String format, java.lang.String xmlcomment, java.lang.String urlvalue, boolean includepgpsig, boolean includekeyid, boolean includekeyname, boolean includekeyemail, boolean includekeyurl, com.lf.commons.crypto.CryptoManager cryptomanager) throws java.io.IOException
ostream
- Byte based XML output stream with a certain encodingurls
- Container with target files to be storeddigests
- Container for result objects with message digestsabspath
- Write absolute paths?parent
- Parent directory for relative pathsformat
- Digest format (hex/base64)xmlcomment
- Optional XML commenturlvalue
- Optional URL element, omitted if null
includepgpsig
- Include PGP signatures?includekeyid
- Include PGP key IDs?includekeyname
- Include PGP key names?includekeyemail
- Include PGP key e-mail?includekeyurl
- Include PGP key URLs?cryptomanager
- The crypto managerjava.io.IOException
- An I/O error occurredpublic static int writeGNUSingle(org.apache.commons.vfs2.FileObject target, java.util.Vector<DigestResult> digests, java.util.Vector<URLResult> urls, java.lang.String algorithm, java.lang.String suffix, boolean overwrite, boolean timestamp, java.util.Vector<java.lang.String[]> messages, boolean verbose, java.lang.String comment, com.lf.vfslib.net.VFSConnection vfsconn)
target
- Target for generationdigests
- Container for result objects with message digestsurls
- Container for result objects with digest URLsalgorithm
- Algorithm to usesuffix
- URL extension to useoverwrite
- Overwrite existing URLs?timestamp
- Apply target URL timestamp?messages
- Collector for verbose messages (optional)verbose
- Create verbose messagescomment
- The default commentvfsconn
- The connection (optionalpublic static int writeBSDSingle(org.apache.commons.vfs2.FileObject target, java.util.Vector<DigestResult> digests, java.util.Vector<URLResult> urls, java.lang.String algorithm, java.lang.String suffix, boolean overwrite, boolean timestamp, java.util.Vector<java.lang.String[]> messages, boolean verbose, java.lang.String comment, com.lf.vfslib.net.VFSConnection vfsconn)
target
- Target for generationdigests
- Container for result objects with message digestsurls
- Container for result objects with digest URLsalgorithm
- Algorithm to usesuffix
- URL extension to useoverwrite
- Overwrite existing URLs?timestamp
- Apply target URL timestamp?messages
- Collector for verbose messages (optional)verbose
- Create verbose messagescomment
- The default commentvfsconn
- The connection (optionalpublic static int writePGPSingle(org.apache.commons.vfs2.FileObject target, java.util.Vector<DigestResult> digests, java.util.Vector<URLResult> urls, boolean ascii, java.lang.String suffix, boolean overwrite, boolean timestamp, java.util.Vector<java.lang.String[]> messages, boolean verbose, java.lang.String comment)
target
- Target for generationdigests
- Container for result objects with message digestsurls
- Container for result objects with digest URLsascii
- Create ASCII-armored files, binary otherwisesuffix
- File extension to useoverwrite
- Overwrite existing URLs?timestamp
- Apply target URL timestamp?messages
- Collector for verbose messages (optional)verbose
- Create verbose messagescomment
- The default commentpublic static int writeXMLSingle(org.apache.commons.vfs2.FileObject target, java.util.Vector<DigestResult> digests, java.util.Vector<URLResult> urls, java.lang.String suffix, boolean overwrite, boolean abspath, java.lang.String format, java.lang.String xmlcomment, boolean timestamp, java.util.Vector<java.lang.String[]> messages, boolean verbose, java.lang.String urlvalue, boolean includepgpsig, boolean includekeyid, boolean includekeyname, boolean includekeyemail, boolean includekeyurl, java.lang.String comment, com.lf.commons.crypto.CryptoManager cryptomanager, com.lf.vfslib.net.VFSConnection vfsconn)
target
- Target for generationdigests
- Container for result objects with message digestsurls
- Container for result objects with digest URLssuffix
- URL extension to useoverwrite
- Overwrite existing URLs?abspath
- Write absolute paths?format
- The digest format (hex/base64)xmlcomment
- Optional XML commenttimestamp
- Apply target URL timestamp?messages
- Collector for verbose messages (optional)verbose
- Create verbose messagesurlvalue
- Optional URL elementincludepgpsig
- Include PGP signatures?includekeyid
- Include PGP key IDs?includekeyname
- Include PGP key names?includekeyemail
- Include PGP key e-mail?includekeyurl
- Include PGP key URLs?comment
- The default commentcryptomanager
- The crypto managervfsconn
- The connection (optionalpublic static int writeGNUMultiple(org.apache.commons.vfs2.FileObject directory, java.util.Vector<org.apache.commons.vfs2.FileObject> childs, java.util.Vector<DigestResult> digests, java.util.Vector<URLResult> urls, java.util.Vector<java.lang.String> algos, java.util.Vector<java.lang.String> suffices, boolean overwrite, java.lang.String summary, java.util.Vector<java.lang.String[]> messages, boolean verbose, java.lang.String comment, com.lf.vfslib.net.VFSConnection vfsconn)
directory
- Parent directorychilds
- Container with child targets (all algorithms)digests
- Container for result objects with message digestsurls
- Container for result objects with digest URLsalgos
- Pre-processed set of algorithmssuffices
- Pre-processed set of extensionsoverwrite
- Overwrite existing URLs?summary
- The name of the summary URLmessages
- Collector for verbose messages (optional)verbose
- Create verbose messagescomment
- The default commentvfsconn
- The connection (optionalpublic static int writeBSDMultiple(org.apache.commons.vfs2.FileObject directory, java.util.Vector<org.apache.commons.vfs2.FileObject> childs, java.util.Vector<DigestResult> digests, java.util.Vector<URLResult> urls, java.util.Vector<java.lang.String> algos, java.util.Vector<java.lang.String> suffices, boolean overwrite, java.lang.String summary, java.util.Vector<java.lang.String[]> messages, boolean verbose, java.lang.String comment, com.lf.vfslib.net.VFSConnection vfsconn)
directory
- Parent directorychilds
- Container with child targets (all algorithms)digests
- Container for result objects with message digestsurls
- Container for result objects with digest URLsalgos
- Pre-processed set of algorithmssuffices
- Pre-processed set of extensionsoverwrite
- Overwrite existing URLs?summary
- The name of the summary URLmessages
- Collector for verbose messages (optional)verbose
- Create verbose messagescomment
- The default commentvfsconn
- The connection (optionalpublic static int writeXMLMultiple(org.apache.commons.vfs2.FileObject directory, java.util.Vector<org.apache.commons.vfs2.FileObject> childs, java.util.Vector<DigestResult> digests, java.util.Vector<URLResult> urls, boolean overwrite, java.lang.String summary, java.lang.String extension, boolean abspath, java.lang.String format, java.lang.String xmlcomment, java.util.Vector<java.lang.String[]> messages, boolean verbose, java.lang.String urlvalue, boolean includepgpsig, boolean includekeyid, boolean includekeyname, boolean includekeyemail, boolean includekeyurl, java.lang.String comment, com.lf.commons.crypto.CryptoManager cryptomanager, com.lf.vfslib.net.VFSConnection vfsconn)
directory
- Parent directorychilds
- Container with child targets (all algorithms)digests
- Container for result objects with message digestsurls
- Container for result objects with digest URLsoverwrite
- Overwrite existing URLs?summary
- The name of the summary URLextension
- The extension of the summary URLabspath
- Write absolute paths?format
- The digest format (hex/base64)xmlcomment
- Optional XML commentmessages
- Collector for verbose messages (optional)verbose
- Create verbose messagesurlvalue
- Optional URL elementincludepgpsig
- Include PGP signatures?includekeyid
- Include PGP key IDs?includekeyname
- Include PGP key names?includekeyemail
- Include PGP key e-mail?includekeyurl
- Include PGP key URLs?comment
- The default commentcryptomanager
- The crypto managervfsconn
- The connection (optionalCopyright © 2005-2015 Leisenfels UG. All rights reserved.