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 DataSource
public 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
Apache CXF