com.sssw.shr.page
Class AgpFileUploadEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.sssw.shr.page.AgpFileUploadEvent
- All Implemented Interfaces:
- Serializable
- public class AgpFileUploadEvent
- extends EventObject
Custom event for FileUpload page controls.
- See Also:
- Serialized Form
Method Summary |
byte[] |
getContent()
Returns the file contents as an array of bytes. |
String |
getContentType()
Returns the MIME-type string that describes the data being uploaded. |
String |
getOriginalPath()
Returns the Pathname that was specified to the browser. |
AgpFileUploadEvent
public AgpFileUploadEvent()
getOriginalPath
public final String getOriginalPath()
- Returns the Pathname that was specified to the browser.
- See Also:
AgpFileUploadEvent.getContent()
,
AgpFileUploadEvent.getContentType()
getContentType
public final String getContentType()
- Returns the MIME-type string that describes the data being uploaded.
This string is generated by the browser based on the file that is chosen.
- See Also:
AgpFileUploadEvent.getContent()
,
AgpFileUploadEvent.getOriginalPath()
getContent
public final byte[] getContent()
- Returns the file contents as an array of bytes.
The size of the byte array is the size of the file contents.
- Usage:
If the filename was invalid, a zero-length byte
will be returned.
- See Also:
AgpFileUploadEvent.getContentType()
,
AgpFileUploadEvent.getOriginalPath()