public class ByteArrayDataSource extends Object implements DataSource
Constructor and Description |
---|
ByteArrayDataSource(byte[] data,
String type) |
ByteArrayDataSource(InputStream is,
String type) |
ByteArrayDataSource(String data,
String type) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
public ByteArrayDataSource(InputStream is, String type)
public ByteArrayDataSource(byte[] data, String type)
public InputStream getInputStream() throws IOException
getInputStream
in interface DataSource
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
public String getContentType()
getContentType
in interface DataSource
public String getName()
getName
in interface DataSource
Copyright © 2012–2017 Apache Software Foundation. All rights reserved.