javax.activation
public class FileDataSource extends Object implements DataSource
| Constructor Summary | |
|---|---|
| FileDataSource(File file)
Constructor. | |
| FileDataSource(String name)
Constructor. | |
| Method Summary | |
|---|---|
| String | getContentType() |
| File | getFile()
Returns the underlying file. |
| InputStream | getInputStream() |
| String | getName() |
| OutputStream | getOutputStream() |
| void | setFileTypeMap(FileTypeMap map)
Sets the file type map to use to determine the content type of the file. |
Parameters: file the underlying file to use
Parameters: name the path to the underlying file to use
Parameters: map the file type map