|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavax.activation.FileDataSource
public class FileDataSource
| Constructor Summary | |
|---|---|
FileDataSource(java.io.File file)
Creates a FileDataSource from a File object |
|
FileDataSource(java.lang.String name)
Creates a FileDataSource from the specified path name |
|
| Method Summary | |
|---|---|
java.lang.String |
getContentType()
Returns the content type of the data source |
java.io.File |
getFile()
Returns the data source file |
java.io.InputStream |
getInputStream()
Return the InputStream obtained from the data source |
java.lang.String |
getName()
Returns the name of the data source object |
java.io.OutputStream |
getOutputStream()
Return the OutputStream obtained from the data source |
void |
setFileTypeMap(FileTypeMap map)
Sets the FileTypeMap associated with the data source |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileDataSource(java.io.File file)
public FileDataSource(java.lang.String name)
| Method Detail |
|---|
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface DataSourcejava.io.IOException
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface DataSourcejava.io.IOExceptionpublic java.lang.String getContentType()
getContentType in interface DataSourcepublic java.lang.String getName()
getName in interface DataSourcepublic java.io.File getFile()
public void setFileTypeMap(FileTypeMap map)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||