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 - includeResolver - defineState - IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionReader.close()public int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionReader.read(char[], int, int)public int read()
throws IOException
read in class ReaderIOExceptionReader.read()public void setPragmaPrefix(String pragmaPrefix)
public String getPragmaPrefix()
Apache CXF