public class ByteArrayDataSource extends Object implements DataSource
Constructor and Description |
---|
ByteArrayDataSource(byte[] bytes,
String contentType,
String name) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
public String getContentType()
getContentType
in interface DataSource
public InputStream getInputStream()
getInputStream
in interface DataSource
public String getName()
getName
in interface DataSource
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
Copyright 2008 EGIZ. All Rights Reserved.