public class SmartFile
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static int |
SAVEAS_AUTO |
static int |
SAVEAS_PHYSICAL |
static int |
SAVEAS_VIRTUAL |
限定符和类型 | 方法和说明 |
---|---|
void |
fileToField(java.sql.ResultSet resultset,
java.lang.String s) |
byte |
getBinaryData(int i) |
byte[] |
getBytes() |
java.lang.String |
getContentDisp() |
java.lang.String |
getContentString() |
java.lang.String |
getContentType() |
protected int |
getEndData() |
java.lang.String |
getFieldName() |
java.lang.String |
getFileExt() |
java.lang.String |
getFileName() |
java.lang.String |
getFilePathName() |
int |
getSize() |
protected int |
getStartData() |
java.lang.String |
getSubTypeMIME() |
java.lang.String |
getTypeMIME() |
boolean |
isMissing() |
void |
saveAs(java.lang.String s) |
void |
saveAs(java.lang.String s,
int i) |
protected void |
setContentDisp(java.lang.String s) |
protected void |
setContentType(java.lang.String s) |
protected void |
setEndData(int i) |
protected void |
setFieldName(java.lang.String s) |
protected void |
setFileExt(java.lang.String s) |
protected void |
setFileName(java.lang.String s) |
protected void |
setFilePathName(java.lang.String s) |
protected void |
setIsMissing(boolean flag) |
protected void |
setParent(SmartUpload smartupload) |
protected void |
setSize(int i) |
protected void |
setStartData(int i) |
protected void |
setSubTypeMIME(java.lang.String s) |
protected void |
setTypeMIME(java.lang.String s) |
public static final int SAVEAS_AUTO
public static final int SAVEAS_VIRTUAL
public static final int SAVEAS_PHYSICAL
public void saveAs(java.lang.String s) throws java.io.IOException, SmartUploadException
java.io.IOException
SmartUploadException
public void saveAs(java.lang.String s, int i) throws java.io.IOException, SmartUploadException
java.io.IOException
SmartUploadException
public void fileToField(java.sql.ResultSet resultset, java.lang.String s) throws javax.servlet.ServletException, java.io.IOException, SmartUploadException, java.sql.SQLException
javax.servlet.ServletException
java.io.IOException
SmartUploadException
java.sql.SQLException
public boolean isMissing()
public java.lang.String getFieldName()
public java.lang.String getFileName()
public java.lang.String getFilePathName()
public java.lang.String getFileExt()
public java.lang.String getContentType()
public java.lang.String getContentDisp()
public java.lang.String getContentString()
public java.lang.String getTypeMIME() throws java.io.IOException
java.io.IOException
public java.lang.String getSubTypeMIME()
public int getSize()
protected int getStartData()
protected int getEndData()
protected void setParent(SmartUpload smartupload)
protected void setStartData(int i)
protected void setEndData(int i)
protected void setSize(int i)
protected void setIsMissing(boolean flag)
protected void setFieldName(java.lang.String s)
protected void setFileName(java.lang.String s)
protected void setFilePathName(java.lang.String s)
protected void setFileExt(java.lang.String s)
protected void setContentType(java.lang.String s)
protected void setContentDisp(java.lang.String s)
protected void setTypeMIME(java.lang.String s)
protected void setSubTypeMIME(java.lang.String s)
public byte getBinaryData(int i)
public byte[] getBytes()