public class ByteArrayDataSource extends Object implements DataSource
Constructor and Description |
---|
ByteArrayDataSource(byte[] bytes,
String contentType,
String name) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
void |
setBytes(byte[] bytes) |
void |
setContentType(String contentType) |
void |
setName(String name) |
public void setBytes(byte[] bytes)
public byte[] getBytes()
public void setContentType(String contentType)
public String getContentType()
getContentType
in interface DataSource
public InputStream getInputStream()
getInputStream
in interface DataSource
public void setName(String name)
public String getName()
getName
in interface DataSource
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
Copyright © 2018. All rights reserved.