|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsoftware.scanner.UploadEncBallots
public class UploadEncBallots
Given a folder with scanned ballots, it upload them to a webserver
| Constructor Summary | |
|---|---|
UploadEncBallots(java.lang.String password,
java.lang.String host)
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
debug method |
static java.lang.String |
prepareXMLforUpload(java.lang.String xml)
Replaces the characters from an xml that are invalid to appear in an web address with escape characters. |
void |
upload(java.lang.String folder)
Uploads a file or all the files in a folder (recursevly). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UploadEncBallots(java.lang.String password,
java.lang.String host)
throws java.security.NoSuchAlgorithmException,
javax.crypto.NoSuchPaddingException,
java.security.InvalidKeyException,
javax.xml.parsers.ParserConfigurationException
password - - can be null or have a lenght of zero, in which case the ballots are considered unencryptedhost - - the host where the ballots should uploaded
java.security.NoSuchAlgorithmException
javax.crypto.NoSuchPaddingException
java.security.InvalidKeyException
javax.xml.parsers.ParserConfigurationException| Method Detail |
|---|
public void upload(java.lang.String folder)
throws java.lang.Exception
folder -
java.lang.Exceptionpublic static java.lang.String prepareXMLforUpload(java.lang.String xml)
xml -
public static void main(java.lang.String[] args)
throws java.lang.Exception
args -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||