Top Fields Constructors Methods
com.jogamp.gluegen.jcpp

pack-priv Class JoinReader

extends Object
implements Closeable
Class Inheritance
All Implemented Interfaces
java.io.Closeable, java.lang.AutoCloseable
Imports
java.io.Closeable, .IOException, .Reader

Field Summary

Modifier and TypeField and Description
private boolean
private final Reader
private PreprocessorListener
private int
private LexerSource
private boolean
private int[]
private int
private boolean

Constructor Summary

AccessConstructor and Description
public
JoinReader(Reader in, boolean trigraphs)

public

Method Summary

Modifier and TypeMethod and Description
private int
private int
private void
_unread(int c)

public void
close()

Implements java.io.Closeable.close.

Closes this stream and releases any system resources associated with it.
pack-priv void
public int
read()

public int
read(char[] cbuf, int off, int len)

public void
setTrigraphs(boolean enable, boolean warnings)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
private char
trigraph(char raw, char repl)

protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

flushnlback to summary
private boolean flushnl
inback to summary
private final Reader in
listenerback to summary
private PreprocessorListener listener
newlinesback to summary
private int newlines
sourceback to summary
private LexerSource source
trigraphsback to summary
private boolean trigraphs
ungetback to summary
private int[] unget
uptrback to summary
private int uptr
warningsback to summary
private boolean warnings

Constructor Detail

JoinReaderback to summary
public JoinReader(Reader in, boolean trigraphs)
JoinReaderback to summary
public JoinReader(Reader in)

Method Detail

__readback to summary
private int __read() throws IOException
_readback to summary
private int _read() throws IOException, LexerException
_unreadback to summary
private void _unread(int c)
closeback to summary
public void close() throws IOException

Implements java.io.Closeable.close.

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs
initback to summary
pack-priv void init(Preprocessor pp, LexerSource s)
readback to summary
public int read() throws IOException, LexerException
readback to summary
public int read(char[] cbuf, int off, int len) throws IOException, LexerException
setTrigraphsback to summary
public void setTrigraphs(boolean enable, boolean warnings)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
trigraphback to summary
private char trigraph(char raw, char repl) throws IOException, LexerException
warningback to summary
protected void warning(String msg) throws LexerException