public class ByteArrayDataSource extends Object implements javax.activation.DataSource
| Constructor and Description |
|---|
ByteArrayDataSource(InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
void |
setName(String name) |
void |
setType(String type) |
public ByteArrayDataSource(InputStream is) throws IOException
IOExceptionpublic String getContentType()
getContentType in interface javax.activation.DataSourcepublic void setType(String type)
type - the type to setpublic void setName(String name)
name - the name to setpublic InputStream getInputStream() throws IOException
getInputStream in interface javax.activation.DataSourceIOExceptionpublic String getName()
getName in interface javax.activation.DataSourcepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface javax.activation.DataSourceIOExceptionCopyright © 2002–2013 The Apache Software Foundation. All rights reserved.