com.businessobjects.rebean.wi
Interface BinaryView

All Known Subinterfaces:
Image

public interface BinaryView

The BinaryView interface provides an access to the properties and functionalities of the binary output format. Using this class, a document contents can be retrieved in the binary formats such as PDF or Excel.


Method Summary
 byte[] getContent()
          Returns the contents of a view in the binary format.
 void getContent(java.io.OutputStream outputStream)
          Improves performance by retrieving the contents of a view in binary format on a specified OutputStream.
 int getContentLength()
          Returns the size of the binary content of a BinaryView.
 java.lang.String getContentType()
          Returns the mime type of the binary content of a BinaryView.
 

Method Detail

getContent

byte[] getContent()
Returns the contents of a view in the binary format.

Returns:
The binary content of the view.

getContent

void getContent(java.io.OutputStream outputStream)
Improves performance by retrieving the contents of a view in binary format on a specified OutputStream.

Note:This method improves the performance and scalability of the document retrieval by enabling chunked data transfer and radically improvs the memory consumption on both application and BusinessObjects servers.

Parameters:
outputStream - The OutputStream to which the binary view contents will be written.

getContentLength

int getContentLength()
Returns the size of the binary content of a BinaryView. The size of the BinaryView is necessary to set the HTTP Content-Length for a binary stream. Call this method to get the file size, then retrieve the stream using (OutputStream outputStream).

Returns:
the content length

getContentType

java.lang.String getContentType()
Returns the mime type of the binary content of a BinaryView.

Returns:
The mime type as String
Since:
12.0