Package com.jogamp.gluegen.pcpp
Class ConcatenatingReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.FilterReader
-
- com.jogamp.gluegen.pcpp.ConcatenatingReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
public class ConcatenatingReader extends FilterReader
A Reader implementation which finds lines ending in the backslash character ('\') and concatenates them with the next line.
-
-
Field Summary
-
Fields inherited from class java.io.FilterReader
in
-
-
Constructor Summary
Constructors Constructor Description ConcatenatingReader(BufferedReader in)This class requires that the input reader be a BufferedReader so it can do line-oriented operations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmark(int readAheadLimit)booleanmarkSupported()intread()intread(char[] cbuf, int off, int len)booleanready()voidreset()longskip(long n)-
Methods inherited from class java.io.FilterReader
close
-
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
-
-
-
Constructor Detail
-
ConcatenatingReader
public ConcatenatingReader(BufferedReader in)
This class requires that the input reader be a BufferedReader so it can do line-oriented operations.
-
-
Method Detail
-
read
public int read() throws IOException- Overrides:
readin classFilterReader- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classFilterReader
-
mark
public void mark(int readAheadLimit) throws IOException- Overrides:
markin classFilterReader- Throws:
IOException
-
reset
public void reset() throws IOException- Overrides:
resetin classFilterReader- Throws:
IOException
-
ready
public boolean ready() throws IOException- Overrides:
readyin classFilterReader- Throws:
IOException
-
read
public int read(char[] cbuf, int off, int len) throws IOException- Overrides:
readin classFilterReader- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Overrides:
skipin classFilterReader- Throws:
IOException
-
-