public class ByteArrayDataSource extends Object implements 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 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 DataSourceIOExceptionpublic String getName()
getName in interface DataSourcepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOExceptionCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.