Package org.biojava.utils.io
Class CountedBufferedReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.BufferedReader
-
- org.biojava.utils.io.CountedBufferedReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
public class CountedBufferedReader extends BufferedReader
- Author:
- Thomas Down
-
-
Constructor Summary
Constructors Constructor Description CountedBufferedReader(Reader stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
long
getFilePointer()
void
mark(int limit)
boolean
markSupported()
int
read()
int
read(char[] cbuf)
int
read(char[] cbuf, int off, int len)
String
readLine()
boolean
ready()
void
reset()
long
skip(long n)
-
Methods inherited from class java.io.BufferedReader
lines
-
Methods inherited from class java.io.Reader
nullReader, read, transferTo
-
-
-
-
Constructor Detail
-
CountedBufferedReader
public CountedBufferedReader(Reader stream)
-
-
Method Detail
-
getFilePointer
public long getFilePointer()
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classBufferedReader
- Throws:
IOException
-
read
public int read() throws IOException
- Overrides:
read
in classBufferedReader
- Throws:
IOException
-
read
public int read(char[] cbuf) throws IOException
- Overrides:
read
in classReader
- Throws:
IOException
-
read
public int read(char[] cbuf, int off, int len) throws IOException
- Overrides:
read
in classBufferedReader
- Throws:
IOException
-
ready
public boolean ready() throws IOException
- Overrides:
ready
in classBufferedReader
- Throws:
IOException
-
skip
public long skip(long n) throws IOException
- Overrides:
skip
in classBufferedReader
- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classBufferedReader
-
mark
public void mark(int limit) throws IOException
- Overrides:
mark
in classBufferedReader
- Throws:
IOException
-
reset
public void reset() throws IOException
- Overrides:
reset
in classBufferedReader
- Throws:
IOException
-
readLine
public String readLine() throws IOException
- Overrides:
readLine
in classBufferedReader
- Throws:
IOException
-
-