public abstract class FilterDataSource extends AbstractDataSource
DataSource base class that wraps another
DataSource.APPLICATION_OCTET_STREAM, APPLICATION_XML, CONTENT_TYPE, TEXT_HTML, TEXT_PLAIN| Modifier | Constructor and Description |
|---|---|
protected |
FilterDataSource(DataSource ds) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
protected DataSource |
getDataSource()
Method to get the filtered
DataSource. |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
void |
setContentType(String type) |
void |
setName(String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, getInputStream, getOutputStream, length, wrap, wrap, writeTo@ConstructorProperties(value="dataSource") protected FilterDataSource(DataSource ds)
ds - The filtered DataSource.protected DataSource getDataSource()
DataSource.DataSource.public String getName()
getName in interface DataSourcegetName in class AbstractDataSourcepublic void setName(String name)
setName in interface DataSourceDefaultMethodssetName in class AbstractDataSourcepublic String getContentType()
getContentType in interface DataSourcegetContentType in class AbstractDataSourcepublic void setContentType(String type)
setContentType in interface DataSourceDefaultMethodssetContentType in class AbstractDataSourcepublic InputStream getInputStream() throws IOException
IOExceptionpublic OutputStream getOutputStream() throws IOException
IOExceptionCopyright © 2015–2021. All rights reserved.