javazoom.upload.parsing
Class StrutsUploadFile

java.lang.Object
  extended byjavazoom.upload.UploadFile
      extended byjavazoom.upload.parsing.StrutsUploadFile
All Implemented Interfaces:
java.io.Serializable

public class StrutsUploadFile
extends UploadFile

UploadFile implementation for matching to Struts parser.

See Also:
Serialized Form

Constructor Summary
StrutsUploadFile()
           
StrutsUploadFile(java.lang.String tmpFilename)
          Construtor.
 
Method Summary
 byte[] getData()
          Return binary data.
 java.io.InputStream getInpuStream()
          Gets InputStream from temporary file.
 java.lang.String getTmpFilename()
          Gets temporary filename from the Struts cache.
 void reset()
          Deletes temporary file.
 
Methods inherited from class javazoom.upload.UploadFile
getContentType, getFileName, getFileSize, saveAs, setContentType, setFileName, setFileSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrutsUploadFile

public StrutsUploadFile()

StrutsUploadFile

public StrutsUploadFile(java.lang.String tmpFilename)
Construtor.

Parameters:
tmpFilename - generated by Struts parser.
Method Detail

getData

public byte[] getData()
Return binary data.

Specified by:
getData in class UploadFile
Returns:
Array of byte

reset

public void reset()
Deletes temporary file.

Specified by:
reset in class UploadFile

getInpuStream

public java.io.InputStream getInpuStream()
Gets InputStream from temporary file.

Specified by:
getInpuStream in class UploadFile
Returns:
InputStream

getTmpFilename

public java.lang.String getTmpFilename()
Gets temporary filename from the Struts cache.

Returns:
Struts tmp filename