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

Quick Search    Search Deep

com.RuntimeCollective.webapps.form
Class DBFileForm  view DBFileForm download DBFileForm.java

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

public abstract class DBFileForm
extends DataTypeForm

Represents the information stored in a DBFile.

By default, no validation is performed.

Version:
$Id: DBFileForm.java,v 1.3 2003/09/30 15:13:13 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.webapps.form.DataTypeForm
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
DBFileForm()
           
 
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.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

DBFileForm

public DBFileForm()
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 BeanForm
Overrides:
reset in class DataTypeForm

initialise

private void initialise()