java.lang.Object | +--javax.activation.FileDataSourceAll Implemented Interfaces:
FileDataSource(File file) Constructor. |
FileDataSource(String name) Constructor. |
String | |
File | getFile() Returns the underlying file. |
InputStream | |
String | getName() |
OutputStream | |
void | setFileTypeMap(FileTypeMap map) Sets the file type map to use to determine the content type of the file. |
public FileDataSource(File file)
public FileDataSource(String name)
public String getContentType()
public File getFile()
public InputStream getInputStream()
public String getName()
public OutputStream getOutputStream()
public void setFileTypeMap(FileTypeMap map)