|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.sapportals.wcm.util.mmparser.AbstractPart
|
+--com.sapportals.wcm.util.mmparser.FilePart
A FilePart is an upload part which represents a INPUT
TYPE="file" form parameter.
| Method Summary | |
java.lang.String |
getFileName()
Returns the name that the file was stored with on the remote system, or null if the user didn't enter a file to be uploaded. |
HeaderFields |
getHeader()
|
java.io.InputStream |
getInputStream()
Returns an input stream which contains the contents of the file supplied. |
boolean |
isFile()
Returns true to indicate this part is a file. |
void |
setHeader(HeaderFields header)
|
protected long |
write(java.io.OutputStream out)
Internal method to write this file part; doesn't check to see if it has contents first. |
long |
writeTo(java.io.File fileOrDirectory)
Write this file part to a file or directory. |
long |
writeTo(java.io.OutputStream out)
Write this file part to the given output stream. |
| Methods inherited from class com.sapportals.wcm.util.mmparser.AbstractPart |
getName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.lang.String getFileName()
null if the user didn't enter a file to be uploaded. Note:
this is not the same as the name of the form parameter used to transmit the
file; that is available from the getName method.null .public HeaderFields getHeader()
public void setHeader(HeaderFields header)
header - public java.io.InputStream getInputStream()
0
bytes in the input stream.
public long writeTo(java.io.File fileOrDirectory)
throws java.io.IOException
fileOrDirectory - java.io.IOException -
public long writeTo(java.io.OutputStream out)
throws java.io.IOException
out - java.io.IOException - public boolean isFile()
true to indicate this part is a file.isFile in class AbstractPart
protected long write(java.io.OutputStream out)
throws java.io.IOException
out - java.io.IOException - if an input or output exception has occurred.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||