class OfxTransactionReader implements Closeable {

	String readNextNonBlankLine() throws IOException {
		skipBlankLines();
		return reader.readLine();
	}

}

class OfxTransactionReaderTest {

	@Test
	public void readNextNonBlankLine() throws IOException {

		try (OfxTransactionReader reader = new OfxTransactionReader(
				new ByteArrayInputStream("\n\r\none\n\rtwo".getBytes(StandardCharsets.UTF_8)))) {
			assertEquals("one", reader.readNextNonBlankLine());
			assertEquals("two", reader.readNextNonBlankLine());
			assertEquals(null, reader.readNextNonBlankLine());
		}
	}

}