import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
foTree, this, ev, stateFlags);
if (ev.getType() != XmlEvent.CHARACTERS)
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} catch(UnexpectedStartElementException e) {
ev = xmlevents.getStartElement();
("Ignoring unexpected Start Element: "
+ ev.getQName());
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
foTree, this, ev, stateFlags);
if (ev.getType() != XmlEvent.CHARACTERS)
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} catch(UnexpectedStartElementException e) {
ev = xmlevents.getStartElement();
("Ignoring unexpected Start Element: "
+ ev.getQName());
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
foTree, this, ev, stateFlags);
if (ev.getType() != XmlEvent.CHARACTERS) {
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
+ XmlEventReader.DISCARD_EV, ev);
}
- namespaces.surrenderEvent(ev);
+ namespaces.relinquishEvent(ev);
}
} catch(UnexpectedStartElementException e) {
ev = xmlevents.getStartElement();
("Ignoring unexpected Start Element: "
+ ev.getQName());
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
import org.apache.fop.fo.PropertySets;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, stateFlags);
// Clear the blockage
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
// Get the rest of the %block;s
do {
if ((stateFlags & FONode.MC_OUT_OF_LINE) == 0)
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, stateFlags);
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
} catch(UnexpectedStartElementException e) {
import org.apache.fop.fo.PropNames;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
foTree, this, (FoXmlEvent)ev,
stateFlags | FONode.MC_FLOAT);
// Clear the blockage
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
// Get the rest of the %block;s
do {
if ((stateFlags & FONode.MC_OUT_OF_LINE) == 0)
foTree, this, (FoXmlEvent)ev,
stateFlags | FONode.MC_FLOAT);
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
} catch(UnexpectedStartElementException e) {
import org.apache.fop.fo.PropNames;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, FONode.FLOW_SET);
// Clear the blockage
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
// Get the rest of the %block;s
do {
ev = xmlevents.expectBlock();
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, FONode.FLOW_SET);
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
} catch(UnexpectedStartElementException e) {
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
/**
* Implements the fo:footnote flow object.
getFOTree(), this, (FoXmlEvent)ev,
stateFlags | FONode.MC_FOOTNOTE);
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
// Look for the footnote-body
if ((ev = xmlevents.expectStartElement
new FoFootnoteBody(
getFOTree(), this, (FoXmlEvent)ev,
stateFlags | FONode.MC_FOOTNOTE);
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
/*
} catch (NoSuchElementException e) {
import org.apache.fop.fo.PropertySets;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, stateFlags);
// Clear the blockage
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
// Get the rest of the %block;s
do {
if ((stateFlags & FONode.MC_OUT_OF_LINE) == 0)
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, stateFlags);
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
} catch(UnexpectedStartElementException e) {
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
foTree, this, ev, stateFlags);
if (ev.getType() != XmlEvent.CHARACTERS) {
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
+ XmlEventReader.DISCARD_EV, ev);
}
- namespaces.surrenderEvent(ev);
+ namespaces.relinquishEvent(ev);
}
} catch(UnexpectedStartElementException e) {
ev = xmlevents.getStartElement();
("Ignoring unexpected Start Element: "
+ ev.getQName());
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
import org.apache.fop.fo.PropertySets;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
foTree, this, (FoXmlEvent)ev, stateFlags);
// Clear the blockage
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
// Get the rest of the %block;s
do {
if ((stateFlags & FONode.MC_OUT_OF_LINE) == 0)
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, stateFlags);
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
} catch(UnexpectedStartElementException e) {
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
foTree, this, ev, stateFlags | FONode.MC_LEADER);
if (ev.getType() != XmlEvent.CHARACTERS) {
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
+ XmlEventReader.DISCARD_EV, ev);
}
- namespaces.surrenderEvent(ev);
+ namespaces.relinquishEvent(ev);
}
} catch(UnexpectedStartElementException e) {
ev = xmlevents.getStartElement();
("Ignoring unexpected Start Element: "
+ ev.getQName());
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
/**
* Implements the fo:list-block flow object.
new FoMarker(getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numMarkers++;
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
// Look for one or more table-rows
new FoListItem(getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numItems++;
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
if (numItems > 0) {
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
/**
* Implements the fo:list-item flow object.
("No list-item-label in list-item.");
new FoListItemLabel(
getFOTree(), this, (FoXmlEvent)ev, stateFlags);
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
// Look for one list-item-body
if ((ev = xmlevents.expectStartElement
throw new FOPException
("No list-item-body in list-item.");
new FoListItemBody(getFOTree(), this, (FoXmlEvent)ev, stateFlags);
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
} catch(TreeException e) {
throw new FOPException("TreeException: " + e.getMessage());
import org.apache.fop.fo.PropertySets;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, stateFlags);
// Clear the blockage
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
// Get the rest of the %block;s
do {
if ((stateFlags & FONode.MC_OUT_OF_LINE) == 0)
// Generate the flow object
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, stateFlags);
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
} catch(UnexpectedStartElementException e) {
import org.apache.fop.fo.PropertySets;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, stateFlags);
// Clear the blockage
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
// Get the rest of the %block;s
do {
if ((stateFlags & FONode.MC_OUT_OF_LINE) == 0)
// Generate the flow object
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, stateFlags);
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
} catch(UnexpectedStartElementException e) {
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
foTree, this, ev, stateFlags);
if (ev.getType() != XmlEvent.CHARACTERS) {
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
+ XmlEventReader.DISCARD_EV, ev);
}
- namespaces.surrenderEvent(ev);
+ namespaces.relinquishEvent(ev);
}
} catch(UnexpectedStartElementException e) {
ev = xmlevents.getStartElement();
("Ignoring unexpected Start Element: "
+ ev.getQName());
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
(foTree, this, ev, stateFlags);
if (ev.getType() != XmlEvent.CHARACTERS) {
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
+ XmlEventReader.DISCARD_EV, ev);
}
- namespaces.surrenderEvent(ev);
+ namespaces.relinquishEvent(ev);
}
} catch(UnexpectedStartElementException e) {
ev = xmlevents.getStartElement();
("Ignoring unexpected Start Element: "
+ ev.getQName());
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
/**
* Implements the fo:multi-properties flow object.
getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numSets++;
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
if (numSets == 0)
throw new FOPException
("No wrapper in multi-properties.");
new FoWrapper(getFOTree(), this, (FoXmlEvent)ev, stateFlags);
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
/*
} catch (NoSuchElementException e) {
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
/**
* Implements the fo:multi-switch flow object.
getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numCases++;
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
if (numCases == 0)
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
(foTree, this, ev, stateFlags);
if (ev.getType() != XmlEvent.CHARACTERS) {
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
+ XmlEventReader.DISCARD_EV, ev);
}
- namespaces.surrenderEvent(ev);
+ namespaces.relinquishEvent(ev);
}
} catch(UnexpectedStartElementException e) {
ev = xmlevents.getStartElement();
("Ignoring unexpected Start Element: "
+ ev.getQName());
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
/**
* Implements the fo:simple-page-master flow object
// process the title
title = numChildren();
new FoTitle(getFOTree(), this, (FoXmlEvent)ev);
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
} // else ignore
// Look for zero or more static-content
if (firstStaticContent != -1)
firstStaticContent = numChildren();
new FoStaticContent(getFOTree(), this, (FoXmlEvent)ev);
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
// Look for one or more page-sequence
throw new FOPException("No flow found.");
firstFlow = numChildren();
new FoFlow(getFOTree(), this, (FoXmlEvent)ev);
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
while ((ev = xmlevents.expectStartElement
(FObjectNames.FLOW, XmlEvent.DISCARD_W_SPACE))
!= null) {
// Loop over remaining fo:page-sequences
new FoFlow(getFOTree(), this, (FoXmlEvent)ev);
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} catch (NoSuchElementException e) {
throw new FOPException
import org.apache.fop.fo.PropNames;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, FONode.STATIC_SET);
// Clear the blockage
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
// Get the rest of the %block;s
while ((ev = xmlevents.expectBlock()) != null) {
// Generate the flow object
//("Generating subsequent block for static-content.");
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, FONode.STATIC_SET);
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} catch(UnexpectedStartElementException e) {
throw new FOPException
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
/**
* Implements the fo:table flow object.
getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numColumns++;
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
// Look for optional table-header
new FoTableHeader(
getFOTree(), this, (FoXmlEvent)ev, stateFlags);
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
// Look for optional table-footer
new FoTableFooter(
getFOTree(), this, (FoXmlEvent)ev, stateFlags);
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
// Look for one or more table-body
firstBodyOffset = numChildren();
new FoTableBody(getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numBodies++;
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
while ((ev = xmlevents.expectStartElement
(FObjectNames.TABLE_BODY, XmlEvent.DISCARD_W_SPACE))
!= null) {
getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numBodies++;
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} catch(TreeException e) {
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
/**
* Implements the fo:table-and-caption flow object.
new FoMarker(getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numMarkers++;
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
// Look for optional table-caption
new FoTableCaption(
getFOTree(), this, (FoXmlEvent)ev, stateFlags);
captionOffset = numMarkers;
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
// Look for one table
throw new FOPException("No table found.");
tableOffset = numChildren();
new FoTable(getFOTree(), this, (FoXmlEvent)ev, stateFlags);
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
/*
} catch (NoSuchElementException e) {
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
/**
* Implements the fo:table-body flow object.
!= null) {
new FoMarker(getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numMarkers++;
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
// Look for one or more table-rows
new FoTableRow(getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numRows++;
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
if (numRows > 0) {
new FoTableCell(
getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numCells++;
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
if (numCells == 0)
throw new FOPException
import org.apache.fop.fo.PropertySets;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, stateFlags);
// Clear the blockage
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
// Get the rest of the %block;s
do {
if ((stateFlags & FONode.MC_OUT_OF_LINE) == 0)
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, stateFlags);
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
} catch(UnexpectedStartElementException e) {
import org.apache.fop.fo.PropertySets;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, stateFlags);
// Clear the blockage
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
// Get the rest of the %block;s
do {
if ((stateFlags & FONode.MC_OUT_OF_LINE) == 0)
// Generate the flow object
FObjects.fobjects.makeFlowObject(
foTree, this, (FoXmlEvent)ev, stateFlags);
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
} catch(UnexpectedStartElementException e) {
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
/**
* Implements the fo:table-footer flow object.
!= null) {
new FoMarker(getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numMarkers++;
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
// Look for one or more table-rows
!= null) {
new FoTableRow(getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numRows++;
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
if (numRows > 0) {
getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numCells++;
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
if (numCells == 0)
throw new FOPException
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
/**
* Implements the fo:table-header flow object.
!= null) {
new FoMarker(getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numMarkers++;
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
// Look for one or more table-rows
!= null) {
new FoTableRow(getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numRows++;
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
if (numRows > 0) {
new FoTableCell(
getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numCells++;
- ev = xmlevents.getEndElement(SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
if (numCells == 0)
throw new FOPException
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
/**
* Implements the fo:table-row flow object.
getFOTree(), this, (FoXmlEvent)ev, stateFlags);
numCells++;
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
if (numCells == 0)
throw new FOPException
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
}
}
- /** The <tt>SyncedXmlEventsBuffer</tt> from which events are drawn. */
- private SyncedXmlEventsBuffer xmlevents;
+ /** The <tt>XmlEventReader</tt> from which events are drawn. */
+ private XmlEventReader xmlevents;
/**
* Construct an fo:title node, and build the fo:title subtree.
foTree, this, ev, FONode.TITLE_SET);
if (ev.getType() != XmlEvent.CHARACTERS)
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} catch(UnexpectedStartElementException e) {
ev = xmlevents.getStartElement();
("Ignoring unexpected Start Element: "
+ ev.getQName());
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.xml.FoXmlEvent;
import org.apache.fop.xml.XmlEvent;
-import org.apache.fop.xml.SyncedXmlEventsBuffer;
+import org.apache.fop.xml.XmlEventReader;
import org.apache.fop.xml.UnexpectedStartElementException;
/**
foTree, this, ev, stateFlags);
if (ev.getType() != XmlEvent.CHARACTERS)
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} catch(UnexpectedStartElementException e) {
ev = xmlevents.getStartElement();
("Ignoring unexpected Start Element: "
+ ev.getQName());
ev = xmlevents.getEndElement(
- SyncedXmlEventsBuffer.DISCARD_EV, ev);
- namespaces.surrenderEvent(ev);
+ XmlEventReader.DISCARD_EV, ev);
+ namespaces.relinquishEvent(ev);
}
} while (ev != null);