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 void
mark(int readAheadLimit)
boolean
markSupported()
int
read()
int
read(char[] cbuf, int off, int len)
boolean
ready()
void
reset()
long
skip(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:
read
in classFilterReader
- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classFilterReader
-
mark
public void mark(int readAheadLimit) throws IOException
- Overrides:
mark
in classFilterReader
- Throws:
IOException
-
reset
public void reset() throws IOException
- Overrides:
reset
in classFilterReader
- Throws:
IOException
-
ready
public boolean ready() throws IOException
- Overrides:
ready
in classFilterReader
- Throws:
IOException
-
read
public int read(char[] cbuf, int off, int len) throws IOException
- Overrides:
read
in classFilterReader
- Throws:
IOException
-
skip
public long skip(long n) throws IOException
- Overrides:
skip
in classFilterReader
- Throws:
IOException
-
-