Package ipsk.net
Class UploadFile
- java.lang.Object
-
- ipsk.net.Upload
-
- ipsk.net.UploadFile
-
- All Implemented Interfaces:
java.io.Serializable
public class UploadFile extends Upload implements java.io.Serializable
Holds aFilefor upload to an URL.- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UploadFile()UploadFile(java.io.File vb, java.net.URL url)Create an upload object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()voiddelete()Deletes the file.booleanequals(java.lang.Object obj)java.io.FilegetFile()Get the file.java.io.InputStreamgetInputStream()longgetLength()inthashCode()static voidmain(java.lang.String[] args)voidsetFile(java.io.File f)Set the file.-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from class ipsk.net.Upload
createChecksum, getChecksum, getChecksumDigest, getComment, getFailedUploadAttempts, getId, getMimeType, getName, getStatus, getUrl, incFailedAttemptsCounter, setComment, setFailedUploadAttempts, setId, setMimeType, setName, setStatus, setUrl, toString
-
-
-
-
Method Detail
-
getFile
public java.io.File getFile()
Get the file.- Returns:
- file
-
setFile
public void setFile(java.io.File f)
Set the file.- Parameters:
f- file
-
getInputStream
public java.io.InputStream getInputStream() throws UploadException- Specified by:
getInputStreamin classUpload- Throws:
UploadException
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
main
public static void main(java.lang.String[] args)
-
-