public abstract class Cookable extends Object implements ICookable
ICookable.
Basically, it implements all those cook() convewnience methods, and leaves only cook(String,
Reader) unimplemented.
| Constructor and Description |
|---|
Cookable() |
| Modifier and Type | Method and Description |
|---|---|
void |
cook(InputStream is)
Reads, scans, parses and compiles Java tokens from the given
InputStream, encoded
in the "platform default encoding". |
void |
cook(InputStream is,
String encoding)
Reads, scans, parses and compiles Java tokens from the given
InputStream with the given encoding. |
void |
cook(Reader r)
Reads, scans, parses and compiles Java tokens from the given
Reader. |
void |
cook(String s)
Reads, scans, parses and compiles Java tokens from the given
String. |
void |
cook(String fileName,
InputStream is)
Reads, scans, parses and compiles Java tokens from the given
InputStream, encoded
in the "platform default encoding". |
void |
cook(String fileName,
InputStream is,
String encoding)
Reads, scans, parses and compiles Java tokens from the given
InputStream with the given encoding. |
abstract void |
cook(String fileName,
Reader reader)
Reads, scans, parses and compiles Java tokens from the given
Reader. |
void |
cook(String fileName,
String s)
Reads, scans, parses and compiles Java tokens from the given
String. |
void |
cookFile(File file)
Reads, scans, parses and compiles Java tokens from the given
File, encoded in the "platform default
encoding". |
void |
cookFile(File file,
String encoding)
Reads, scans, parses and compiles Java tokens from the given
File with the given encoding. |
void |
cookFile(String fileName)
Reads, scans, parses and compiles Java tokens from the named file, encoded in the "platform default encoding".
|
void |
cookFile(String fileName,
String encoding)
Reads, scans, parses and compiles Java tokens from the named file with the given encoding.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBytecodes, setSourceVersion, setTargetVersionpublic abstract void cook(@Nullable String fileName, Reader reader) throws CompileException, IOException
ICookableReader.cook in interface ICookablefileName - Used when reporting errors and warningsCompileExceptionIOExceptionpublic final void cook(Reader r) throws CompileException, IOException
ICookableReader.cook in interface ICookableCompileExceptionIOExceptionpublic final void cook(InputStream is) throws CompileException, IOException
ICookableInputStream, encoded
in the "platform default encoding".cook in interface ICookableCompileExceptionIOExceptionpublic final void cook(@Nullable String fileName, InputStream is) throws CompileException, IOException
ICookableInputStream, encoded
in the "platform default encoding".cook in interface ICookablefileName - Used when reporting errors and warningsCompileExceptionIOExceptionpublic final void cook(InputStream is, @Nullable String encoding) throws CompileException, IOException
ICookableInputStream with the given encoding.cook in interface ICookableCompileExceptionIOExceptionpublic final void cook(@Nullable String fileName, InputStream is, @Nullable String encoding) throws CompileException, IOException
ICookableInputStream with the given encoding.cook in interface ICookablefileName - Used when reporting errors and warningsCompileExceptionIOExceptionpublic final void cook(String s) throws CompileException
ICookableString.cook in interface ICookableCompileExceptionpublic final void cook(@Nullable String fileName, String s) throws CompileException
ICookableString.cook in interface ICookablefileName - Used when reporting errors and warningsCompileExceptionpublic final void cookFile(File file) throws CompileException, IOException
ICookableFile, encoded in the "platform default
encoding".cookFile in interface ICookableCompileExceptionIOExceptionpublic final void cookFile(File file, @Nullable String encoding) throws CompileException, IOException
ICookableFile with the given encoding.cookFile in interface ICookableCompileExceptionIOExceptionpublic final void cookFile(String fileName) throws CompileException, IOException
ICookablecookFile in interface ICookableCompileExceptionIOExceptionpublic final void cookFile(String fileName, @Nullable String encoding) throws CompileException, IOException
ICookablecookFile in interface ICookableCompileExceptionIOExceptionCopyright © 2023. All rights reserved.