public interface Renderer
| Modifier and Type | Method and Description |
|---|---|
void |
highlight(java.lang.String name,
java.io.InputStream in,
java.io.OutputStream out,
java.lang.String encoding,
boolean fragment)
Transforms source code that's provided through an
InputStream to highlighted syntax and writes it back to
an OutputStream. |
java.lang.String |
highlight(java.lang.String name,
java.lang.String in,
java.lang.String encoding,
boolean fragment)
Transforms source code that's provided through a
String to highlighted syntax and returns it as a
String. |
void highlight(java.lang.String name, java.io.InputStream in, java.io.OutputStream out, java.lang.String encoding, boolean fragment) throws java.io.IOException
InputStream to highlighted syntax and writes it back to
an OutputStream.name - The name of the source file.in - The input stream that provides the source code that needs to
be transformed.out - The output stream to which to result should be written.encoding - The encoding that will be used to read and write the
text.fragment - true if the result should be a fragment;
or false if it should be a complete documentjava.io.IOExceptionhighlight(String, String, String, boolean)java.lang.String highlight(java.lang.String name, java.lang.String in, java.lang.String encoding, boolean fragment) throws java.io.IOException
String to highlighted syntax and returns it as a
String.name - The name of the source file.in - The input string that provides the source code that needs to
be transformed.encoding - The encoding that will be used to read and write the
text.fragment - true if the result should be a fragment;
or false if it should be a complete documentjava.io.IOExceptionhighlight(String, InputStream, OutputStream, String, boolean)Copyright © 2004-2006 Uwyn bvba/sprl and Omnicore Software. All Rights Reserved.