Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.content.form
Class FileForm  view FileForm download FileForm.java

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended bycom.RuntimeCollective.webapps.form.DataTypeForm
          extended bycom.RuntimeCollective.content.form.ContentForm
              extended bycom.RuntimeCollective.content.form.FileForm
All Implemented Interfaces:
com.RuntimeCollective.webapps.form.BeanForm, java.io.Serializable

public abstract class FileForm
extends ContentForm

Represents the information stored in a File.

By default, no validation is performed.

Version:
$Id: FileForm.java,v 1.4 2003/09/30 15:12:46 joe Exp $

Field Summary
private  int bytesRead
           
private  boolean eof
           
private  org.apache.struts.upload.FormFile file
           
private  byte[] fileData
           
 
Fields inherited from class com.RuntimeCollective.content.form.ContentForm
 
Fields inherited from class com.RuntimeCollective.webapps.form.DataTypeForm
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
FileForm()
           
 
Method Summary
 boolean fileLongerThan(int size)
           
 org.apache.struts.upload.FormFile getFile()
          get the file.
 byte[] getFileData(int maxBytes)
           
private  void initialise()
           
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Reset all properties to their default values.
 void setFile(org.apache.struts.upload.FormFile file)
          set the file.
 
Methods inherited from class com.RuntimeCollective.content.form.ContentForm
getDescription, getId, getTitle, setDescription, setId, setTitle
 
Methods inherited from class com.RuntimeCollective.webapps.form.DataTypeForm
getActionFormName, getActionFormPrefix, getFormAction, setActionFormName, setFormAction
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.RuntimeCollective.webapps.form.BeanForm
populateBean, populateForm
 

Field Detail

file

private org.apache.struts.upload.FormFile file

fileData

private byte[] fileData

bytesRead

private int bytesRead

eof

private boolean eof
Constructor Detail

FileForm

public FileForm()
Method Detail

getFile

public org.apache.struts.upload.FormFile getFile()
get the file.


setFile

public void setFile(org.apache.struts.upload.FormFile file)
set the file.


getFileData

public byte[] getFileData(int maxBytes)

fileLongerThan

public boolean fileLongerThan(int size)

reset

public void reset(org.apache.struts.action.ActionMapping mapping,
                  javax.servlet.http.HttpServletRequest request)
Reset all properties to their default values.

Specified by:
reset in interface com.RuntimeCollective.webapps.form.BeanForm
Overrides:
reset in class ContentForm

initialise

private void initialise()