@Deprecated
public class BaseFileDataSource
extends java.lang.Object
implements javax.activation.DataSource
Modifier and Type | Field and Description |
---|---|
private File |
file
Deprecated.
|
private java.io.OutputStream |
os
Deprecated.
|
Constructor and Description |
---|
BaseFileDataSource(File file)
Deprecated.
Creates a new DataSourceObject for a file.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
Deprecated.
|
java.io.InputStream |
getInputStream()
Deprecated.
|
java.lang.String |
getName()
Deprecated.
|
java.io.OutputStream |
getOutputStream()
Deprecated.
|
private File file
private java.io.OutputStream os
public BaseFileDataSource(File file)
file
- A file in Basepublic java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.activation.DataSource
java.io.IOException
public java.lang.String getName()
getName
in interface javax.activation.DataSource
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.activation.DataSource
java.io.IOException