org.codehaus.janino
public abstract class Cookable extends Object
This class declares numerous cook*()
methods
that use a java.lang.String, a java.io.File, an java.io.InputStream or
a java.io.Reader as the source of characters for scanning.
The cook*()
methods eventually invoke the abstract cook
method with a correctly configured Scanner.
Method Summary | |
---|---|
abstract void | cook(Scanner scanner)
To be implemented by the derived classes. |
void | cook(Reader r) |
void | cook(String optionalFileName, Reader r) |
void | cook(InputStream is)
Cook tokens from an InputStream, encoded in the "platform default encoding". |
void | cook(String optionalFileName, InputStream is)
Cook tokens from an InputStream, encoded in the "platform default encoding".
|
void | cook(InputStream is, String optionalEncoding) |
void | cook(String optionalFileName, InputStream is, String optionalEncoding) |
void | cook(String s)
Cook tokens from a java.lang.String.
|
void | cookFile(File file)
Cook tokens from the given File, encoded in the "platform default encoding". |
void | cookFile(File file, String optionalEncoding) |
void | cookFile(String fileName)
Cook tokens from the named file, encoded in the "platform default encoding". |
void | cookFile(String fileName, String optionalEncoding) |
Parameters: optionalFileName Used when reporting errors and warnings.
Parameters: optionalFileName Used when reporting errors and warnings.
Parameters: optionalFileName Used when reporting errors and warnings.
Notice: If you pass a string literal, be sure to escape all JavaTM special characters, especially backslashes.