|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 | |
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()
|
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(OutputStream out)
Internal method to write this file part; doesn't check to see if it has contents first. |
long |
writeTo(File fileOrDirectory)
Write this file part to a file or directory. |
long |
writeTo(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 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 InputStream getInputStream()
0
bytes in the input stream.
public long writeTo(File fileOrDirectory)
throws IOException
fileOrDirectory - IOException -
public long writeTo(OutputStream out)
throws IOException
out - IOException - public boolean isFile()
true to indicate this part is a file.
isFile in class AbstractPart
protected long write(OutputStream out)
throws IOException
out - IOException - if an input or output exception has occurred.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||