public class ByteArrayStreamInfo
extends java.lang.Object
implements org.apache.struts.actions.DownloadAction.StreamInfo
Modifier and Type | Field and Description |
---|---|
protected byte[] |
bytes |
protected java.lang.String |
contentType |
Constructor and Description |
---|
ByteArrayStreamInfo(java.lang.String conType,
byte[] data)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType() |
java.io.InputStream |
getInputStream() |
public ByteArrayStreamInfo(java.lang.String conType, byte[] data)
conType
- ContentTypedata
- byte array of datapublic java.lang.String getContentType()
getContentType
in interface org.apache.struts.actions.DownloadAction.StreamInfo
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface org.apache.struts.actions.DownloadAction.StreamInfo
java.io.IOException