public class SourceDataSource extends Object implements DataSource
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE |
Constructor and Description |
---|
SourceDataSource(String name,
StreamSource data) |
SourceDataSource(String name,
String contentType,
StreamSource data) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
public static final String CONTENT_TYPE
public SourceDataSource(String name, StreamSource data)
public SourceDataSource(String name, String contentType, StreamSource data)
public String getName()
getName
in interface DataSource
public String getContentType()
getContentType
in interface DataSource
public InputStream getInputStream() throws IOException
getInputStream
in interface DataSource
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
Copyright © The Apache Software Foundation. All Rights Reserved.