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 InputFeedpublic void handlePageBreakEncountered(CSSValue pageName, PseudoPage[] pseudoPages) throws NormalizationException
handlePageBreakEncountered in interface InputFeedNormalizationExceptionpublic boolean isPagebreakEncountered()
isPagebreakEncountered in interface InputFeedpublic final void startDocument()
InputFeedstartDocument in interface InputFeedprotected void performStartDocument()
public final void startMetaInfo()
InputFeedstartMetaInfo in interface InputFeedprotected void performStartMetaInfo()
public final void addDocumentAttribute(java.lang.String name,
java.lang.Object attr)
InputFeedaddDocumentAttribute in interface InputFeedprotected void performAddDocumentAttribute(java.lang.String name,
java.lang.Object attr)
public void startMetaNode()
InputFeedstartMetaNode in interface InputFeedprotected void performStartMetaNode()
public final void setMetaNodeAttribute(java.lang.String name,
java.lang.Object attr)
InputFeedsetMetaNodeAttribute in interface InputFeedprotected void performSetMetaNodeAttribute(java.lang.String name,
java.lang.Object attr)
public void endMetaNode()
endMetaNode in interface InputFeedprotected void performEndMetaNode()
public final void endMetaInfo()
throws InputFeedException
endMetaInfo in interface InputFeedInputFeedExceptionpublic NamespaceCollection getNamespaceCollection()
getNamespaceCollection in interface InputFeedprotected void performEndMetaInfo()
throws InputFeedException
InputFeedExceptionpublic final void startElement(java.lang.String namespace,
java.lang.String name)
throws InputFeedException
startElement in interface InputFeedInputFeedExceptionprotected 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 InputFeedprotected 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 InputFeedInputFeedExceptionprotected void performAddContent(java.lang.String text)
throws InputFeedException,
java.io.IOException,
NormalizationException
InputFeedExceptionjava.io.IOExceptionNormalizationExceptionpublic final void endElement()
throws InputFeedException
endElement in interface InputFeedInputFeedExceptionprotected void performEndElement()
throws java.io.IOException,
NormalizationException
java.io.IOExceptionNormalizationExceptionpublic final void endDocument()
throws InputFeedException
endDocument in interface InputFeedInputFeedExceptionprotected void performEndDocument()
throws java.io.IOException,
NormalizationException
java.io.IOExceptionNormalizationExceptionprotected LayoutProcess getProcess()
protected int getState()
public Normalizer getNormalizer()
public State saveState() throws StateException
saveState in interface StatefullComponentStateExceptionpublic Normalizer getCurrentNormalizer()
getCurrentNormalizer in interface InputFeed