Code example for BufferedReader

Methods: close, readLine

0
                if (this.paths.isEmpty()) 
                    return false; 
                else 
                    this.reader = this.getUncompressedInputStream(); 
 
            this.line = this.reader.readLine(); 
            if (this.line != null) { 
                this.lines++; 
                return true; 
            } else { 
                this.reader.close(); 
                if (this.paths.isEmpty()) 
                    this.reader = null; 
                else 
                    this.reader = this.getUncompressedInputStream(); 
                return this.hasNext(); 
            } 
        } catch (Exception e) { 
            throw new RuntimeException(e.getMessage(), e); 
        } 
    }