|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.activation.FileDataSource
File Data Source.
Constructor Summary | |
FileDataSource(java.io.File file)
Create file data source |
|
FileDataSource(java.lang.String name)
Create file data source. |
Method Summary | |
java.lang.String |
getContentType()
Get content type. |
java.io.File |
getFile()
Get file. |
java.io.InputStream |
getInputStream()
Get input stream. |
java.lang.String |
getName()
Get name. |
java.io.OutputStream |
getOutputStream()
Get output stream. |
void |
setFileTypeMap(FileTypeMap map)
Set file type map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileDataSource(java.lang.String name)
name
- Filenamepublic FileDataSource(java.io.File file)
file
- File sourceMethod Detail |
public java.lang.String getName()
getName
in interface DataSource
public java.io.File getFile()
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface DataSource
java.io.IOException
- IO exception occurredpublic java.lang.String getContentType()
getContentType
in interface DataSource
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface DataSource
java.io.IOException
- IO exception occurredpublic void setFileTypeMap(FileTypeMap map)
map
- File type map
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |