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 aFile
for 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.Object
clone()
void
delete()
Deletes the file.boolean
equals(java.lang.Object obj)
java.io.File
getFile()
Get the file.java.io.InputStream
getInputStream()
long
getLength()
int
hashCode()
static void
main(java.lang.String[] args)
void
setFile(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:
getInputStream
in classUpload
- Throws:
UploadException
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
-
main
public static void main(java.lang.String[] args)
-
-