Example usage for Java javax.activation FileDataSource fields, constructors, methods, implement or subclass
The text is from its open source code.
FileDataSource(File file) Creates a FileDataSource from a File object. | |
FileDataSource(String name) Creates a FileDataSource from the specified path name. |
String | getContentType() This method returns the MIME type of the data in the form of a string. |
File | getFile() Return the File object that corresponds to this FileDataSource. |
InputStream | getInputStream() This method will return an InputStream representing the the data and will throw an IOException if it can not do so. |
String | getName() Return the name of this object. |
void | setFileTypeMap(FileTypeMap map) Set the FileTypeMap to use with this FileDataSource |
String | toString() Returns a string representation of the object. |