|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectcom.beetle.framework.web.controller.upload.FileObj
public class FileObj
Title: BeetleWeb
Description: 文件对象
Copyright: Copyright (c) 2005
Company: 甲壳虫软件
| 构造方法摘要 | |
|---|---|
FileObj(FileItem fi)
|
|
| 方法摘要 | |
|---|---|
void |
delete()
Deletes the underlying storage for a file item, including deleting any associated temporary disk file. |
byte[] |
get()
Returns the contents of the file item as an array of bytes. |
java.lang.String |
getFileName()
获取文件名(含路径) |
long |
getFileSize()
返回文件大小 |
java.io.InputStream |
getInputStream()
Returns an InputStream that can be used to retrieve the contents of the file. |
java.lang.String |
getNameWithoutPath()
获取文件名(不带路径) |
java.io.OutputStream |
getOutputStream()
Returns an OutputStream that can be used for storing the contents of the file. |
void |
write(java.io.File file)
A convenience method to write an uploaded item to disk |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public FileObj(FileItem fi)
| 方法详细信息 |
|---|
public java.lang.String getFileName()
public java.lang.String getNameWithoutPath()
public byte[] get()
public void delete()
public void write(java.io.File file)
throws java.lang.Exception
file - File
java.lang.Exception
public java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOExceptionpublic long getFileSize()
public java.io.OutputStream getOutputStream()
throws java.io.IOException
java.io.IOException
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||