Class MXParser
- java.lang.Object
-
- org.codehaus.plexus.metadata.merge.MXParser
-
- All Implemented Interfaces:
org.codehaus.plexus.util.xml.pull.XmlPullParser
public class MXParser extends java.lang.Object implements org.codehaus.plexus.util.xml.pull.XmlPullParserAbsolutely minimal implementation of XMLPULL V1 API. Encoding handling done with XmlReader- See Also:
XmlReader
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanallStringsInternedImplementation notice: the is instance variable that controls if newString() is interning.protected intattributeCountprotected java.lang.String[]attributeNameprotected int[]attributeNameHashprotected java.lang.String[]attributePrefixprotected java.lang.String[]attributeUriprotected java.lang.String[]attributeValueprotected char[]bufprotected intbufAbsoluteStartprotected intbufEndprotected intbufLoadFactorprotected intbufSoftLimitprotected intbufStartprotected char[]charRefOneCharBufprotected intcolumnNumberprotected intdepthprotected java.lang.String[]elNameprotected int[]elNamespaceCountprotected java.lang.String[]elPrefixprotected char[][]elRawNameprotected int[]elRawNameEndprotected int[]elRawNameLineprotected java.lang.String[]elUriprotected booleanemptyElementTagprotected intentityEndprotected java.lang.String[]entityNameprotected char[][]entityNameBufprotected int[]entityNameHashprotected java.lang.StringentityRefNameprotected java.lang.String[]entityReplacementprotected char[][]entityReplacementBufprotected inteventTypeprotected static java.lang.StringFEATURE_NAMES_INTERNEDprotected static java.lang.StringFEATURE_XML_ROUNDTRIPprotected java.lang.StringinputEncodingprotected intlineNumberprotected java.lang.Stringlocationprotected static intLOOKUP_MAXprotected static charLOOKUP_MAX_CHARprotected static boolean[]lookupNameCharprotected static boolean[]lookupNameStartCharprotected intnamespaceEndprotected java.lang.String[]namespacePrefixprotected int[]namespacePrefixHashprotected java.lang.String[]namespaceUriprotected static char[]NCODINGprotected static char[]NOprotected booleanpastEndTagprotected char[]pcprotected intpcEndprotected intpcStartprotected intposprotected intposEndprotected intposStartprotected booleanpreventBufferCompactionprotected booleanprocessNamespacesprotected static java.lang.StringPROPERTY_LOCATIONprotected static java.lang.StringPROPERTY_XMLDECL_CONTENTprotected static java.lang.StringPROPERTY_XMLDECL_STANDALONEprotected static java.lang.StringPROPERTY_XMLDECL_VERSIONprotected booleanreachedEndprotected static intREAD_CHUNK_SIZEprotected java.io.Readerreaderprotected static java.lang.StringREPORT_NAMESPACE_PREFIXESprotected booleanroundtripSupportedprotected booleanseenAmpersandprotected booleanseenDocdeclprotected booleanseenEndTagprotected booleanseenMarkupprotected booleanseenRootprotected booleanseenStartTagprotected static char[]TANDALONEprotected java.lang.Stringtextprotected booleantokenizeprivate static booleanTRACE_SIZINGprotected booleanusePCprotected static char[]VERSIONprotected static java.lang.StringXML_URIprotected java.lang.StringxmlDeclContentprotected java.lang.BooleanxmlDeclStandaloneprotected java.lang.StringxmlDeclVersionprotected static java.lang.StringXMLNS_URIprotected static char[]YES-
Fields 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 Constructor Description MXParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineEntityReplacementText(java.lang.String entityName, java.lang.String replacementText)protected voidensureAttributesCapacity(int size)Make sure that in attributes temporary array is enough space.protected voidensureElementsCapacity()Make sure that we have enough space to keep element stack if passed size.protected voidensureEntityCapacity()protected voidensureNamespacesCapacity(int size)protected voidensurePC(int end)protected static intfastHash(char[] ch, int off, int len)simplistic implementation of hash function that has constant time to compute - so it also means diminishing hash quality for long strings but for XML parsing it should be good enough ...protected voidfillBuf()private static intfindFragment(int bufMinPos, char[] b, int start, int end)intgetAttributeCount()java.lang.StringgetAttributeName(int index)java.lang.StringgetAttributeNamespace(int index)java.lang.StringgetAttributePrefix(int index)java.lang.StringgetAttributeType(int index)java.lang.StringgetAttributeValue(int index)java.lang.StringgetAttributeValue(java.lang.String namespace, java.lang.String name)intgetColumnNumber()intgetDepth()intgetEventType()booleangetFeature(java.lang.String name)Unknown properties are always returned as falsejava.lang.StringgetInputEncoding()intgetLineNumber()java.lang.StringgetName()java.lang.StringgetNamespace()java.lang.StringgetNamespace(java.lang.String prefix)intgetNamespaceCount(int depth)java.lang.StringgetNamespacePrefix(int pos)java.lang.StringgetNamespaceUri(int pos)java.lang.StringgetPositionDescription()Return string describing current position of parsers as text 'STATE [seen %s...] @line:column'.java.lang.StringgetPrefix()java.lang.ObjectgetProperty(java.lang.String name)java.lang.StringgetText()char[]getTextCharacters(int[] holderForStartAndLength)booleanisAttributeDefault(int index)booleanisEmptyElementTag()protected booleanisNameChar(char ch)protected booleanisNameStartChar(char ch)protected booleanisS(char ch)booleanisWhitespace()protected voidjoinPC()protected char[]lookuEntityReplacement(int entitNameLen)protected charmore()protected java.lang.StringnewString(char[] cbuf, int off, int len)protected java.lang.StringnewStringIntern(char[] cbuf, int off, int len)intnext()protected intnextImpl()intnextTag()java.lang.StringnextText()intnextToken()protected charparseAttribute()protected voidparseCDSect(boolean hadCharData)protected voidparseComment()protected voidparseDocdecl()intparseEndTag()protected char[]parseEntityRef()protected intparseEpilog()protected booleanparsePI()protected intparseProlog()intparseStartTag()protected voidparseXmlDecl(char ch)protected voidparseXmlDeclWithVersion(int versionStart, int versionEnd)protected java.lang.Stringprintable(char ch)protected java.lang.Stringprintable(java.lang.String s)voidrequire(int type, java.lang.String namespace, java.lang.String name)protected charrequireInput(char ch, char[] input)protected charrequireNextS()protected voidreset()protected voidresetStringCache()voidsetFeature(java.lang.String name, boolean state)Method setFeaturevoidsetInput(java.io.InputStream inputStream, java.lang.String inputEncoding)voidsetInput(java.io.Reader in)private static voidsetName(char ch)private static voidsetNameStart(char ch)voidsetProperty(java.lang.String name, java.lang.Object value)protected charskipS(char ch)voidskipSubTree()Skip sub tree that is currently porser positioned on.
-
-
-
Field Detail
-
XML_URI
protected static final java.lang.String XML_URI
- See Also:
- Constant Field Values
-
XMLNS_URI
protected static final java.lang.String XMLNS_URI
- See Also:
- Constant Field Values
-
FEATURE_XML_ROUNDTRIP
protected static final java.lang.String FEATURE_XML_ROUNDTRIP
- See Also:
- Constant Field Values
-
FEATURE_NAMES_INTERNED
protected static final java.lang.String FEATURE_NAMES_INTERNED
- See Also:
- Constant Field Values
-
PROPERTY_XMLDECL_VERSION
protected static final java.lang.String PROPERTY_XMLDECL_VERSION
- See Also:
- Constant Field Values
-
PROPERTY_XMLDECL_STANDALONE
protected static final java.lang.String PROPERTY_XMLDECL_STANDALONE
- See Also:
- Constant Field Values
-
PROPERTY_XMLDECL_CONTENT
protected static final java.lang.String PROPERTY_XMLDECL_CONTENT
- See Also:
- Constant Field Values
-
PROPERTY_LOCATION
protected static final java.lang.String PROPERTY_LOCATION
- See Also:
- Constant Field Values
-
REPORT_NAMESPACE_PREFIXES
protected static final java.lang.String REPORT_NAMESPACE_PREFIXES
- See Also:
- Constant Field Values
-
allStringsInterned
protected boolean allStringsInterned
Implementation notice: the is instance variable that controls if newString() is interning.NOTE: newStringIntern always returns interned strings and newString MAY return interned String depending on this variable.
NOTE: by default in this minimal implementation it is false!
-
usePC
protected boolean usePC
-
seenStartTag
protected boolean seenStartTag
-
seenEndTag
protected boolean seenEndTag
-
pastEndTag
protected boolean pastEndTag
-
seenAmpersand
protected boolean seenAmpersand
-
seenMarkup
protected boolean seenMarkup
-
seenDocdecl
protected boolean seenDocdecl
-
tokenize
protected boolean tokenize
-
text
protected java.lang.String text
-
entityRefName
protected java.lang.String entityRefName
-
xmlDeclVersion
protected java.lang.String xmlDeclVersion
-
xmlDeclStandalone
protected java.lang.Boolean xmlDeclStandalone
-
xmlDeclContent
protected java.lang.String xmlDeclContent
-
processNamespaces
protected boolean processNamespaces
-
roundtripSupported
protected boolean roundtripSupported
-
location
protected java.lang.String location
-
lineNumber
protected int lineNumber
-
columnNumber
protected int columnNumber
-
seenRoot
protected boolean seenRoot
-
reachedEnd
protected boolean reachedEnd
-
eventType
protected int eventType
-
emptyElementTag
protected boolean emptyElementTag
-
depth
protected int depth
-
elRawName
protected char[][] elRawName
-
elRawNameEnd
protected int[] elRawNameEnd
-
elRawNameLine
protected int[] elRawNameLine
-
elName
protected java.lang.String[] elName
-
elPrefix
protected java.lang.String[] elPrefix
-
elUri
protected java.lang.String[] elUri
-
elNamespaceCount
protected int[] elNamespaceCount
-
READ_CHUNK_SIZE
protected static final int READ_CHUNK_SIZE
- See Also:
- Constant Field Values
-
reader
protected java.io.Reader reader
-
inputEncoding
protected java.lang.String inputEncoding
-
bufLoadFactor
protected int bufLoadFactor
-
buf
protected char[] buf
-
bufSoftLimit
protected int bufSoftLimit
-
preventBufferCompaction
protected boolean preventBufferCompaction
-
bufAbsoluteStart
protected int bufAbsoluteStart
-
bufStart
protected int bufStart
-
bufEnd
protected int bufEnd
-
pos
protected int pos
-
posStart
protected int posStart
-
posEnd
protected int posEnd
-
pc
protected char[] pc
-
pcStart
protected int pcStart
-
pcEnd
protected int pcEnd
-
TRACE_SIZING
private static final boolean TRACE_SIZING
- See Also:
- Constant Field Values
-
attributeCount
protected int attributeCount
-
attributeName
protected java.lang.String[] attributeName
-
attributeNameHash
protected int[] attributeNameHash
-
attributePrefix
protected java.lang.String[] attributePrefix
-
attributeUri
protected java.lang.String[] attributeUri
-
attributeValue
protected java.lang.String[] attributeValue
-
namespaceEnd
protected int namespaceEnd
-
namespacePrefix
protected java.lang.String[] namespacePrefix
-
namespacePrefixHash
protected int[] namespacePrefixHash
-
namespaceUri
protected java.lang.String[] namespaceUri
-
entityEnd
protected int entityEnd
-
entityName
protected java.lang.String[] entityName
-
entityNameBuf
protected char[][] entityNameBuf
-
entityReplacement
protected java.lang.String[] entityReplacement
-
entityReplacementBuf
protected char[][] entityReplacementBuf
-
entityNameHash
protected int[] entityNameHash
-
charRefOneCharBuf
protected char[] charRefOneCharBuf
-
VERSION
protected static final char[] VERSION
-
NCODING
protected static final char[] NCODING
-
TANDALONE
protected static final char[] TANDALONE
-
YES
protected static final char[] YES
-
NO
protected static final char[] NO
-
LOOKUP_MAX
protected static final int LOOKUP_MAX
- See Also:
- Constant Field Values
-
LOOKUP_MAX_CHAR
protected static final char LOOKUP_MAX_CHAR
- See Also:
- Constant Field Values
-
lookupNameStartChar
protected static boolean[] lookupNameStartChar
-
lookupNameChar
protected static boolean[] lookupNameChar
-
-
Method Detail
-
resetStringCache
protected void resetStringCache()
-
newString
protected java.lang.String newString(char[] cbuf, int off, int len)
-
newStringIntern
protected java.lang.String newStringIntern(char[] cbuf, int off, int len)
-
ensureElementsCapacity
protected void ensureElementsCapacity()
Make sure that we have enough space to keep element stack if passed size. It will always create one additional slot then current depth
-
ensureAttributesCapacity
protected void ensureAttributesCapacity(int size)
Make sure that in attributes temporary array is enough space.- Parameters:
size- The size.
-
ensureNamespacesCapacity
protected void ensureNamespacesCapacity(int size)
-
fastHash
protected static final int fastHash(char[] ch, int off, int len)simplistic implementation of hash function that has constant time to compute - so it also means diminishing hash quality for long strings but for XML parsing it should be good enough ...- Parameters:
ch- The characters.off- The offset.len- The length.- Returns:
- the hash.
-
ensureEntityCapacity
protected void ensureEntityCapacity()
-
reset
protected void reset()
-
setFeature
public void setFeature(java.lang.String name, boolean state) throws org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionMethod setFeature- Specified by:
setFeaturein interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser- Parameters:
name- a Stringstate- a boolean- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException- in case of an error.
-
getFeature
public boolean getFeature(java.lang.String name)
Unknown properties are always returned as false- Specified by:
getFeaturein interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
setProperty
public void setProperty(java.lang.String name, java.lang.Object value) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException- Specified by:
setPropertyin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getProperty
public java.lang.Object getProperty(java.lang.String name)
- Specified by:
getPropertyin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
setInput
public void setInput(java.io.Reader in) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException- Specified by:
setInputin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
setInput
public void setInput(java.io.InputStream inputStream, java.lang.String inputEncoding) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException- Specified by:
setInputin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getInputEncoding
public java.lang.String getInputEncoding()
- Specified by:
getInputEncodingin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
defineEntityReplacementText
public void defineEntityReplacementText(java.lang.String entityName, java.lang.String replacementText) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException- Specified by:
defineEntityReplacementTextin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getNamespaceCount
public int getNamespaceCount(int depth) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException- Specified by:
getNamespaceCountin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getNamespacePrefix
public java.lang.String getNamespacePrefix(int pos) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException- Specified by:
getNamespacePrefixin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getNamespaceUri
public java.lang.String getNamespaceUri(int pos) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException- Specified by:
getNamespaceUriin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getNamespace
public java.lang.String getNamespace(java.lang.String prefix)
- Specified by:
getNamespacein interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
getDepth
public int getDepth()
- Specified by:
getDepthin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
findFragment
private static int findFragment(int bufMinPos, char[] b, int start, int end)
-
getPositionDescription
public java.lang.String getPositionDescription()
Return string describing current position of parsers as text 'STATE [seen %s...] @line:column'.- Specified by:
getPositionDescriptionin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumberin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumberin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
isWhitespace
public boolean isWhitespace() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException- Specified by:
isWhitespacein interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getText
public java.lang.String getText()
- Specified by:
getTextin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
getTextCharacters
public char[] getTextCharacters(int[] holderForStartAndLength)
- Specified by:
getTextCharactersin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespacein interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
getPrefix
public java.lang.String getPrefix()
- Specified by:
getPrefixin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
isEmptyElementTag
public boolean isEmptyElementTag() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException- Specified by:
isEmptyElementTagin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getAttributeCount
public int getAttributeCount()
- Specified by:
getAttributeCountin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
getAttributeNamespace
public java.lang.String getAttributeNamespace(int index)
- Specified by:
getAttributeNamespacein interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
getAttributeName
public java.lang.String getAttributeName(int index)
- Specified by:
getAttributeNamein interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
getAttributePrefix
public java.lang.String getAttributePrefix(int index)
- Specified by:
getAttributePrefixin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
getAttributeType
public java.lang.String getAttributeType(int index)
- Specified by:
getAttributeTypein interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
isAttributeDefault
public boolean isAttributeDefault(int index)
- Specified by:
isAttributeDefaultin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
getAttributeValue
public java.lang.String getAttributeValue(int index)
- Specified by:
getAttributeValuein interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
getAttributeValue
public java.lang.String getAttributeValue(java.lang.String namespace, java.lang.String name)- Specified by:
getAttributeValuein interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser
-
getEventType
public int getEventType() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException- Specified by:
getEventTypein interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
require
public void require(int type, java.lang.String namespace, java.lang.String name) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Specified by:
requirein interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
skipSubTree
public void skipSubTree() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOExceptionSkip sub tree that is currently porser positioned on.NOTE: parser must be on START_TAG and when funtion returns parser will be positioned on corresponding END_TAG
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException- in case of an error.java.io.IOException- in case of an error.
-
nextText
public java.lang.String nextText() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Specified by:
nextTextin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
nextTag
public int nextTag() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Specified by:
nextTagin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
next
public int next() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Specified by:
nextin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
nextToken
public int nextToken() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Specified by:
nextTokenin interfaceorg.codehaus.plexus.util.xml.pull.XmlPullParser- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
nextImpl
protected int nextImpl() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
parseProlog
protected int parseProlog() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
parseEpilog
protected int parseEpilog() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
parseEndTag
public int parseEndTag() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
parseStartTag
public int parseStartTag() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
parseAttribute
protected char parseAttribute() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
parseEntityRef
protected char[] parseEntityRef() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
lookuEntityReplacement
protected char[] lookuEntityReplacement(int entitNameLen) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
parseComment
protected void parseComment() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
parsePI
protected boolean parsePI() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
parseXmlDecl
protected void parseXmlDecl(char ch) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
parseXmlDeclWithVersion
protected void parseXmlDeclWithVersion(int versionStart, int versionEnd) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
parseDocdecl
protected void parseDocdecl() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
parseCDSect
protected void parseCDSect(boolean hadCharData) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
fillBuf
protected void fillBuf() throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
more
protected char more() throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
ensurePC
protected void ensurePC(int end)
-
joinPC
protected void joinPC()
-
requireInput
protected char requireInput(char ch, char[] input) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
requireNextS
protected char requireNextS() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
skipS
protected char skipS(char ch) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
setName
private static final void setName(char ch)
-
setNameStart
private static final void setNameStart(char ch)
-
isNameStartChar
protected boolean isNameStartChar(char ch)
-
isNameChar
protected boolean isNameChar(char ch)
-
isS
protected boolean isS(char ch)
-
printable
protected java.lang.String printable(char ch)
-
printable
protected java.lang.String printable(java.lang.String s)
-
-