|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RetrieveBinaryView
RetrieveBinaryView is used to retrieve document data in binary format inside a DocumentInformation object.
Example: Retrieve a document's contents in binary PDF format
ViewSupport pdfViewSupport = ViewSupport.Factory.newInstance();
pdfViewSupport.setOutputFormat(OutputFormatType.PDF);
pdfViewSupport.setViewType(ViewType.BINARY);
pdfViewSupport.setViewMode(ViewModeType.DOCUMENT);
RetrieveBinaryView retBinView = RetrieveBinaryView.Factory.newInstance();
retBinView.setViewSupport(pdfViewSupport);
RetrieveData retBOData = RetrieveData.Factory.newInstance();
retBOData.setRetrieveView(retBinView);
DocumentInformation docInfo = boRepEng.getDocumentInformation(strDocid,null,null,null,retBOData);
BinaryView myBinView = (BinaryView) docInfo.getView();
OutputStream outputStream = response.getOutputStream();
response.setContentType("application/pdf");
response.setHeader("Content-Type","application/pdf");
response.setDateHeader("expires", 0);
byte[] abyBinaryContent = myBinView.getContent();
//output the binary stream via the response object
outputStream.write(abyBinaryContent);
TransportType,
BinaryView,
RetrieveData,
DataProviderInfo,
RetrieveCurrentReportState,
RetrieveData,
RetrieveDataProvidersInfo,
RetrieveDrillInfo,
RetrieveMustFillInfo,
RetrieveNavigationMap,
RetrievePromptsInfo,
RetrieveQueryContext,
RetrieveReportList,
RetrieveView,
RetrieveBinaryView,
RetrieveCharacterView,
RetrieveXMLView,
RetrieveViewSupport,
ReportEngine| Nested Class Summary | |
|---|---|
static class |
RetrieveBinaryView.Factory
A class with methods for creating instances of the RetrieveBinaryView type. |
| Field Summary | |
|---|---|
static org.apache.xmlbeans.SchemaType |
type
Internal Use Only. |
| Method Summary | |
|---|---|
TransportType.Enum |
getTransport()
Internal Use Only. |
void |
setTransport(TransportType.Enum transport)
Sets the way the View will be retrieved in the returned SOAP message. |
TransportType |
xgetTransport()
Internal Use Only. |
void |
xsetTransport(TransportType transport)
Internal Use Only. |
| Field Detail |
|---|
static final org.apache.xmlbeans.SchemaType type
Internal Use Only.
| Method Detail |
|---|
TransportType.Enum getTransport()
Internal Use Only.
TransportType xgetTransport()
Internal Use Only.
void setTransport(TransportType.Enum transport)
transport - the type used to transport data.TransportTypevoid xsetTransport(TransportType transport)
Internal Use Only.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||