public class SimpleDataSource extends Object implements javax.activation.DataSource
Modifier and Type | Field and Description |
---|---|
byte[] |
bytes |
String |
contentType |
Constructor and Description |
---|
SimpleDataSource(Object o,
String contentType) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
public final byte[] bytes
public final String contentType
public String getContentType()
getContentType
in interface javax.activation.DataSource
public InputStream getInputStream() throws IOException
getInputStream
in interface javax.activation.DataSource
IOException
public String getName()
getName
in interface javax.activation.DataSource
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface javax.activation.DataSource
IOException
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.