|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectro.polak.littleServlet.UploadedFile
public class UploadedFile
Uploaded file
Java Little Web Server Homepage
| Constructor Summary | |
|---|---|
UploadedFile(MultipartHeaders h,
java.io.File file)
Constructs uploaded file |
|
| Method Summary | |
|---|---|
boolean |
destroy()
Deletes temporary file if unused |
java.lang.String |
getFileName()
Returns the name of uploaded file |
java.lang.String |
getName()
Returns the HTML form name |
boolean |
moveTo(java.io.File dest)
Moves the uploaded file to the specified destination |
boolean |
moveTo(java.lang.String path)
Moves the uploaded file to the specified destination |
long |
size()
Returns the size (length) of uploaded file in bytes |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UploadedFile(MultipartHeaders h,
java.io.File file)
h - multipart headersfile - uploaded file (temp)| Method Detail |
|---|
public boolean moveTo(java.lang.String path)
path - file destination
public boolean moveTo(java.io.File dest)
dest - file destination
public boolean destroy()
public java.lang.String getName()
public java.lang.String getFileName()
public long size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||