public class MFLSource extends java.lang.Object implements Source
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.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MFL_REFERENCE_OPTION
Transform option used to indicate the MFL resource
|
DEFAULT_CHARACTER_SET_ENCODING| Modifier and Type | Method and Description |
|---|---|
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(XmlObject xml, Ref mflRef) |
Ref |
getMFLRef() |
XmlObject |
getXmlObject() |
void |
writeTo(java.io.OutputStream out, TransformOptions options)
Serializes the Source's content to a byte-based stream.
|
public static final java.lang.String MFL_REFERENCE_OPTION
public MFLSource(XmlObject xml,
Ref mflRef)
public Ref getMFLRef()
public XmlObject getXmlObject()
public java.io.InputStream getInputStream(TransformOptions options) throws java.io.IOException, TransformException
SourcegetInputStream in interface Sourceoptions - Options used to affect the serializationjava.io.IOExceptionTransformException
public void writeTo(java.io.OutputStream out,
TransformOptions options)
throws java.io.IOException,
TransformException
SourceNote that this method may involve an internal transformation, although it should not in any way change the underlying content.
writeTo in interface Sourceout - the OutputStream to which serialized content will be writtenoptions - TransformOptions used to affect the serializationjava.io.IOExceptionTransformExceptionpublic static MFLSource getInstance(java.io.InputStream in, Ref mflRef) throws TransformException
TransformException