MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / peekType

Method peekType

src/org/kxml2/io/KXmlParser.java:552–571  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

550 }
551
552 private final int peekType() throws IOException {
553 switch (peek(0)) {
554 case -1 :
555 return END_DOCUMENT;
556 case '&' :
557 return ENTITY_REF;
558 case '<' :
559 switch (peek(1)) {
560 case '/' :
561 return END_TAG;
562 case '?' :
563 case '!' :
564 return LEGACY;
565 default :
566 return START_TAG;
567 }
568 default :
569 return TEXT;
570 }
571 }
572
573 private final String get(int pos) {
574 return new String(txtBuf, pos, txtPos - pos);

Callers 2

nextImplMethod · 0.95
nextMethod · 0.95

Calls 1

peekMethod · 0.95

Tested by

no test coverage detected