Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


oracle.irm.engine.content.source
Interface BufferSource

All Superinterfaces:
Source

public interface BufferSource
extends Source

A data buffer based source for the sealing process. A data buffer source can be used if data has already been read from a stream.

Creation

Instances of Buffer Source objects can be created using the following factory style method(s).

BufferSource object = createBufferSource(
    buffer,
    mimeType);

XML Serialization

Buffer Source instances can be serialized as an XML document. This XML document can also be used to recreate a Buffer Source object. The following XML document shows an example Buffer Source in XML form.

<?xml version="1.0" encoding="UTF-8"?>
<content:BufferSource xmlns:content="http://xmlns.oracle.com/irm/content">
    <buffer>VW5pdCBUZXN0aW5n</buffer>
    <mimeType>text/plain</mimeType>
</content:BufferSource>


Method Summary
 byte[] getBuffer()
          Data buffer.
 String getMimeType()
          MIME type of the data in the buffer.

 

Methods inherited from interface oracle.irm.engine.content.source.Source
close, getContentType, getInputStream, getSize

 

Method Detail

getBuffer

byte[] getBuffer()
Data buffer.

State

The array returned by this method can be safely altered without affecting the internal state of the object.
Returns:
the value of the property. This method will never return null.

getMimeType

String getMimeType()
MIME type of the data in the buffer.
Returns:
the value of the property. This method will never return null.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


Copyright © 2011, Oracle. All rights reserved.