|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjform.html.MultipartRequest.File
public static final class MultipartRequest.File
The class MultipartRequest.File encapsulates uploaded files.
Objects of this class are the values of file parameters. This
implementation saves the data as temporary files in the directory
specified by the system property java.io.tmpdir.
| Method Summary | |
|---|---|
java.io.InputStream |
getInputStream()
Gets an input stream to read the contents of this object. |
long |
getLength()
Gets the length of this file. |
java.lang.String |
getName()
Gets the original file name, as sent by the request. |
java.lang.String |
getType()
Gets the MIME type of the file, as sent by the client. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.io.InputStream getInputStream()
throws java.io.IOException
The input stream returned by a previous call to
getInputStream(), if any, is automatically closed.
java.io.IOException - if an error occurs while opening the input streampublic long getLength()
public java.lang.String getName()
Notice that the file name depends on the client's platform.
public java.lang.String getType()
Notice that, since MIME types are case insensitive, the type is always returned in lower case.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||