|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.melati.servlet.BaseFileDataAdaptor
org.melati.servlet.TemporaryFileDataAdaptor
public class TemporaryFileDataAdaptor
Save uploaded files in a temporary file which is deleted when the JVM exits.
| Field Summary |
|---|
| Fields inherited from class org.melati.servlet.BaseFileDataAdaptor |
|---|
BUFSIZE, field, file, url |
| Constructor Summary | |
|---|---|
TemporaryFileDataAdaptor()
Constructor. |
|
TemporaryFileDataAdaptor(java.lang.String temporaryFileName)
Constructor specifying temporary file name. |
|
| Method Summary | |
|---|---|
protected java.io.File |
calculateLocalFile()
|
protected java.lang.String |
calculateURL()
Return a URL to the saved file, null if not appropriate. |
| Methods inherited from class org.melati.servlet.BaseFileDataAdaptor |
|---|
getData, getFile, getSize, getURL, readData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TemporaryFileDataAdaptor()
public TemporaryFileDataAdaptor(java.lang.String temporaryFileName)
temporaryFileName - the temporary fle name ot use| Method Detail |
|---|
protected java.io.File calculateLocalFile()
calculateLocalFile in class BaseFileDataAdaptorprotected java.lang.String calculateURL()
BaseFileDataAdaptor
calculateURL in class BaseFileDataAdaptor
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||