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

Method setInput

src/org/kxml2/io/KXmlParser.java:943–971  ·  view source on GitHub ↗
(Reader reader)

Source from the content-addressed store, hash-verified

941 // public part starts here...
942
943 public void setInput(Reader reader) throws XmlPullParserException {
944 this.reader = reader;
945
946 line = 1;
947 column = 0;
948 type = START_DOCUMENT;
949 name = null;
950 namespace = null;
951 degenerated = false;
952 attributeCount = -1;
953 encoding = null;
954 version = null;
955 standalone = null;
956
957 if (reader == null)
958 return;
959
960 srcPos = 0;
961 srcCount = 0;
962 peekCount = 0;
963 depth = 0;
964
965 entityMap = new Hashtable();
966 entityMap.put("amp", "&");
967 entityMap.put("apos", "'");
968 entityMap.put("gt", ">");
969 entityMap.put("lt", "<");
970 entityMap.put("quot", "\"");
971 }
972
973 public void setInput(InputStream is, String _enc)
974 throws XmlPullParserException {

Callers 2

loadBookmarksMethod · 0.95

Calls 3

toStringMethod · 0.80
readMethod · 0.45
indexOfMethod · 0.45

Tested by

no test coverage detected