public class ByteDataSource extends Object implements DataSource
| Constructor and Description |
|---|
ByteDataSource(byte[] dataParam) |
ByteDataSource(byte[] dataParam,
int offsetParam,
int lengthParam) |
ByteDataSource(byte[] dataParam,
String ct) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
byte[] |
getData() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
void |
setContentType(String contentTypeParam) |
void |
setData(byte[] dataParam) |
void |
setName(String nameParam) |
public ByteDataSource(byte[] dataParam)
public ByteDataSource(byte[] dataParam,
String ct)
public ByteDataSource(byte[] dataParam,
int offsetParam,
int lengthParam)
public byte[] getData()
public void setData(byte[] dataParam)
public void setContentType(String contentTypeParam)
public void setName(String nameParam)
public String getContentType()
getContentType in interface DataSourcepublic InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOExceptionpublic String getName()
getName in interface DataSourcepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOExceptionApache CXF