Package org.codehaus.commons.compiler
Class MultiCookable
- java.lang.Object
-
- org.codehaus.commons.compiler.Cookable
-
- org.codehaus.commons.compiler.MultiCookable
-
- All Implemented Interfaces:
ICookable,IMultiCookable
- Direct Known Subclasses:
ExpressionEvaluator,ExpressionEvaluator,ScriptEvaluator,ScriptEvaluator
public abstract class MultiCookable extends Cookable implements IMultiCookable
Implements all methods ofIMultiCookable, except forIMultiCookable.cook(String[], Reader[]).
-
-
Constructor Summary
Constructors Constructor Description MultiCookable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcook(java.io.InputStream... inputStreams)Same asCookable.cook(InputStream), but cooks a set of documents into one class.voidcook(java.io.InputStream[] inputStreams, java.lang.String[] encodings)Same asCookable.cook(InputStream, String), but cooks a set of documents into one class.voidcook(java.io.Reader... readers)Same asCookable.cook(Reader), but cooks a set of documents into one class.voidcook(java.lang.String[] strings)Same asCookable.cook(String), but cooks a set of documents into one class.voidcook(java.lang.String[] fileNames, java.io.InputStream[] inputStreams)Same asCookable.cook(String, InputStream), but cooks a set of documents into one class.voidcook(java.lang.String[] fileNames, java.io.InputStream[] inputStreams, java.lang.String[] encodings)Same asCookable.cook(String, InputStream, String), but cooks a set of documents into one class.abstract voidcook(java.lang.String[] fileNames, java.io.Reader[] readers)Same asCookable.cook(String, Reader), but cooks a set of documents into one class.voidcook(java.lang.String[] fileNames, java.lang.String[] strings)Same asCookable.cook(String, String), but cooks a set of documents into one class.voidcookFiles(java.io.File[] files)Same asCookable.cookFile(File), but cooks a set of documents into one class.voidcookFiles(java.io.File[] files, java.lang.String[] encodings)Same asCookable.cookFile(File, String), but cooks a set of documents into one class.voidcookFiles(java.lang.String[] fileNames)Same asCookable.cookFile(String), but cooks a set of documents into one class.voidcookFiles(java.lang.String[] fileNames, java.lang.String[] encodings)Same asCookable.cookFile(String, String), but cooks a set of documents into one class.-
Methods inherited from class org.codehaus.commons.compiler.Cookable
cook, cook, cook, cook, cook, cook, cook, cook, cookFile, cookFile, cookFile, cookFile
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codehaus.commons.compiler.ICookable
getBytecodes, setSourceVersion, setTargetVersion
-
-
-
-
Method Detail
-
cook
public final void cook(java.io.InputStream... inputStreams) throws CompileException, java.io.IOExceptionDescription copied from interface:IMultiCookableSame asCookable.cook(InputStream), but cooks a set of documents into one class.- Specified by:
cookin interfaceIMultiCookable- Throws:
CompileExceptionjava.io.IOException
-
cook
public final void cook(java.lang.String[] strings) throws CompileExceptionDescription copied from interface:IMultiCookableSame asCookable.cook(String), but cooks a set of documents into one class.- Specified by:
cookin interfaceIMultiCookable- Throws:
CompileException
-
cook
public final void cook(java.lang.String[] fileNames, java.io.InputStream[] inputStreams) throws CompileException, java.io.IOExceptionDescription copied from interface:IMultiCookableSame asCookable.cook(String, InputStream), but cooks a set of documents into one class.- Specified by:
cookin interfaceIMultiCookable- Throws:
CompileExceptionjava.io.IOException
-
cook
public final void cook(java.io.InputStream[] inputStreams, java.lang.String[] encodings) throws CompileException, java.io.IOExceptionDescription copied from interface:IMultiCookableSame asCookable.cook(InputStream, String), but cooks a set of documents into one class.- Specified by:
cookin interfaceIMultiCookable- Throws:
CompileExceptionjava.io.IOException
-
cook
public final void cook(java.lang.String[] fileNames, java.io.InputStream[] inputStreams, java.lang.String[] encodings) throws CompileException, java.io.IOExceptionDescription copied from interface:IMultiCookableSame asCookable.cook(String, InputStream, String), but cooks a set of documents into one class.- Specified by:
cookin interfaceIMultiCookable- Throws:
CompileExceptionjava.io.IOException
-
cook
public final void cook(java.lang.String[] fileNames, java.lang.String[] strings) throws CompileExceptionDescription copied from interface:IMultiCookableSame asCookable.cook(String, String), but cooks a set of documents into one class.- Specified by:
cookin interfaceIMultiCookable- Throws:
CompileException
-
cook
public abstract void cook(java.lang.String[] fileNames, java.io.Reader[] readers) throws CompileException, java.io.IOExceptionDescription copied from interface:IMultiCookableSame asCookable.cook(String, Reader), but cooks a set of documents into one class. Notice that if any of the documents causes trouble, the entire compilation will fail. If you need to report which of the documents causes the exception, you may want to use thefileNamesparameter to distinguish between the individual token sources.- Specified by:
cookin interfaceIMultiCookable- Throws:
CompileExceptionjava.io.IOException
-
cookFiles
public final void cookFiles(java.io.File[] files) throws CompileException, java.io.IOExceptionDescription copied from interface:IMultiCookableSame asCookable.cookFile(File), but cooks a set of documents into one class.- Specified by:
cookFilesin interfaceIMultiCookable- Throws:
CompileExceptionjava.io.IOException
-
cookFiles
public final void cookFiles(java.io.File[] files, java.lang.String[] encodings) throws CompileException, java.io.IOExceptionDescription copied from interface:IMultiCookableSame asCookable.cookFile(File, String), but cooks a set of documents into one class.- Specified by:
cookFilesin interfaceIMultiCookable- Throws:
CompileExceptionjava.io.IOException
-
cookFiles
public final void cookFiles(java.lang.String[] fileNames) throws CompileException, java.io.IOExceptionDescription copied from interface:IMultiCookableSame asCookable.cookFile(String), but cooks a set of documents into one class.- Specified by:
cookFilesin interfaceIMultiCookable- Throws:
CompileExceptionjava.io.IOException
-
cookFiles
public final void cookFiles(java.lang.String[] fileNames, java.lang.String[] encodings) throws CompileException, java.io.IOExceptionDescription copied from interface:IMultiCookableSame asCookable.cookFile(String, String), but cooks a set of documents into one class.- Specified by:
cookFilesin interfaceIMultiCookable- Throws:
CompileExceptionjava.io.IOException
-
cook
public final void cook(java.io.Reader... readers) throws CompileException, java.io.IOExceptionDescription copied from interface:IMultiCookableSame asCookable.cook(Reader), but cooks a set of documents into one class.- Specified by:
cookin interfaceIMultiCookable- Throws:
CompileExceptionjava.io.IOException
-
-