public class ImageDataSource
extends java.lang.Object
implements javax.activation.DataSource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENT_TYPE |
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
ImageDataSource(java.lang.String name,
java.awt.Image data) |
ImageDataSource(java.lang.String name,
java.lang.String contentType,
java.awt.Image data) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType() |
java.io.InputStream |
getInputStream() |
java.lang.String |
getName() |
java.io.OutputStream |
getOutputStream() |
protected static org.apache.commons.logging.Log log
public static final java.lang.String CONTENT_TYPE
public ImageDataSource(java.lang.String name, java.awt.Image data)
public ImageDataSource(java.lang.String name, java.lang.String contentType, java.awt.Image data)
public java.lang.String getName()
getName
in interface javax.activation.DataSource
public java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.activation.DataSource
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.activation.DataSource
java.io.IOException
Copyright ? 2005 Apache Web Services Project. All Rights Reserved.