Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

oracle.apps.fnd.applcore.menu.model.internal
Class DocumentDataSource

java.lang.Object
  extended by oracle.apps.fnd.applcore.menu.model.internal.DocumentDataSource
All Implemented Interfaces:
javax.activation.DataSource

public class DocumentDataSource
extends java.lang.Object
implements javax.activation.DataSource

DataSource that works with Documents.


Constructor Summary
DocumentDataSource(java.lang.String name, org.w3c.dom.Document document)
          Construct a data source that represents a document.
 
Method Summary
 java.lang.String getContentType()
          Gets the content type of the data.
 java.io.InputStream getInputStream()
          Gets an InputStream to read the document.
 java.lang.String getName()
          Gets the name of the data source.
 java.io.OutputStream getOutputStream()
          Gets an OutputStream to write out the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentDataSource

public DocumentDataSource(java.lang.String name,
                          org.w3c.dom.Document document)
Construct a data source that represents a document.

Parameters:
name - the name of the document
document - the DOM for the document
Method Detail

getInputStream

public java.io.InputStream getInputStream()
Gets an InputStream to read the document.

Specified by:
getInputStream in interface javax.activation.DataSource
Returns:
the InputStream

getOutputStream

public java.io.OutputStream getOutputStream()
Gets an OutputStream to write out the document.

Specified by:
getOutputStream in interface javax.activation.DataSource
Returns:
the output stream

getContentType

public java.lang.String getContentType()
Gets the content type of the data.

Specified by:
getContentType in interface javax.activation.DataSource
Returns:
the content type

getName

public java.lang.String getName()
Gets the name of the data source.

Specified by:
getName in interface javax.activation.DataSource
Returns:
the name of the data source

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.