org.jfree.layouting.layouter.feed
public class DefaultInputFeed extends java.lang.Object implements InputFeed
Modifier and Type | Field and Description |
---|---|
static int |
DOCUMENT_FINISHED |
static int |
DOCUMENT_STARTING |
static int |
ELEMENT_ATTRIBUTES |
static int |
ELEMENT_CONTENT |
static int |
ELEMENT_EXPECTED |
static int |
ELEMENT_STARTED |
static int |
META_EXPECTED |
static int |
META_NODE_ATTRIBUTES |
static int |
META_NODE_START |
static int |
META_PROCESSING |
Modifier | Constructor and Description |
---|---|
|
DefaultInputFeed(LayoutProcess process) |
protected |
DefaultInputFeed(LayoutProcess process,
boolean init) |
Modifier and Type | Method and Description |
---|---|
void |
addContent(java.lang.String text) |
void |
addDocumentAttribute(java.lang.String name,
java.lang.Object attr)
Adds document attributes.
|
void |
endDocument() |
void |
endElement() |
void |
endMetaInfo() |
void |
endMetaNode() |
Normalizer |
getCurrentNormalizer()
Warning; This method is needed internally, mess with it from the outside
and you will run into trouble.
|
NamespaceCollection |
getNamespaceCollection() |
Normalizer |
getNormalizer() |
protected LayoutProcess |
getProcess() |
protected int |
getState() |
void |
handlePageBreakEncountered(CSSValue pageName,
PseudoPage[] pseudoPages) |
boolean |
isPagebreakEncountered() |
protected void |
performAddContent(java.lang.String text) |
protected void |
performAddDocumentAttribute(java.lang.String name,
java.lang.Object attr) |
protected void |
performEndDocument() |
protected void |
performEndElement() |
protected void |
performEndMetaInfo() |
protected void |
performEndMetaNode() |
protected void |
performSetAttribute(java.lang.String namespace,
java.lang.String name,
java.lang.Object attr) |
protected void |
performSetMetaNodeAttribute(java.lang.String name,
java.lang.Object attr) |
protected void |
performStartDocument() |
protected void |
performStartElement(java.lang.String namespace,
java.lang.String name) |
protected void |
performStartMetaInfo() |
protected void |
performStartMetaNode() |
void |
resetPageBreakFlag() |
State |
saveState() |
void |
setAttribute(java.lang.String namespace,
java.lang.String name,
java.lang.Object attr) |
void |
setMetaNodeAttribute(java.lang.String name,
java.lang.Object attr)
Defines an attribute for the meta-nodes.
|
void |
startDocument()
Starts the document processing.
|
void |
startElement(java.lang.String namespace,
java.lang.String name) |
void |
startMetaInfo()
Signals, that meta-data follows.
|
void |
startMetaNode()
Starts a new meta-node structure.
|
public static final int DOCUMENT_STARTING
public static final int META_EXPECTED
public static final int META_PROCESSING
public static final int META_NODE_START
public static final int META_NODE_ATTRIBUTES
public static final int ELEMENT_EXPECTED
public static final int ELEMENT_STARTED
public static final int ELEMENT_ATTRIBUTES
public static final int ELEMENT_CONTENT
public static final int DOCUMENT_FINISHED
public DefaultInputFeed(LayoutProcess process)
protected DefaultInputFeed(LayoutProcess process, boolean init)
public void resetPageBreakFlag()
resetPageBreakFlag
in interface InputFeed
public void handlePageBreakEncountered(CSSValue pageName, PseudoPage[] pseudoPages) throws NormalizationException
handlePageBreakEncountered
in interface InputFeed
NormalizationException
public boolean isPagebreakEncountered()
isPagebreakEncountered
in interface InputFeed
public final void startDocument()
InputFeed
startDocument
in interface InputFeed
protected void performStartDocument()
public final void startMetaInfo()
InputFeed
startMetaInfo
in interface InputFeed
protected void performStartMetaInfo()
public final void addDocumentAttribute(java.lang.String name, java.lang.Object attr)
InputFeed
addDocumentAttribute
in interface InputFeed
protected void performAddDocumentAttribute(java.lang.String name, java.lang.Object attr)
public void startMetaNode()
InputFeed
startMetaNode
in interface InputFeed
protected void performStartMetaNode()
public final void setMetaNodeAttribute(java.lang.String name, java.lang.Object attr)
InputFeed
setMetaNodeAttribute
in interface InputFeed
protected void performSetMetaNodeAttribute(java.lang.String name, java.lang.Object attr)
public void endMetaNode()
endMetaNode
in interface InputFeed
protected void performEndMetaNode()
public final void endMetaInfo() throws InputFeedException
endMetaInfo
in interface InputFeed
InputFeedException
public NamespaceCollection getNamespaceCollection()
getNamespaceCollection
in interface InputFeed
protected void performEndMetaInfo() throws InputFeedException
InputFeedException
public final void startElement(java.lang.String namespace, java.lang.String name) throws InputFeedException
startElement
in interface InputFeed
InputFeedException
protected void performStartElement(java.lang.String namespace, java.lang.String name)
public final void setAttribute(java.lang.String namespace, java.lang.String name, java.lang.Object attr)
setAttribute
in interface InputFeed
protected void performSetAttribute(java.lang.String namespace, java.lang.String name, java.lang.Object attr)
public final void addContent(java.lang.String text) throws InputFeedException
addContent
in interface InputFeed
InputFeedException
protected void performAddContent(java.lang.String text) throws InputFeedException, java.io.IOException, NormalizationException
InputFeedException
java.io.IOException
NormalizationException
public final void endElement() throws InputFeedException
endElement
in interface InputFeed
InputFeedException
protected void performEndElement() throws java.io.IOException, NormalizationException
java.io.IOException
NormalizationException
public final void endDocument() throws InputFeedException
endDocument
in interface InputFeed
InputFeedException
protected void performEndDocument() throws java.io.IOException, NormalizationException
java.io.IOException
NormalizationException
protected LayoutProcess getProcess()
protected int getState()
public Normalizer getNormalizer()
public State saveState() throws StateException
saveState
in interface StatefullComponent
StateException
public Normalizer getCurrentNormalizer()
getCurrentNormalizer
in interface InputFeed