|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.c24.io.api.mule.StreamingParserUMO
public class StreamingParserUMO
A Mule UMO for quickly parsing an InputStream and sending notifications to a DownstreamComponent
when a particular class of object is parsed.
Alpha Release. Use at your own risk.
Constructor Summary | |
---|---|
StreamingParserUMO()
Creates a new instance which will require further initialization. |
|
StreamingParserUMO(Class rootClass,
Class streamClass,
DownstreamComponent component)
Creates a new instance which will attempt to parse against the specified root element class and detect instances of streamClass and forward them to component . |
Method Summary | |
---|---|
DownstreamComponent |
getComponent()
Returns the component to which the streamClass objects will be forwarded |
Class |
getRootClass()
Returns the class of the generated root Element . |
Class |
getStreamClass()
Returns the class of the generated Element , ComplexDataType , or ComplexDataObject to detect in the stream. |
void |
parse(InputStream is)
Parses from the specfied input stream. |
void |
setComponent(DownstreamComponent component)
Sets the component to which the streamClass objects will be forwarded |
void |
setRootClass(Class rootClass)
Sets the class of the generated root Element . |
void |
setStreamClass(Class streamClass)
Sets the class of the generated Element , ComplexDataType , or ComplexDataObject to detect in the stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamingParserUMO()
public StreamingParserUMO(Class rootClass, Class streamClass, DownstreamComponent component)
streamClass
and forward them to component
.
rootClass
- The class of the generated root Element
.streamClass
- The class of the generated Element
, ComplexDataType
, or ComplexDataObject
to detect in the stream.component
- The component to which the streamClass objects will be forwarded.
NullPointerException
- If any argument is null.
IllegalArgumentException
- If either of the class arguments are not of the correct type or are taken directly from the C24 Integration Objects API.Method Detail |
---|
public void parse(InputStream is)
IllegalArgumentException
is
- The input stream to parse from.
IllegalArgumentException
- If validation fails, or if the rootClass
or streamClass
can not be instantiated for any reason.
NullPointerException
- If this class has any null bean properties.public Class getRootClass()
Element
.
public void setRootClass(Class rootClass)
Element
.
rootClass
- The new value.public Class getStreamClass()
Element
, ComplexDataType
, or ComplexDataObject
to detect in the stream.
public void setStreamClass(Class streamClass)
Element
, ComplexDataType
, or ComplexDataObject
to detect in the stream.
streamClass
- The new value.public DownstreamComponent getComponent()
public void setComponent(DownstreamComponent component)
component
- The new value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |