|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.io.FileTransfer
public class FileTransfer
One of the 2 ways you can receive uploaded files from a DWR enabled page is
to expose a method with a FileTransfer parameter.
The other is to expose a method with an InputStream parameter.
| Constructor Summary | |
|---|---|
FileTransfer(java.lang.String name,
java.lang.String mimeType,
byte[] data)
A ctor for the 3 things browsers tell us about the uploaded file |
|
FileTransfer(java.lang.String name,
java.lang.String mimeType,
java.io.InputStream inputStream)
A ctor for the 3 things browsers tell us about the uploaded file |
|
| Method Summary | |
|---|---|
java.io.InputStream |
getInputStream()
Returns an InputStream that can be used to retrieve the contents of the file. |
java.lang.String |
getMimeType()
Returns the content type passed by the browser or null if not defined. |
java.lang.String |
getName()
Returns the original filename in the client's file-system, as provided by the browser (or other client software). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileTransfer(java.lang.String name,
java.lang.String mimeType,
java.io.InputStream inputStream)
name - The remote source filenamemimeType - The mime type passed in by the browserinputStream - A means by which the data can be read
public FileTransfer(java.lang.String name,
java.lang.String mimeType,
byte[] data)
name - The remote source filenamemimeType - The mime type passed in by the browserdata - The data to be transfered| Method Detail |
|---|
public java.lang.String getMimeType()
public java.io.InputStream getInputStream()
public java.lang.String getName()
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||