Package org.biojava.utils.io
Class CountedBufferedReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.BufferedReader
-
- org.biojava.utils.io.CountedBufferedReader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.lang.Readable
public class CountedBufferedReader extends java.io.BufferedReader- Author:
- Thomas Down
-
-
Constructor Summary
Constructors Constructor Description CountedBufferedReader(java.io.Reader stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetFilePointer()voidmark(int limit)booleanmarkSupported()intread()intread(char[] cbuf)intread(char[] cbuf, int off, int len)java.lang.StringreadLine()booleanready()voidreset()longskip(long n)
-
-
-
Method Detail
-
getFilePointer
public long getFilePointer()
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.BufferedReader- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.BufferedReader- Throws:
java.io.IOException
-
read
public int read(char[] cbuf) throws java.io.IOException- Overrides:
readin classjava.io.Reader- Throws:
java.io.IOException
-
read
public int read(char[] cbuf, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.BufferedReader- Throws:
java.io.IOException
-
ready
public boolean ready() throws java.io.IOException- Overrides:
readyin classjava.io.BufferedReader- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException- Overrides:
skipin classjava.io.BufferedReader- Throws:
java.io.IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classjava.io.BufferedReader
-
mark
public void mark(int limit) throws java.io.IOException- Overrides:
markin classjava.io.BufferedReader- Throws:
java.io.IOException
-
reset
public void reset() throws java.io.IOException- Overrides:
resetin classjava.io.BufferedReader- Throws:
java.io.IOException
-
readLine
public java.lang.String readLine() throws java.io.IOException- Overrides:
readLinein classjava.io.BufferedReader- Throws:
java.io.IOException
-
-