Makes a LineReader around a BufferedReader so we can deal with them interchangeably with TabixLineReader
| 36 | * Makes a LineReader around a BufferedReader so we can deal with them interchangeably with TabixLineReader |
| 37 | */ |
| 38 | public class BrLineReader implements LineReader { |
| 39 | |
| 40 | private final BufferedReader mBr; |
| 41 | |
| 42 | /** |
| 43 | * Makes a LineReader around a BufferedReader |
| 44 | * @param br the inner reader |
| 45 | */ |
| 46 | public BrLineReader(BufferedReader br) { |
| 47 | mBr = br; |
| 48 | } |
| 49 | |
| 50 | @Override |
| 51 | public String readLine() throws IOException { |
| 52 | return mBr.readLine(); |
| 53 | } |
| 54 | |
| 55 | @Override |
| 56 | public void close() throws IOException { |
| 57 | mBr.close(); |
| 58 | } |
| 59 | } |
nothing calls this directly
no outgoing calls
no test coverage detected