Class BufferingParser
java.lang.Object
org.apache.maven.model.transform.pull.BufferingParser
- All Implemented Interfaces:
XmlPullParser
- Direct Known Subclasses:
NodeBufferingParser
An xml pull parser filter base implementation.
- Since:
- 4.0.0
- Author:
- Guillaume Nodet
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected BufferingParser.Eventprotected Deque<BufferingParser.Event>protected XmlPullParserFields inherited from interface org.codehaus.plexus.util.xml.pull.XmlPullParser
CDSECT, COMMENT, DOCDECL, END_DOCUMENT, END_TAG, ENTITY_REF, FEATURE_PROCESS_DOCDECL, FEATURE_PROCESS_NAMESPACES, FEATURE_REPORT_NAMESPACE_ATTRIBUTES, FEATURE_VALIDATION, IGNORABLE_WHITESPACE, NO_NAMESPACE, PROCESSING_INSTRUCTION, START_DOCUMENT, START_TAG, TEXT, TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaccept()protected BufferingParser.Eventbooleanbypass()voidbypass(boolean bypass) voiddefineEntityReplacementText(String entityName, String replacementText) intgetAttributeName(int index) getAttributeNamespace(int index) getAttributePrefix(int index) getAttributeType(int index) getAttributeValue(int index) getAttributeValue(String namespace, String name) intintgetDepth()intbooleangetFeature(String name) intgetName()getNamespace(String prefix) intgetNamespaceCount(int depth) getNamespacePrefix(int pos) getNamespaceUri(int pos) getProperty(String name) getText()char[]getTextCharacters(int[] holderForStartAndLength) booleanisAttributeDefault(int index) booleanbooleanintnext()intnextTag()nextText()intprotected static StringnullSafeAppend(String originalValue, String charSegment) protected voidpushEvent(BufferingParser.Event event) voidvoidsetFeature(String name, boolean state) voidsetInput(InputStream inputStream, String inputEncoding) voidvoidsetProperty(String name, Object value)
-
Field Details
-
xmlPullParser
-
events
-
current
-
bypass
protected boolean bypass
-
-
Constructor Details
-
BufferingParser
-
-
Method Details
-
setFeature
- Specified by:
setFeaturein interfaceXmlPullParser- Throws:
XmlPullParserException
-
getFeature
- Specified by:
getFeaturein interfaceXmlPullParser
-
setProperty
- Specified by:
setPropertyin interfaceXmlPullParser- Throws:
XmlPullParserException
-
getProperty
- Specified by:
getPropertyin interfaceXmlPullParser
-
setInput
- Specified by:
setInputin interfaceXmlPullParser- Throws:
XmlPullParserException
-
setInput
- Specified by:
setInputin interfaceXmlPullParser- Throws:
XmlPullParserException
-
getInputEncoding
- Specified by:
getInputEncodingin interfaceXmlPullParser
-
defineEntityReplacementText
public void defineEntityReplacementText(String entityName, String replacementText) throws XmlPullParserException - Specified by:
defineEntityReplacementTextin interfaceXmlPullParser- Throws:
XmlPullParserException
-
getNamespaceCount
- Specified by:
getNamespaceCountin interfaceXmlPullParser- Throws:
XmlPullParserException
-
getNamespacePrefix
- Specified by:
getNamespacePrefixin interfaceXmlPullParser- Throws:
XmlPullParserException
-
getNamespaceUri
- Specified by:
getNamespaceUriin interfaceXmlPullParser- Throws:
XmlPullParserException
-
getNamespace
- Specified by:
getNamespacein interfaceXmlPullParser
-
getDepth
public int getDepth()- Specified by:
getDepthin interfaceXmlPullParser
-
getPositionDescription
- Specified by:
getPositionDescriptionin interfaceXmlPullParser
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumberin interfaceXmlPullParser
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumberin interfaceXmlPullParser
-
isWhitespace
- Specified by:
isWhitespacein interfaceXmlPullParser- Throws:
XmlPullParserException
-
getText
- Specified by:
getTextin interfaceXmlPullParser
-
getTextCharacters
public char[] getTextCharacters(int[] holderForStartAndLength) - Specified by:
getTextCharactersin interfaceXmlPullParser
-
getNamespace
- Specified by:
getNamespacein interfaceXmlPullParser
-
getName
- Specified by:
getNamein interfaceXmlPullParser
-
getPrefix
- Specified by:
getPrefixin interfaceXmlPullParser
-
isEmptyElementTag
- Specified by:
isEmptyElementTagin interfaceXmlPullParser- Throws:
XmlPullParserException
-
getAttributeCount
public int getAttributeCount()- Specified by:
getAttributeCountin interfaceXmlPullParser
-
getAttributeNamespace
- Specified by:
getAttributeNamespacein interfaceXmlPullParser
-
getAttributeName
- Specified by:
getAttributeNamein interfaceXmlPullParser
-
getAttributePrefix
- Specified by:
getAttributePrefixin interfaceXmlPullParser
-
getAttributeType
- Specified by:
getAttributeTypein interfaceXmlPullParser
-
isAttributeDefault
public boolean isAttributeDefault(int index) - Specified by:
isAttributeDefaultin interfaceXmlPullParser
-
getAttributeValue
- Specified by:
getAttributeValuein interfaceXmlPullParser
-
getAttributeValue
- Specified by:
getAttributeValuein interfaceXmlPullParser
-
require
public void require(int type, String namespace, String name) throws XmlPullParserException, IOException - Specified by:
requirein interfaceXmlPullParser- Throws:
XmlPullParserExceptionIOException
-
getEventType
- Specified by:
getEventTypein interfaceXmlPullParser- Throws:
XmlPullParserException
-
next
- Specified by:
nextin interfaceXmlPullParser- Throws:
XmlPullParserExceptionIOException
-
nextToken
- Specified by:
nextTokenin interfaceXmlPullParser- Throws:
XmlPullParserExceptionIOException
-
nextTag
- Specified by:
nextTagin interfaceXmlPullParser- Throws:
XmlPullParserExceptionIOException
-
nextText
- Specified by:
nextTextin interfaceXmlPullParser- Throws:
XmlPullParserExceptionIOException
-
bufferEvent
- Throws:
XmlPullParserException
-
pushEvent
-
accept
- Throws:
XmlPullParserExceptionIOException
-
bypass
public void bypass(boolean bypass) -
bypass
public boolean bypass() -
nullSafeAppend
-