@param in @return String lines
(InputStream in)
| 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 |
no test coverage detected