Skip navigation links

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

E12907-01


oracle.irm.engine.types.content.source
Class BufferSource

java.lang.Object
  extended by oracle.irm.engine.types.content.source.Source
      extended by oracle.irm.engine.types.content.source.BufferSource

All Implemented Interfaces:
Serializable

public class BufferSource
extends Source
implements Serializable

Buffer Source type. A data buffer source can be used if data has already been read from a stream.

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>

See Also:
Serialized Form

Constructor Summary
BufferSource()
          No argument constructor.
BufferSource(byte[] buffer, String mimeType)
          Constructor.

 

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

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

BufferSource

public BufferSource()
No argument constructor.

BufferSource

public BufferSource(byte[] buffer,
                    String mimeType)
Constructor.

Method Detail

getBuffer

public byte[] getBuffer()
Data buffer.
Returns:
the value of the property.

setBuffer

public void setBuffer(byte[] value)
Data buffer.
Parameters:
value - the new value for the property.

getMimeType

public String getMimeType()
MIME type of the data in the buffer.
Returns:
the value of the property.

setMimeType

public void setMimeType(String value)
MIME type of the data in the buffer.
Parameters:
value - the new value for the property.

Skip navigation links

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

E12907-01


Copyright © 2010, Oracle. All rights reserved.