|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.activation.FileDataSource
public class FileDataSource
| 构造方法摘要 | |
|---|---|
FileDataSource(File file)
Creates a FileDataSource from a File object |
|
FileDataSource(String name)
Creates a FileDataSource from the specified path name |
|
| 方法摘要 | |
|---|---|
String |
getContentType()
Returns the content type of the data source |
File |
getFile()
Returns the data source file |
InputStream |
getInputStream()
Return the InputStream obtained from the data source |
String |
getName()
Returns the name of the data source object |
OutputStream |
getOutputStream()
Return the OutputStream obtained from the data source |
void |
setFileTypeMap(FileTypeMap map)
Sets the FileTypeMap associated with the data source |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public FileDataSource(File file)
public FileDataSource(String name)
| 方法详细信息 |
|---|
public InputStream getInputStream()
throws IOException
DataSource 中的 getInputStreamIOException
public OutputStream getOutputStream()
throws IOException
DataSource 中的 getOutputStreamIOExceptionpublic String getContentType()
DataSource 中的 getContentTypepublic String getName()
DataSource 中的 getNamepublic File getFile()
public void setFileTypeMap(FileTypeMap map)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||