()
| 36 | } |
| 37 | |
| 38 | @Override |
| 39 | public synchronized String next() throws IOException { |
| 40 | if (fin.read(seqLenBytes) > 0) { |
| 41 | int seqLen = fourBytesToInt(seqLenBytes); |
| 42 | byte[] seqBytes = new byte[seqLenToNumBytes(seqLen)]; |
| 43 | if (fin.read(seqBytes) > 0) { |
| 44 | return bitsToSeq(seqBytes, seqLen); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | return null; |
| 49 | } |
| 50 | |
| 51 | public void close() throws IOException { |
| 52 | fin.close(); |
no test coverage detected