DEPRECATED

# com.bea.p13n.content.document
DocumentManager Interface

public interface DocumentManager
extends `com.bea.p13n.content.ContentManager`

A ContentManager specific to Documents.

This adds a method for retrieving a document's bytes.

Related Topics

``ContentManagerHome``

All Superinterfaces
  `com.bea.p13n.content.ContentManager`, `EJBObject`, `Remote`

## Method Summary

`public byte[]` | `getContentBlock`(`String` key, long start, long length) Retrieve the content bytes for the specified document.
`public byte[]` | `getContentBlock`(`DocumentPk` key, long start, long length) Retrieve the content bytes for the specified document.

Methods from interface `com.bea.p13n.content.`com.bea.p13n.content.ContentManager``
``getContent`, `getContent`, `getContentIds`, `getPropertySet`, `getPropertySetNames`, `getPropertySets``

Methods from interface `javax.ejb.`EJBObject``
`getEJBHome, getHandle, getPrimaryKey, isIdentical, remove`

## Method Detail

### getContentBlock(String, long, long) Method

    public byte[] getContentBlock(String key,
                                long start,
                                long length)
         throws RemoteException

Retrieve the content bytes for the specified document.

#### Parameters

key
  the document identifier.

start
  the start index (0 for beginning).

length
  the number of bytes to get.

#### Returns

the bytes.

#### Exceptions

``RemoteException``
  thrown on error.

### getContentBlock(DocumentPk, long, long) Method

DEPRECATED Use getContentBlock(java.lang.String, long, long) instead.

    public byte[] getContentBlock(DocumentPk key,
                                long start,
                                long length)
         throws RemoteException

Retrieve the content bytes for the specified document.

#### Parameters

key
  the document primary key.

start
  the start index (0 for beginning).

length
  the number of bytes to get.

#### Returns

the bytes.

#### Exceptions

``RemoteException``
  thrown on error.

Related Topics

``DocumentManager.getContentBlock(String, long, long)``