Package org.apache.fop.render.mif
Class MIFElement
java.lang.Object
org.apache.fop.render.mif.MIFElement
- Direct Known Subclasses:
MIFFile
,RefElement
The is the basis for MIF document elements.
This enables the creation of the element and to write it
to an output stream including sub-elements or a single value.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(MIFElement el) void
finish
(boolean deep) boolean
output
(OutputStream os, int indent) Output this element to an output stream.void
-
Field Details
-
name
name -
valueStr
value string -
valueElements
value elements -
started
protected boolean startedtrue if started -
finish
protected boolean finishtrue if finishing -
finished
protected boolean finishedtrue if finished
-
-
Constructor Details
-
MIFElement
- Parameters:
name
- a name
-
-
Method Details
-
setValue
- Parameters:
str
- a string value
-
addElement
- Parameters:
el
- an MIF element
-
output
Output this element to an output stream. This will output only so far as the fisrt unfinished child element. This method can be called again to continue from the previous point. An element that contains child elements will only be finished when the finish method is called.- Parameters:
os
- output streamindent
- indentation- Returns:
- true if finished
- Throws:
IOException
- if not caught
-
finish
public void finish(boolean deep) - Parameters:
deep
- if true, also perform finish over value elements
-