Package org.codehaus.commons.compiler
Class Cookable
java.lang.Object
org.codehaus.commons.compiler.Cookable
- All Implemented Interfaces:
ICookable
- Direct Known Subclasses:
SimpleCompiler,SimpleCompiler
Base class for a simple
ICookable.-
Field Summary
Fields inherited from interface org.codehaus.commons.compiler.ICookable
BOOT_CLASS_LOADER, SYSTEM_PROPERTY_SOURCE_DEBUGGING_DIR, SYSTEM_PROPERTY_SOURCE_DEBUGGING_ENABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidcook(InputStream is) Reads, scans, parses and compiles Java tokens from the givenInputStream, encoded in the "platform default encoding".final voidcook(InputStream is, String optionalEncoding) Reads, scans, parses and compiles Java tokens from the givenInputStreamwith the givenencoding.final voidReads, scans, parses and compiles Java tokens from the givenReader.voidReads, scans, parses and compiles Java tokens from the givenString.final voidcook(String optionalFileName, InputStream is) Reads, scans, parses and compiles Java tokens from the givenInputStream, encoded in the "platform default encoding".final voidcook(String optionalFileName, InputStream is, String optionalEncoding) Reads, scans, parses and compiles Java tokens from the givenInputStreamwith the givenencoding.abstract voidReads, scans, parses and compiles Java tokens from the givenReader.voidReads, scans, parses and compiles Java tokens from the givenString.final voidReads, scans, parses and compiles Java tokens from the givenFile, encoded in the "platform default encoding".final voidReads, scans, parses and compiles Java tokens from the givenFilewith the givenencoding.final voidReads, scans, parses and compiles Java tokens from the named file, encoded in the "platform default encoding".final voidReads, scans, parses and compiles Java tokens from the named file with the givenencoding.static StringreadString(Reader r) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codehaus.commons.compiler.ICookable
setDebuggingInformation, setParentClassLoader
-
Constructor Details
-
Cookable
public Cookable()
-
-
Method Details
-
cook
Description copied from interface:ICookableReads, scans, parses and compiles Java tokens from the givenReader.- Specified by:
cookin interfaceICookable- Parameters:
optionalFileName- Used when reporting errors and warnings.- Throws:
CompileExceptionIOException- See Also:
-
cook
Description copied from interface:ICookableReads, scans, parses and compiles Java tokens from the givenReader.- Specified by:
cookin interfaceICookable- Throws:
CompileExceptionIOException- See Also:
-
cook
Description copied from interface:ICookableReads, scans, parses and compiles Java tokens from the givenInputStream, encoded in the "platform default encoding".- Specified by:
cookin interfaceICookable- Throws:
CompileExceptionIOException- See Also:
-
cook
public final void cook(String optionalFileName, InputStream is) throws CompileException, IOException Description copied from interface:ICookableReads, scans, parses and compiles Java tokens from the givenInputStream, encoded in the "platform default encoding".- Specified by:
cookin interfaceICookable- Parameters:
optionalFileName- Used when reporting errors and warnings.- Throws:
CompileExceptionIOException- See Also:
-
cook
public final void cook(InputStream is, String optionalEncoding) throws CompileException, IOException Description copied from interface:ICookableReads, scans, parses and compiles Java tokens from the givenInputStreamwith the givenencoding.- Specified by:
cookin interfaceICookable- Throws:
CompileExceptionIOException- See Also:
-
cook
public final void cook(String optionalFileName, InputStream is, String optionalEncoding) throws CompileException, IOException Description copied from interface:ICookableReads, scans, parses and compiles Java tokens from the givenInputStreamwith the givenencoding.- Specified by:
cookin interfaceICookable- Parameters:
optionalFileName- Used when reporting errors and warnings.- Throws:
CompileExceptionIOException- See Also:
-
cook
Description copied from interface:ICookableReads, scans, parses and compiles Java tokens from the givenString.- Specified by:
cookin interfaceICookable- Throws:
CompileException- See Also:
-
cook
Description copied from interface:ICookableReads, scans, parses and compiles Java tokens from the givenString.- Specified by:
cookin interfaceICookable- Parameters:
optionalFileName- Used when reporting errors and warnings.- Throws:
CompileException- See Also:
-
cookFile
Description copied from interface:ICookableReads, scans, parses and compiles Java tokens from the givenFile, encoded in the "platform default encoding".- Specified by:
cookFilein interfaceICookable- Throws:
CompileExceptionIOException- See Also:
-
cookFile
Description copied from interface:ICookableReads, scans, parses and compiles Java tokens from the givenFilewith the givenencoding.- Specified by:
cookFilein interfaceICookable- Throws:
CompileExceptionIOException- See Also:
-
cookFile
Description copied from interface:ICookableReads, scans, parses and compiles Java tokens from the named file, encoded in the "platform default encoding".- Specified by:
cookFilein interfaceICookable- Throws:
CompileExceptionIOException- See Also:
-
cookFile
public final void cookFile(String fileName, String optionalEncoding) throws CompileException, IOException Description copied from interface:ICookableReads, scans, parses and compiles Java tokens from the named file with the givenencoding.- Specified by:
cookFilein interfaceICookable- Throws:
CompileExceptionIOException- See Also:
-
readString
- Throws:
IOException
-