protected char skipS( char ch ) throws XmlPullParserException, IOException { while ( isS( ch ) ) { ch = more(); } // skip additional spaces return ch; }
public boolean isWhitespace() throws XmlPullParserException { if ( eventType == TEXT || eventType == CDSECT ) { if ( usePC ) { for ( int i = pcStart; i < pcEnd; i++ ) { if ( !isS( pc[i] ) ) return false; } return true; } else { for ( int i = posStart; i < posEnd; i++ ) { if ( !isS( buf[i] ) ) return false; } return true; } } else if ( eventType == IGNORABLE_WHITESPACE ) { return true; } throw new XmlPullParserException( "no content available to check for whitespaces" ); }
protected char requireNextS() throws XmlPullParserException, IOException { final char ch = more(); if ( !isS( ch ) ) { throw new XmlPullParserException( "white space is required and not " + printable( ch ), this, null ); } return skipS( ch ); }
while ( isS( ch ) )
while ( isS( ch ) )
else if ( isS( ch ) )
else if ( isS( ch ) )
public boolean isWhitespace() throws XmlPullParserException { if(eventType == TEXT || eventType == CDSECT) { if(usePC) { for (int i = pcStart; i <pcEnd; i++) { if(!isS(pc[ i ])) return false; } return true; } else { for (int i = posStart; i <posEnd; i++) { if(!isS(buf[ i ])) return false; } return true; } } else if(eventType == IGNORABLE_WHITESPACE) { return true; } throw new XmlPullParserException("no content available to check for whitespaces"); }
protected char skipS(char ch) throws XmlPullParserException, IOException { while(isS(ch)) { ch = more(); } // skip additional spaces return ch; }
protected char requireNextS() throws XmlPullParserException, IOException { final char ch = more(); if(!isS(ch)) { throw new XmlPullParserException( "white space is required and not "+printable(ch), this, null); } return skipS(ch); }
while(isS(ch)) { ch = more(); } // skip additional white spaces if(ch != '>') { throw new XmlPullParserException(
while(isS(ch)) { ch = more(); } // skip additional white spaces
"expected start tag name and not "+printable(ch), this, null); } else if(isS(ch)) { gotS = true; if(normalizeIgnorableWS) {
this, null); } else if(isS(ch)) { gotS = true; if(normalizeIgnorableWS) {