@Test public void testReadLine() { assertTrue (ep.readLine()); assertEquals("E000AB01.THF", ep.getValue("BOMT")); assertTrue(ep.readLine()); assertTrue(ep.readLine()); assertEquals("GTS", ep.getValue("RTYSA")); }
public boolean readLine() { String buffer = ""; do { try { buffer = reader.readLine(); if (buffer == null) { return readLine(""); } } catch (IOException e) { return readLine(""); } lineNumber++; buffer = buffer.trim(); } while (buffer.length() == 0); return readLine(buffer); }
EdigeoParser { public boolean readLine() { String buffer = ""; do { try { buffer = reader.readLine(); if (buffer == null) { return readLine(""); } } catch (IOException e) { return readLine(""); } lineNumber++; buffer = buffer.trim(); } while (buffer.length() == 0); return readLine(buffer); } }
EdigeoParser { public boolean readLine() { String buffer = ""; do { try { buffer = reader.readLine(); if (buffer == null) { return readLine(""); } } catch (IOException e) { return readLine(""); } lineNumber++; buffer = buffer.trim(); } while (buffer.length() == 0); return readLine(buffer); } EdigeoParser(File file); }
EdigeoParser { public boolean readLine() { String buffer = ""; do { try { buffer = reader.readLine(); if (buffer == null) { return readLine(""); } } catch (IOException e) { return readLine(""); } lineNumber++; buffer = buffer.trim(); } while (buffer.length() == 0); return readLine(buffer); } EdigeoParser(File file); boolean readLine(); boolean readLine(String line); static String ltrim(String untrimmed); String getValue(String target); void close(); }
EdigeoParser { public boolean readLine() { String buffer = ""; do { try { buffer = reader.readLine(); if (buffer == null) { return readLine(""); } } catch (IOException e) { return readLine(""); } lineNumber++; buffer = buffer.trim(); } while (buffer.length() == 0); return readLine(buffer); } EdigeoParser(File file); boolean readLine(); boolean readLine(String line); static String ltrim(String untrimmed); String getValue(String target); void close(); public BufferedReader reader; public String line; public int lineNumber; }