public final class IdlPreprocessorReader extends Reader
This reader augments the stream with location information when the source URL is switched. This improves error reporting (with correct file and linenumber information) in the subsequent compilation steps like IDL parsing and also allows the implentation of code generation options like the -emitAll flag available in the JDK idlj tool.
Constructor and Description |
---|
IdlPreprocessorReader(URL startURL,
String startLocation,
IncludeResolver resolver,
DefineState state)
Creates a new IncludeReader.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getPragmaPrefix() |
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
void |
setPragmaPrefix(String pragmaPrefix) |
public IdlPreprocessorReader(URL startURL, String startLocation, IncludeResolver resolver, DefineState state) throws IOException
startURL
- startLocation
- resolver
- state
- IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
Reader.close()
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
Reader.read(char[], int, int)
public int read() throws IOException
read
in class Reader
IOException
Reader.read()
public void setPragmaPrefix(String pragmaPrefix)
public String getPragmaPrefix()
Apache CXF