Skip navigation links

Oracle Content Database Web Services Java API Reference
10g Release 1 (10.2)

B31408-02


oracle.ifs.fdk
Interface FileContentManager


public interface FileContentManager

Interface for accessing file content.


Method Summary
 java.io.InputStream getContent(long id)
          Returns the contents of an item identified by the given ID.

 

Method Detail

getContent

public java.io.InputStream getContent(long id)
                               throws FdkException
Returns the contents of an item identified by the given ID. In general only documents and links to documents return content, if any. For all items that do not have content null will be returned or and exception may be raised, depending on the type of the item.

The caller must call close() on the returned InputStream when no longer needed.

Parameters:
id - The ID of the item to get the content for.
Returns:
The content as an InputStream or null if the item has no content. The caller must close() the stream when no longer needed.
Throws:
FdkException - if the operation fails.

Skip navigation links

Oracle Content Database Web Services Java API Reference
10g Release 1 (10.2)

B31408-02


Copyright © 2002, 2006, Oracle. All rights reserved.