Package ball.activation
Class AbstractDataSource
- java.lang.Object
-
- ball.activation.AbstractDataSource
-
- All Implemented Interfaces:
DataSourceDefaultMethods
,DataSource
- Direct Known Subclasses:
ByteArrayDataSource
,FilterDataSource
,TempFileDataSource
public abstract class AbstractDataSource extends Object implements DataSourceDefaultMethods
Abstract base class forDataSource
implementations.- 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 Constructor Description AbstractDataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
String
getName()
void
setContentType(String type)
void
setName(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, getInputStream, getOutputStream, getOutputStream, length, wrap, wrap
-
-
-
-
Constructor Detail
-
AbstractDataSource
public AbstractDataSource()
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceDataSource
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceDataSourceDefaultMethods
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfaceDataSource
-
setContentType
public void setContentType(String type)
- Specified by:
setContentType
in interfaceDataSourceDefaultMethods
-
-