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