public class MFLSource extends 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 String |
MFL_REFERENCE_OPTION
Transform option used to indicate the MFL resource
|
DEFAULT_CHARACTER_SET_ENCODING| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream(TransformOptions options)
Returns streaming byte-baseed representation of the Source's content.
|
static MFLSource |
getInstance(InputStream in, Ref mflRef) |
static MFLSource |
getInstance(XmlObject xml, Ref mflRef) |
Ref |
getMFLRef() |
XmlObject |
getXmlObject() |
void |
writeTo(OutputStream out, TransformOptions options)
Serializes the Source's content to a byte-based stream.
|
public static final String MFL_REFERENCE_OPTION
public MFLSource(XmlObject xml,
Ref mflRef)
public Ref getMFLRef()
public XmlObject getXmlObject()
public InputStream getInputStream(TransformOptions options) throws IOException, TransformException
SourcegetInputStream in interface Sourceoptions - Options used to affect the serializationIOExceptionTransformExceptionpublic void writeTo(OutputStream out, TransformOptions options) throws 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 serializationIOExceptionTransformExceptionpublic static MFLSource getInstance(InputStream in, Ref mflRef) throws TransformException
TransformException