public class FileUploader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
logger
The logger.
|
Constructor and Description |
---|
FileUploader() |
Modifier and Type | Method and Description |
---|---|
byte[] |
doDownload(java.lang.String fileName)
Do download.
|
java.lang.String |
doUpload(byte[] bytes,
java.lang.String fileName)
Do upload.
|
java.util.List |
getDownloadList()
Gets the download list.
|
public java.lang.String doUpload(byte[] bytes, java.lang.String fileName) throws java.lang.Exception
bytes
- the datafileName
- the file namejava.lang.Exception
- the exceptionpublic java.util.List getDownloadList()
public byte[] doDownload(java.lang.String fileName)
fileName
- the file name