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
IOException
public String getContentType()
getContentType
in interface DataSource
public 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 DataSource
IOException
public String getName()
getName
in interface DataSource
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.