diff options
Diffstat (limited to 'xml/src/main/java/org/kxml2/io/KXmlParser.java')
-rw-r--r-- | xml/src/main/java/org/kxml2/io/KXmlParser.java | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/xml/src/main/java/org/kxml2/io/KXmlParser.java b/xml/src/main/java/org/kxml2/io/KXmlParser.java index af97e9f..66e7fb2 100644 --- a/xml/src/main/java/org/kxml2/io/KXmlParser.java +++ b/xml/src/main/java/org/kxml2/io/KXmlParser.java @@ -93,7 +93,7 @@ public class KXmlParser implements XmlPullParser { // private int stackMismatch = 0; private String error; - /** + /** * A separate peek buffer seems simpler than managing * wrap around in the first level read buffer */ @@ -172,7 +172,7 @@ public class KXmlParser implements XmlPullParser { // BEGIN android-changed if (keepNamespaceAttributes) { - // explicitly set the namespace for unprefixed attributes + // explicitly set the namespace for unprefixed attributes // such as xmlns="http://foo" attributes[i] = "http://www.w3.org/2000/xmlns/"; any = true; @@ -276,8 +276,8 @@ public class KXmlParser implements XmlPullParser { null); } - /** - * common base for next and nextToken. Clears the state, except from + /** + * common base for next and nextToken. Clears the state, except from * txtPos and whitespace. Does not set the type variable */ private final void nextImpl() throws IOException, XmlPullParserException { @@ -357,7 +357,7 @@ public class KXmlParser implements XmlPullParser { if (isWhitespace) type = IGNORABLE_WHITESPACE; // make exception switchable for instances.chg... !!!! - // else + // else // exception ("text '"+getText ()+"' not allowed outside root element"); } return; @@ -757,7 +757,7 @@ public class KXmlParser implements XmlPullParser { elementStack[sp + 2] = name; } - /** + /** * result: isWhitespace; if the setName parameter is set, * the name of the entity is stored in "name" */ @@ -765,8 +765,8 @@ public class KXmlParser implements XmlPullParser { throws IOException, XmlPullParserException { push(read()); // & - - + + int pos = txtPos; while (true) { @@ -780,12 +780,12 @@ public class KXmlParser implements XmlPullParser { if(!relaxed){ error("unterminated entity ref"); } - + // BEGIN android-removed: avoid log spam. // System.out.println("broken entitiy: "+get(pos-1)); // END android-removed - - //; ends with:"+(char)c); + + //; ends with:"+(char)c); // if (c != -1) // push(c); return; @@ -893,7 +893,7 @@ public class KXmlParser implements XmlPullParser { peek[0] = peek[1]; } // else { - // result = peek[0]; + // result = peek[0]; // System.arraycopy (peek, 1, peek, 0, peekCount-1); // } peekCount--; @@ -1036,7 +1036,7 @@ public class KXmlParser implements XmlPullParser { try { if (enc == null) { - // read four bytes + // read four bytes int chk = 0; @@ -1378,7 +1378,7 @@ public class KXmlParser implements XmlPullParser { nextImpl(); if (type < minType) minType = type; - // if (curr <= TEXT) type = curr; + // if (curr <= TEXT) type = curr; } while (minType > ENTITY_REF // ignorable || (minType >= TEXT && peekType() >= TEXT)); @@ -1468,10 +1468,10 @@ public class KXmlParser implements XmlPullParser { /** * Skip sub tree that is currently porser positioned on. * <br>NOTE: parser must be on START_TAG and when funtion returns - * parser will be positioned on corresponding END_TAG. + * parser will be positioned on corresponding END_TAG. */ - // Implementation copied from Alek's mail... + // Implementation copied from Alek's mail... public void skipSubTree() throws XmlPullParserException, IOException { require(START_TAG, null, null); |