|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.dpml.metro.builder.ComponentConstants net.dpml.metro.builder.ComponentEncoder
Component part handler.
Constructor Summary | |
ComponentEncoder()
|
Method Summary | |
void |
encode(Writer writer,
Object object,
String pad)
Export a component directive to an output stream as XML. |
void |
export(ComponentDirective directive,
OutputStream output)
Export a component directive to an output stream as XML. |
String |
toString()
Return a string representation of the object. |
void |
writeComponent(Writer writer,
ComponentDirective directive,
String pad)
Export a component directive to an output stream as XML. |
protected void |
writeEntry(Writer writer,
String key,
ValueDirective value,
String pad)
Write a context entry. |
protected void |
writeParts(Writer writer,
PartReference[] parts,
String pad,
boolean flag)
Write a collection of part references. |
void |
writeTaggedComponent(Writer writer,
ComponentDirective directive,
String key,
String pad)
Export a tagged component directive to an output stream as XML. |
void |
writeTaggedComponent(Writer writer,
ComponentDirective directive,
String key,
String pad,
boolean flag)
Export a tagged component directive to an output stream as XML. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ComponentEncoder()
Method Detail |
public void export(ComponentDirective directive, OutputStream output) throws IOException
directive
- the component directiveoutput
- the output stream
IOException
- if an IO error occurspublic void encode(Writer writer, Object object, String pad) throws IOException
encode
in interface Encoder
writer
- the print writerobject
- the object to encodepad
- character offset
IOException
- if an IO error occurspublic void writeComponent(Writer writer, ComponentDirective directive, String pad) throws IOException
writer
- the print writerdirective
- the component directivepad
- character offset
IOException
- if an IO error occurspublic void writeTaggedComponent(Writer writer, ComponentDirective directive, String key, String pad) throws IOException
writer
- the print writerdirective
- the component directivekey
- the key identifying the componentpad
- character offset
IOException
- if an IO error occurspublic void writeTaggedComponent(Writer writer, ComponentDirective directive, String key, String pad, boolean flag) throws IOException
writer
- the print writerdirective
- the component directivekey
- the key identifying the componentpad
- character offsetflag
- true if the xml namespace should be included
IOException
- if an IO error occursprotected void writeParts(Writer writer, PartReference[] parts, String pad, boolean flag) throws IOException
writer
- the writerparts
- the part refernece arraypad
- the offsetflag
- true if the xml namespace should be included
IOException
- if an IO error occursprotected void writeEntry(Writer writer, String key, ValueDirective value, String pad) throws IOException
writer
- the writerkey
- the entry keyvalue
- the value directivepad
- the offset
IOException
- if an IO error occurspublic String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |