public final class StringDataSource extends Object implements DataSource
Modifier and Type | Field and Description |
---|---|
protected String |
content |
protected MediaType |
contentType |
protected String |
name |
Constructor and Description |
---|
StringDataSource(String payload) |
StringDataSource(String payload,
String name) |
StringDataSource(String content,
String name,
MediaType contentType) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
protected String content
protected MediaType contentType
protected String name
public StringDataSource(String payload)
public InputStream getInputStream() throws IOException
getInputStream
in interface DataSource
IOException
public OutputStream getOutputStream()
getOutputStream
in interface DataSource
public String getContentType()
getContentType
in interface DataSource
public String getName()
getName
in interface DataSource
Copyright © 2018. All rights reserved.