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, wait
clear, 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 DataSource
getName
in class AbstractDataSource
public void setName(String name)
setName
in interface DataSourceDefaultMethods
setName
in class AbstractDataSource
public String getContentType()
getContentType
in interface DataSource
getContentType
in class AbstractDataSource
public void setContentType(String type)
setContentType
in interface DataSourceDefaultMethods
setContentType
in class AbstractDataSource
public InputStream getInputStream() throws IOException
IOException
public OutputStream getOutputStream() throws IOException
IOException
Copyright © 2015–2020 Allen D. Ball. All rights reserved.