Java javax.activation FileDataSource fields, constructors, methods, implement or subclass

Example usage for Java javax.activation FileDataSource fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.activation FileDataSource.

The text is from its open source code.

Subclass

javax.activation.FileDataSource has subclasses.
Click this link to see all its subclasses.

Constructor

FileDataSource(File file)
Creates a FileDataSource from a File object.
FileDataSource(String name)
Creates a FileDataSource from the specified path name.

Method

StringgetContentType()
This method returns the MIME type of the data in the form of a string.
FilegetFile()
Return the File object that corresponds to this FileDataSource.
InputStreamgetInputStream()
This method will return an InputStream representing the the data and will throw an IOException if it can not do so.
StringgetName()
Return the name of this object.
voidsetFileTypeMap(FileTypeMap map)
Set the FileTypeMap to use with this FileDataSource
StringtoString()
Returns a string representation of the object.