|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.mail.datasource.AbstractDataSource
public abstract class AbstractDataSource
The AbstractDataSource class is a base class for other DataSource
implementation.
Constructor Summary | |
---|---|
AbstractDataSource()
|
|
AbstractDataSource(String name,
String type)
|
Method Summary | |
---|---|
String |
getContentType()
|
abstract InputStream |
getInputStream()
Get the InputStream for this DataSource. |
String |
getName()
Returns the name for this DataSource object. |
OutputStream |
getOutputStream()
Not implemented. |
protected static boolean |
isNullOrEmpty(String str)
Check String for null or empty. |
void |
setContentType(String contentType)
|
void |
setName(String name)
|
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDataSource()
public AbstractDataSource(String name, String type)
name
- Name of the content parttype
- Mime type of the contentMethod Detail |
---|
protected static boolean isNullOrEmpty(String str)
str
-
public String getName()
DataSource
object.
getName
in interface DataSource
public void setName(String name)
public String getContentType()
getContentType
in interface DataSource
DataSource
object.public void setContentType(String contentType)
public abstract InputStream getInputStream() throws IOException
InputStream
for this DataSource.
getInputStream
in interface DataSource
IOException
public OutputStream getOutputStream() throws IOException
IOException
.
getOutputStream
in interface DataSource
IOException
- since unimplemented
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |