org.codehaus.plexus.metadata.merge
Class MXParser

java.lang.Object
  extended by org.codehaus.plexus.metadata.merge.MXParser
All Implemented Interfaces:
org.codehaus.plexus.util.xml.pull.XmlPullParser

public class MXParser
extends Object
implements org.codehaus.plexus.util.xml.pull.XmlPullParser

Absolutely minimal implementation of XMLPULL V1 API. Encoding handling done with XmlReader

Author:
Aleksander Slominski
See Also:
XmlReader

Field Summary
protected  boolean allStringsInterned
          Implementation notice: the is instance variable that controls if newString() is interning.
protected  int attributeCount
           
protected  String[] attributeName
           
protected  int[] attributeNameHash
           
protected  String[] attributePrefix
           
protected  String[] attributeUri
           
protected  String[] attributeValue
           
protected  char[] buf
           
protected  int bufAbsoluteStart
           
protected  int bufEnd
           
protected  int bufLoadFactor
           
protected  int bufSoftLimit
           
protected  int bufStart
           
protected  char[] charRefOneCharBuf
           
protected  int columnNumber
           
protected  int depth
           
protected  String[] elName
           
protected  int[] elNamespaceCount
           
protected  String[] elPrefix
           
protected  char[][] elRawName
           
protected  int[] elRawNameEnd
           
protected  int[] elRawNameLine
           
protected  String[] elUri
           
protected  boolean emptyElementTag
           
protected  int entityEnd
           
protected  String[] entityName
           
protected  char[][] entityNameBuf
           
protected  int[] entityNameHash
           
protected  String entityRefName
           
protected  String[] entityReplacement
           
protected  char[][] entityReplacementBuf
           
protected  int eventType
           
protected static String FEATURE_NAMES_INTERNED
           
protected static String FEATURE_XML_ROUNDTRIP
           
protected  String inputEncoding
           
protected  int lineNumber
           
protected  String location
           
protected static int LOOKUP_MAX
           
protected static char LOOKUP_MAX_CHAR
           
protected static boolean[] lookupNameChar
           
protected static boolean[] lookupNameStartChar
           
protected  int namespaceEnd
           
protected  String[] namespacePrefix
           
protected  int[] namespacePrefixHash
           
protected  String[] namespaceUri
           
protected static char[] NCODING
           
protected static char[] NO
           
protected  boolean pastEndTag
           
protected  char[] pc
           
protected  int pcEnd
           
protected  int pcStart
           
protected  int pos
           
protected  int posEnd
           
protected  int posStart
           
protected  boolean preventBufferCompaction
           
protected  boolean processNamespaces
           
protected static String PROPERTY_LOCATION
           
protected static String PROPERTY_XMLDECL_CONTENT
           
protected static String PROPERTY_XMLDECL_STANDALONE
           
protected static String PROPERTY_XMLDECL_VERSION
           
protected  boolean reachedEnd
           
protected static int READ_CHUNK_SIZE
           
protected  Reader reader
           
protected static String REPORT_NAMESPACE_PREFIXES
           
protected  boolean roundtripSupported
           
protected  boolean seenAmpersand
           
protected  boolean seenDocdecl
           
protected  boolean seenEndTag
           
protected  boolean seenMarkup
           
protected  boolean seenRoot
           
protected  boolean seenStartTag
           
protected static char[] TANDALONE
           
protected  String text
           
protected  boolean tokenize
           
protected  boolean usePC
           
protected static char[] VERSION
           
protected static String XML_URI
           
protected  String xmlDeclContent
           
protected  Boolean xmlDeclStandalone
           
protected  String xmlDeclVersion
           
protected static String XMLNS_URI
           
protected 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
MXParser()
           
 
Method Summary
 void defineEntityReplacementText(String entityName, String replacementText)
           
protected  void ensureAttributesCapacity(int size)
          Make sure that in attributes temporary array is enough space.
protected  void ensureElementsCapacity()
          Make sure that we have enough space to keep element stack if passed size.
protected  void ensureEntityCapacity()
           
protected  void ensureNamespacesCapacity(int size)
           
protected  void ensurePC(int end)
           
protected static 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 ...
protected  void fillBuf()
           
 int getAttributeCount()
           
 String getAttributeName(int index)
           
 String getAttributeNamespace(int index)
           
 String getAttributePrefix(int index)
           
 String getAttributeType(int index)
           
 String getAttributeValue(int index)
           
 String getAttributeValue(String namespace, String name)
           
 int getColumnNumber()
           
 int getDepth()
           
 int getEventType()
           
 boolean getFeature(String name)
          Unknown properties are always returned as false
 String getInputEncoding()
           
 int getLineNumber()
           
 String getName()
           
 String getNamespace()
           
 String getNamespace(String prefix)
           
 int getNamespaceCount(int depth)
           
 String getNamespacePrefix(int pos)
           
 String getNamespaceUri(int pos)
           
 String getPositionDescription()
          Return string describing current position of parsers as text 'STATE [seen %s...] @line:column'.
 String getPrefix()
           
 Object getProperty(String name)
           
 String getText()
           
 char[] getTextCharacters(int[] holderForStartAndLength)
           
 boolean isAttributeDefault(int index)
           
 boolean isEmptyElementTag()
           
protected  boolean isNameChar(char ch)
           
protected  boolean isNameStartChar(char ch)
           
protected  boolean isS(char ch)
           
 boolean isWhitespace()
           
protected  void joinPC()
           
protected  char[] lookuEntityReplacement(int entitNameLen)
           
protected  char more()
           
protected  String newString(char[] cbuf, int off, int len)
           
protected  String newStringIntern(char[] cbuf, int off, int len)
           
 int next()
           
protected  int nextImpl()
           
 int nextTag()
           
 String nextText()
           
 int nextToken()
           
protected  char parseAttribute()
           
protected  void parseCDSect(boolean hadCharData)
           
protected  void parseComment()
           
protected  void parseDocdecl()
           
 int parseEndTag()
           
protected  char[] parseEntityRef()
           
protected  int parseEpilog()
           
protected  boolean parsePI()
           
protected  int parseProlog()
           
 int parseStartTag()
           
protected  void parseXmlDecl(char ch)
           
protected  void parseXmlDeclWithVersion(int versionStart, int versionEnd)
           
protected  String printable(char ch)
           
protected  String printable(String s)
           
 void require(int type, String namespace, String name)
           
protected  char requireInput(char ch, char[] input)
           
protected  char requireNextS()
           
protected  void reset()
           
protected  void resetStringCache()
           
 void setFeature(String name, boolean state)
          Method setFeature
 void setInput(InputStream inputStream, String inputEncoding)
           
 void setInput(Reader in)
           
 void setProperty(String name, Object value)
           
protected  char skipS(char ch)
           
 void skipSubTree()
          Skip sub tree that is currently porser positioned on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_URI

protected static final String XML_URI
See Also:
Constant Field Values

XMLNS_URI

protected static final String XMLNS_URI
See Also:
Constant Field Values

FEATURE_XML_ROUNDTRIP

protected static final String FEATURE_XML_ROUNDTRIP
See Also:
Constant Field Values

FEATURE_NAMES_INTERNED

protected static final String FEATURE_NAMES_INTERNED
See Also:
Constant Field Values

PROPERTY_XMLDECL_VERSION

protected static final String PROPERTY_XMLDECL_VERSION
See Also:
Constant Field Values

PROPERTY_XMLDECL_STANDALONE

protected static final String PROPERTY_XMLDECL_STANDALONE
See Also:
Constant Field Values

PROPERTY_XMLDECL_CONTENT

protected static final String PROPERTY_XMLDECL_CONTENT
See Also:
Constant Field Values

PROPERTY_LOCATION

protected static final String PROPERTY_LOCATION
See Also:
Constant Field Values

REPORT_NAMESPACE_PREFIXES

protected static final 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 String text

entityRefName

protected String entityRefName

xmlDeclVersion

protected String xmlDeclVersion

xmlDeclStandalone

protected Boolean xmlDeclStandalone

xmlDeclContent

protected String xmlDeclContent

processNamespaces

protected boolean processNamespaces

roundtripSupported

protected boolean roundtripSupported

location

protected 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 String[] elName

elPrefix

protected String[] elPrefix

elUri

protected String[] elUri

elNamespaceCount

protected int[] elNamespaceCount

READ_CHUNK_SIZE

protected static final int READ_CHUNK_SIZE
See Also:
Constant Field Values

reader

protected Reader reader

inputEncoding

protected 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

attributeCount

protected int attributeCount

attributeName

protected String[] attributeName

attributeNameHash

protected int[] attributeNameHash

attributePrefix

protected String[] attributePrefix

attributeUri

protected String[] attributeUri

attributeValue

protected String[] attributeValue

namespaceEnd

protected int namespaceEnd

namespacePrefix

protected String[] namespacePrefix

namespacePrefixHash

protected int[] namespacePrefixHash

namespaceUri

protected String[] namespaceUri

entityEnd

protected int entityEnd

entityName

protected String[] entityName

entityNameBuf

protected char[][] entityNameBuf

entityReplacement

protected 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
Constructor Detail

MXParser

public MXParser()
Method Detail

resetStringCache

protected void resetStringCache()

newString

protected String newString(char[] cbuf,
                           int off,
                           int len)

newStringIntern

protected 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.


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 ...


ensureEntityCapacity

protected void ensureEntityCapacity()

reset

protected void reset()

setFeature

public void setFeature(String name,
                       boolean state)
                throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method setFeature

Specified by:
setFeature in interface org.codehaus.plexus.util.xml.pull.XmlPullParser
Parameters:
name - a String
state - a boolean
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getFeature

public boolean getFeature(String name)
Unknown properties are always returned as false

Specified by:
getFeature in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

setProperty

public void setProperty(String name,
                        Object value)
                 throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
Specified by:
setProperty in interface org.codehaus.plexus.util.xml.pull.XmlPullParser
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

setInput

public void setInput(Reader in)
              throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
Specified by:
setInput in interface org.codehaus.plexus.util.xml.pull.XmlPullParser
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

setInput

public void setInput(InputStream inputStream,
                     String inputEncoding)
              throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
Specified by:
setInput in interface org.codehaus.plexus.util.xml.pull.XmlPullParser
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getInputEncoding

public String getInputEncoding()
Specified by:
getInputEncoding in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

defineEntityReplacementText

public void defineEntityReplacementText(String entityName,
                                        String replacementText)
                                 throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
Specified by:
defineEntityReplacementText in interface org.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:
getNamespaceCount in interface org.codehaus.plexus.util.xml.pull.XmlPullParser
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getNamespacePrefix

public String getNamespacePrefix(int pos)
                          throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
Specified by:
getNamespacePrefix in interface org.codehaus.plexus.util.xml.pull.XmlPullParser
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getNamespaceUri

public String getNamespaceUri(int pos)
                       throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
Specified by:
getNamespaceUri in interface org.codehaus.plexus.util.xml.pull.XmlPullParser
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getNamespace

public String getNamespace(String prefix)
Specified by:
getNamespace in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

getDepth

public int getDepth()
Specified by:
getDepth in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

getPositionDescription

public String getPositionDescription()
Return string describing current position of parsers as text 'STATE [seen %s...] @line:column'.

Specified by:
getPositionDescription in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

getColumnNumber

public int getColumnNumber()
Specified by:
getColumnNumber in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

isWhitespace

public boolean isWhitespace()
                     throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
Specified by:
isWhitespace in interface org.codehaus.plexus.util.xml.pull.XmlPullParser
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getText

public String getText()
Specified by:
getText in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

getTextCharacters

public char[] getTextCharacters(int[] holderForStartAndLength)
Specified by:
getTextCharacters in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

getNamespace

public String getNamespace()
Specified by:
getNamespace in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

getName

public String getName()
Specified by:
getName in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

getPrefix

public String getPrefix()
Specified by:
getPrefix in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

isEmptyElementTag

public boolean isEmptyElementTag()
                          throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
Specified by:
isEmptyElementTag in interface org.codehaus.plexus.util.xml.pull.XmlPullParser
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getAttributeCount

public int getAttributeCount()
Specified by:
getAttributeCount in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

getAttributeNamespace

public String getAttributeNamespace(int index)
Specified by:
getAttributeNamespace in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

getAttributeName

public String getAttributeName(int index)
Specified by:
getAttributeName in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

getAttributePrefix

public String getAttributePrefix(int index)
Specified by:
getAttributePrefix in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

getAttributeType

public String getAttributeType(int index)
Specified by:
getAttributeType in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

isAttributeDefault

public boolean isAttributeDefault(int index)
Specified by:
isAttributeDefault in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

getAttributeValue

public String getAttributeValue(int index)
Specified by:
getAttributeValue in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

getAttributeValue

public String getAttributeValue(String namespace,
                                String name)
Specified by:
getAttributeValue in interface org.codehaus.plexus.util.xml.pull.XmlPullParser

getEventType

public int getEventType()
                 throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
Specified by:
getEventType in interface org.codehaus.plexus.util.xml.pull.XmlPullParser
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

require

public void require(int type,
                    String namespace,
                    String name)
             throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                    IOException
Specified by:
require in interface org.codehaus.plexus.util.xml.pull.XmlPullParser
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

skipSubTree

public void skipSubTree()
                 throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                        IOException
Skip 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
IOException

nextText

public String nextText()
                throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                       IOException
Specified by:
nextText in interface org.codehaus.plexus.util.xml.pull.XmlPullParser
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

nextTag

public int nextTag()
            throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                   IOException
Specified by:
nextTag in interface org.codehaus.plexus.util.xml.pull.XmlPullParser
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

next

public int next()
         throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                IOException
Specified by:
next in interface org.codehaus.plexus.util.xml.pull.XmlPullParser
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

nextToken

public int nextToken()
              throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                     IOException
Specified by:
nextToken in interface org.codehaus.plexus.util.xml.pull.XmlPullParser
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

nextImpl

protected int nextImpl()
                throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                       IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

parseProlog

protected int parseProlog()
                   throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                          IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

parseEpilog

protected int parseEpilog()
                   throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                          IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

parseEndTag

public int parseEndTag()
                throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                       IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

parseStartTag

public int parseStartTag()
                  throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                         IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

parseAttribute

protected char parseAttribute()
                       throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                              IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

parseEntityRef

protected char[] parseEntityRef()
                         throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                                IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

lookuEntityReplacement

protected char[] lookuEntityReplacement(int entitNameLen)
                                 throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                                        IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

parseComment

protected void parseComment()
                     throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                            IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

parsePI

protected boolean parsePI()
                   throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                          IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

parseXmlDecl

protected void parseXmlDecl(char ch)
                     throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                            IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

parseXmlDeclWithVersion

protected void parseXmlDeclWithVersion(int versionStart,
                                       int versionEnd)
                                throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                                       IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

parseDocdecl

protected void parseDocdecl()
                     throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                            IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

parseCDSect

protected void parseCDSect(boolean hadCharData)
                    throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                           IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

fillBuf

protected void fillBuf()
                throws IOException,
                       org.codehaus.plexus.util.xml.pull.XmlPullParserException
Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

more

protected char more()
             throws IOException,
                    org.codehaus.plexus.util.xml.pull.XmlPullParserException
Throws:
IOException
org.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,
                            IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

requireNextS

protected char requireNextS()
                     throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                            IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

skipS

protected char skipS(char ch)
              throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                     IOException
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

isNameStartChar

protected boolean isNameStartChar(char ch)

isNameChar

protected boolean isNameChar(char ch)

isS

protected boolean isS(char ch)

printable

protected String printable(char ch)

printable

protected String printable(String s)


Copyright © 2001-2011 Codehaus. All Rights Reserved.