MCPcopy Create free account
hub / github.com/PCGen/pcgen / readPcgLines

Method readPcgLines

code/src/java/pcgen/io/PCGIOHandler.java:189–209  ·  view source on GitHub ↗

@param in @return String lines

(InputStream in)

Source from the content-addressed store, hash-verified

187 * @return String lines
188 */
189 private List<String> readPcgLines(InputStream in)
190 {
191 final List<String> lines = new ArrayList<>();
192
193 // try reading in all the lines in the .pcg file
194 try (BufferedReader br = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8)))
195 {
196
197 String aLine;
198
199 while ((aLine = br.readLine()) != null)
200 {
201 lines.add(aLine);
202 //isPCGVersion2 |= aLine.startsWith(IOConstants.TAG_PCGVERSION);
203 }
204 } catch (IOException ioe)
205 {
206 Logging.errorPrint("Exception in PCGIOHandler::read", ioe);
207 }
208 return lines;
209 }
210
211 /**
212 * Writes the contents of the given PlayerCharacter to a stream

Callers 2

readMethod · 0.95
internalReadSourcesMethod · 0.95

Calls 2

errorPrintMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected