Top Description Constructors Methods
org.codehaus.commons.compiler

public abstract Class Cookable

extends Object
implements ICookable
Class Inheritance
All Implemented Interfaces
org.codehaus.commons.compiler.ICookable
Known Direct Subclasses
org.codehaus.commons.compiler.MultiCookable
Imports
java.io.File, .FileInputStream, .IOException, .InputStream, .InputStreamReader, .Reader, .StringReader, org.codehaus.commons.nullanalysis.Nullable

Base class for a simple ICookable.

Basically, it implements all those cook() convewnience methods, and leaves only cook(String, Reader) unimplemented.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract void
cook(String
Used when reporting errors and warnings
fileName
,
Reader reader)

Redeclares org.codehaus.commons.compiler.ICookable.cook.

Reads, scans, parses and compiles Java tokens from the given Reader.
public final void
cook(Reader r)

Implements org.codehaus.commons.compiler.ICookable.cook.

Reads, scans, parses and compiles Java tokens from the given Reader.
public final void
cook(InputStream is)

Implements org.codehaus.commons.compiler.ICookable.cook.

Reads, scans, parses and compiles Java tokens from the given InputStream, encoded in the "platform default encoding".
public final void
cook(String
Used when reporting errors and warnings
fileName
,
InputStream is)

Implements org.codehaus.commons.compiler.ICookable.cook.

Reads, scans, parses and compiles Java tokens from the given InputStream, encoded in the "platform default encoding".
public final void
cook(InputStream is, String encoding)

Implements org.codehaus.commons.compiler.ICookable.cook.

Reads, scans, parses and compiles Java tokens from the given InputStream with the given encoding.
public final void
cook(String
Used when reporting errors and warnings
fileName
,
InputStream is, String encoding)

Implements org.codehaus.commons.compiler.ICookable.cook.

Reads, scans, parses and compiles Java tokens from the given InputStream with the given encoding.
public final void
cook(String s)

Implements org.codehaus.commons.compiler.ICookable.cook.

Reads, scans, parses and compiles Java tokens from the given String.
public final void
cook(String
Used when reporting errors and warnings
fileName
,
String s)

Implements org.codehaus.commons.compiler.ICookable.cook.

Reads, scans, parses and compiles Java tokens from the given String.
public final void
cookFile(File file)

Implements org.codehaus.commons.compiler.ICookable.cookFile.

Reads, scans, parses and compiles Java tokens from the given File, encoded in the "platform default encoding".
public final void
cookFile(File file, String encoding)

Implements org.codehaus.commons.compiler.ICookable.cookFile.

Reads, scans, parses and compiles Java tokens from the given File with the given encoding.
public final void
cookFile(String fileName)

Implements org.codehaus.commons.compiler.ICookable.cookFile.

Reads, scans, parses and compiles Java tokens from the named file, encoded in the "platform default encoding".
public final void
cookFile(String fileName, String encoding)

Implements org.codehaus.commons.compiler.ICookable.cookFile.

Reads, scans, parses and compiles Java tokens from the named file with the given encoding.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Cookableback to summary
public Cookable()

Method Detail

cookback to summary
public abstract void cook(String fileName, Reader reader) throws CompileException, IOException

Redeclares org.codehaus.commons.compiler.ICookable.cook.

Doc from org.codehaus.commons.compiler.ICookable.cook.

Reads, scans, parses and compiles Java tokens from the given Reader.

Parameters
fileName:String

Used when reporting errors and warnings

Annotations
@Override
cookback to summary
public final void cook(Reader r) throws CompileException, IOException

Implements org.codehaus.commons.compiler.ICookable.cook.

Doc from org.codehaus.commons.compiler.ICookable.cook.

Reads, scans, parses and compiles Java tokens from the given Reader.

Annotations
@Override
cookback to summary
public final void cook(InputStream is) throws CompileException, IOException

Implements org.codehaus.commons.compiler.ICookable.cook.

Doc from org.codehaus.commons.compiler.ICookable.cook.

Reads, scans, parses and compiles Java tokens from the given InputStream, encoded in the "platform default encoding".

Annotations
@Override
cookback to summary
public final void cook(String fileName, InputStream is) throws CompileException, IOException

Implements org.codehaus.commons.compiler.ICookable.cook.

Doc from org.codehaus.commons.compiler.ICookable.cook.

Reads, scans, parses and compiles Java tokens from the given InputStream, encoded in the "platform default encoding".

Parameters
fileName:String

Used when reporting errors and warnings

Annotations
@Override
cookback to summary
public final void cook(InputStream is, String encoding) throws CompileException, IOException

Implements org.codehaus.commons.compiler.ICookable.cook.

Doc from org.codehaus.commons.compiler.ICookable.cook.

Reads, scans, parses and compiles Java tokens from the given InputStream with the given encoding.

Annotations
@Override
cookback to summary
public final void cook(String fileName, InputStream is, String encoding) throws CompileException, IOException

Implements org.codehaus.commons.compiler.ICookable.cook.

Doc from org.codehaus.commons.compiler.ICookable.cook.

Reads, scans, parses and compiles Java tokens from the given InputStream with the given encoding.

Parameters
fileName:String

Used when reporting errors and warnings

Annotations
@Override
cookback to summary
public final void cook(String s) throws CompileException

Implements org.codehaus.commons.compiler.ICookable.cook.

Doc from org.codehaus.commons.compiler.ICookable.cook.

Reads, scans, parses and compiles Java tokens from the given String.

Annotations
@Override
cookback to summary
public final void cook(String fileName, String s) throws CompileException

Implements org.codehaus.commons.compiler.ICookable.cook.

Doc from org.codehaus.commons.compiler.ICookable.cook.

Reads, scans, parses and compiles Java tokens from the given String.

Parameters
fileName:String

Used when reporting errors and warnings

Annotations
@Override
cookFileback to summary
public final void cookFile(File file) throws CompileException, IOException

Implements org.codehaus.commons.compiler.ICookable.cookFile.

Doc from org.codehaus.commons.compiler.ICookable.cookFile.

Reads, scans, parses and compiles Java tokens from the given File, encoded in the "platform default encoding".

Annotations
@Override
cookFileback to summary
public final void cookFile(File file, String encoding) throws CompileException, IOException

Implements org.codehaus.commons.compiler.ICookable.cookFile.

Doc from org.codehaus.commons.compiler.ICookable.cookFile.

Reads, scans, parses and compiles Java tokens from the given File with the given encoding.

Annotations
@Override
cookFileback to summary
public final void cookFile(String fileName) throws CompileException, IOException

Implements org.codehaus.commons.compiler.ICookable.cookFile.

Doc from org.codehaus.commons.compiler.ICookable.cookFile.

Reads, scans, parses and compiles Java tokens from the named file, encoded in the "platform default encoding".

Annotations
@Override
cookFileback to summary
public final void cookFile(String fileName, String encoding) throws CompileException, IOException

Implements org.codehaus.commons.compiler.ICookable.cookFile.

Doc from org.codehaus.commons.compiler.ICookable.cookFile.

Reads, scans, parses and compiles Java tokens from the named file with the given encoding.

Annotations
@Override