Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.6.3)

E15033-08


com.bea.wli.sb.sources
Class MFLSource

java.lang.Object
  extended by com.bea.wli.sb.sources.MFLSource

All Implemented Interfaces:
Source

public class MFLSource
extends java.lang.Object
implements Source

This class represents MFL content. MFL data is essentially binary data that has some logical structure imposed on it by an MFL definition. CSV is simple example of MFL data, but the structure can be arbitrarily complex. The logical/in-memory representation of the data is an XML document, but it's serialized representation is the raw "unstructured" binary data. <P/> An MFLSource allows for both views of the MFL data. The content is kept in it's logical form as an XmlObject and this can be obtained from the MFLSource. However, the Source serialization methods writeTo() and getInputStream() will yield the binary form.


Field Summary
static java.lang.String MFL_REFERENCE_OPTION
          Transform option used to indicate the MFL resource

 

Fields inherited from interface com.bea.wli.sb.sources.Source
DEFAULT_CHARACTER_SET_ENCODING

 

Constructor Summary
MFLSource(org.apache.xmlbeans.XmlObject xml, Ref mflRef)
           

 

Method Summary
 java.io.InputStream getInputStream(TransformOptions options)
          Returns streaming byte-baseed representation of the Source's content.
static MFLSource getInstance(java.io.InputStream in, Ref mflRef)
           
static MFLSource getInstance(org.apache.xmlbeans.XmlObject xml, Ref mflRef)
           
 Ref getMFLRef()
           
 org.apache.xmlbeans.XmlObject getXmlObject()
           
 void writeTo(java.io.OutputStream out, TransformOptions options)
          Serializes the Source's content to a byte-based stream.

 

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

 

Field Detail

MFL_REFERENCE_OPTION

public static final java.lang.String MFL_REFERENCE_OPTION
Transform option used to indicate the MFL resource
See Also:
Constant Field Values

Constructor Detail

MFLSource

public MFLSource(org.apache.xmlbeans.XmlObject xml,
                 Ref mflRef)

Method Detail

getMFLRef

public Ref getMFLRef()

getXmlObject

public org.apache.xmlbeans.XmlObject getXmlObject()

getInputStream

public java.io.InputStream getInputStream(TransformOptions options)
                                   throws java.io.IOException,
                                          TransformException
Description copied from interface: Source
Returns streaming byte-baseed representation of the Source's content. The representation of that serialization is entirely up to the Source. Note that this method may involve an internal transformation, although it should not in any way change the underlying content.
Specified by:
getInputStream in interface Source
Parameters:
options - Options used to affect the serialization
Returns:
an InputStream for retrieving the serialized content
Throws:
java.io.IOException
TransformException

writeTo

public void writeTo(java.io.OutputStream out,
                    TransformOptions options)
             throws java.io.IOException,
                    TransformException
Description copied from interface: Source
Serializes the Source's content to a byte-based stream. The representation of that serialization is entirely up to the Source. The Source is forbidden from closing the provided OutputStream, although it is allowed to flush it. However, flushing the stream should be left to the caller, if possible. <p/> Note that this method may involve an internal transformation, although it should not in any way change the underlying content.
Specified by:
writeTo in interface Source
Parameters:
out - the OutputStream to which serialized content will be written
options - TransformOptions used to affect the serialization
Throws:
java.io.IOException
TransformException

getInstance

public static MFLSource getInstance(java.io.InputStream in,
                                    Ref mflRef)
                             throws TransformException
Throws:
TransformException

getInstance

public static MFLSource getInstance(org.apache.xmlbeans.XmlObject xml,
                                    Ref mflRef)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.6.3)

E15033-08


Copyright © 2008, 2012, Oracle. All rights reserved.