Package ball.activation
Class FilterDataSource
- java.lang.Object
-
- ball.activation.AbstractDataSource
-
- ball.activation.FilterDataSource
-
- All Implemented Interfaces:
DataSourceDefaultMethods,DataSource
- Direct Known Subclasses:
ReaderWriterDataSource
public abstract class FilterDataSource extends AbstractDataSource
AbstractDataSourcebase class that wraps anotherDataSource.- Author:
- Allen D. Ball
-
-
Field Summary
-
Fields inherited from interface ball.activation.DataSourceDefaultMethods
APPLICATION_OCTET_STREAM, APPLICATION_XML, CONTENT_TYPE, TEXT_HTML, TEXT_PLAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFilterDataSource(DataSource ds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()protected DataSourcegetDataSource()Method to get the filteredDataSource.InputStreamgetInputStream()StringgetName()OutputStreamgetOutputStream()voidsetContentType(String type)voidsetName(String name)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ball.activation.DataSourceDefaultMethods
clear, getInputStream, getOutputStream, length, wrap, wrap
-
-
-
-
Constructor Detail
-
FilterDataSource
@ConstructorProperties("dataSource") protected FilterDataSource(DataSource ds)
- Parameters:
ds- The filteredDataSource.
-
-
Method Detail
-
getDataSource
protected DataSource getDataSource()
Method to get the filteredDataSource.- Returns:
- The filtered
DataSource.
-
getName
public String getName()
- Specified by:
getNamein interfaceDataSource- Overrides:
getNamein classAbstractDataSource
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceDataSourceDefaultMethods- Overrides:
setNamein classAbstractDataSource
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceDataSource- Overrides:
getContentTypein classAbstractDataSource
-
setContentType
public void setContentType(String type)
- Specified by:
setContentTypein interfaceDataSourceDefaultMethods- Overrides:
setContentTypein classAbstractDataSource
-
getInputStream
public InputStream getInputStream() throws IOException
- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Throws:
IOException
-
-