public class FileObject extends java.lang.Object implements FormObject
| Constructor and Description |
|---|
FileObject(java.io.File file,
java.lang.String name) |
FileObject(java.lang.String filename,
byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbytesFromFilepublic FileObject(java.io.File file,
java.lang.String name)
throws java.io.IOException
java.io.IOExceptionpublic FileObject(java.lang.String filename,
byte[] bytes)
public byte[] getBytes()
throws java.io.IOException
getBytes in interface FormObjectjava.io.IOException - if serializing has gone wrong