net.trajano.twiff.sample.web
Class Upload

java.lang.Object
  extended by net.trajano.twiff.sample.web.Upload
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Upload_done

public class Upload
extends Object
implements Serializable

Sample with upload

Author:
Archimedes Trajano
See Also:
Serialized Form

Constructor Summary
Upload()
           
 
Method Summary
 byte[] getFile()
           
 String getName()
           
 void setFile(byte[] file)
           
 void setName(String name)
           
 String toString()
           
 String upload()
          Upload action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Upload

public Upload()
       throws IOException
Throws:
IOException
Method Detail

getFile

public final byte[] getFile()
Returns:
file

getName

public final String getName()
Returns:
the name

setFile

public final void setFile(byte[] file)
Parameters:
file - the file

setName

public final void setName(String name)
Parameters:
name - the name

upload

public final String upload()
Upload action

Returns:
upload_done

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2004-2005 trajano.net. All Rights Reserved.