public class UploadFile
extends java.lang.Object
implements javax.servlet.http.HttpSessionBindingListener
Constructor and Description |
---|
UploadFile() |
UploadFile(java.lang.String fileName,
java.lang.String contentType,
java.io.ByteArrayOutputStream outputStream) |
UploadFile(java.lang.String fileName,
java.lang.String fullFileName,
java.lang.String contentType,
java.io.ByteArrayOutputStream outputStream) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
void |
deleteFileOnDisk() |
java.lang.String |
getAbsoluteFileName() |
java.lang.String |
getDirectoryName() |
java.lang.String |
getFileName()
getFileName()
This function can be called after writing the file to the disk
to get the file name.
|
java.io.ByteArrayOutputStream |
getFileOutputStream() |
java.lang.String |
getFullFileName() |
boolean |
isDeleted() |
void |
save() |
void |
setDirectoryName(java.lang.String directoryName) |
void |
setFileName(java.lang.String fileName) |
void |
setFullFileName(java.lang.String fileName) |
void |
setProcessing(boolean processing) |
void |
undelete() |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event) |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event) |
void |
writeToDisk() |
void |
writeToDisk(boolean removespace) |
void |
writeToDisk(boolean removespace,
boolean removepercent) |
public UploadFile()
public UploadFile(java.lang.String fileName, java.lang.String contentType, java.io.ByteArrayOutputStream outputStream)
public UploadFile(java.lang.String fileName, java.lang.String fullFileName, java.lang.String contentType, java.io.ByteArrayOutputStream outputStream)
public void setFileName(java.lang.String fileName)
public void setFullFileName(java.lang.String fileName)
public java.io.ByteArrayOutputStream getFileOutputStream()
public java.lang.String getFileName()
public java.lang.String getFullFileName()
public java.lang.String getAbsoluteFileName()
public void setDirectoryName(java.lang.String directoryName)
public java.lang.String getDirectoryName()
public void setProcessing(boolean processing)
public void delete()
public void undelete()
public boolean isDeleted()
public void save()
public void deleteFileOnDisk()
public void writeToDisk() throws java.io.IOException, MXApplicationException
java.io.IOException
MXApplicationException
public void writeToDisk(boolean removespace) throws java.io.IOException, MXApplicationException
java.io.IOException
MXApplicationException
public void writeToDisk(boolean removespace, boolean removepercent) throws java.io.IOException, MXApplicationException
java.io.IOException
MXApplicationException
public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener