Lines Matching refs:reader
63 try (JsonReader reader = new JsonReader(new FileReader(mCacheFile))) { in load() argument
64 reader.beginObject(); in load()
65 while (reader.hasNext()) { in load()
66 switch (reader.nextName()) { in load()
68 mKnownGood.addAll(loadPrinterIds(reader)); in load()
71 mPriority.addAll(loadPrinterIds(reader)); in load()
74 reader.skipValue(); in load()
78 reader.endObject(); in load()
84 private List<PrinterId> loadPrinterIds(JsonReader reader) throws IOException { in loadPrinterIds() argument
86 reader.beginArray(); in loadPrinterIds()
87 while (reader.hasNext()) { in loadPrinterIds()
88 String localId = reader.nextString(); in loadPrinterIds()
91 reader.endArray(); in loadPrinterIds()