public class WstxInputData extends Object
StreamScanner, and its sub-classes)
 to encapsulate input buffer portion of the class. Philosophically
 this should probably be done via containment (composition), not
 sub-classing but for performance reason, this "core" class is generally
 extended from instead.
Main reason for the input data portion to be factored out of main class is that this way it can also be passed to nested input handling Objects, which can then manipulate input buffers of the caller, efficiently.
| Modifier and Type | Field and Description | 
|---|---|
| static char | CHAR_NULLNull-character is used as return value from some method(s), since
 it is not a legal character in an XML document. | 
| static char | CHAR_SPACE | 
| static char | INT_NULL | 
| static char | INT_SPACE | 
| static int | MAX_UNICODE_CHARThis constant defines the highest Unicode character allowed
 in XML content. | 
| protected long | mCurrInputProcessedNumber of characters that were contained in previous blocks
 (blocks that were already processed prior to the current buffer). | 
| protected int | mCurrInputRowCurrent row location of current point in input buffer, starting
 from 1 | 
| protected int | mCurrInputRowStartCurrent index of the first character of the current row in input
 buffer. | 
| protected char[] | mInputBufferCurrent buffer from which data is read; generally data is read into
 buffer from input source, but not always (especially when using nested
 input contexts when expanding parsed entity references etc). | 
| protected int | mInputEndIndex of character after last available one in the buffer. | 
| protected int | mInputPtrPointer to next available character in buffer | 
| protected boolean | mXml11Flag that indicates whether XML content is to be treated as per
 XML 1.1 specification or not (if not, it'll use xml 1.0). | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | WstxInputData() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | copyBufferStateFrom(WstxInputData src)Note: Only public due to sub-classes needing to call this on
 base class instance from different package (confusing?) | 
| static int | findIllegalNameChar(String name,
                   boolean nsAware,
                   boolean xml11)Method that can be called to check whether given String contains
 any characters that are not legal XML names. | 
| static int | findIllegalNmtokenChar(String nmtoken,
                      boolean nsAware,
                      boolean xml11) | 
| static String | getCharDesc(char c) | 
| protected boolean | isNameChar(char c)Method that can be used to check whether specified character
 is a valid character of an XML 1.0/1.1 name as any other char than
 the first one; except that colon (:) is not recognized as valid here:
 caller has to verify it separately (since it generally affects namespace
 mapping of a qualified name). | 
| static boolean | isNameChar(char c,
          boolean nsAware,
          boolean xml11) | 
| protected boolean | isNameStartChar(char c)Method that can be used to check whether specified character
 is a valid first character of an XML 1.0/1.1 name; except that
 colon (:) is not recognized as a start char here: caller has
 to verify it separately (since it generally affects namespace
 mapping of a qualified name). | 
| static boolean | isNameStartChar(char c,
               boolean nsAware,
               boolean xml11) | 
| static boolean | isSpaceChar(char c) | 
public static final char CHAR_NULL
public static final char INT_NULL
public static final char CHAR_SPACE
public static final char INT_SPACE
public static final int MAX_UNICODE_CHAR
protected boolean mXml11
protected char[] mInputBuffer
protected int mInputPtr
protected int mInputEnd
protected long mCurrInputProcessed
protected int mCurrInputRow
protected int mCurrInputRowStart
public void copyBufferStateFrom(WstxInputData src)
protected final boolean isNameStartChar(char c)
protected final boolean isNameChar(char c)
public static final boolean isNameStartChar(char c,
                      boolean nsAware,
                      boolean xml11)
public static final boolean isNameChar(char c,
                 boolean nsAware,
                 boolean xml11)
public static final int findIllegalNameChar(String name, boolean nsAware, boolean xml11)
public static final int findIllegalNmtokenChar(String nmtoken, boolean nsAware, boolean xml11)
public static final boolean isSpaceChar(char c)
public static String getCharDesc(char c)
Copyright © 2018 FasterXML. All rights reserved.