|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.commons.compiler.Cookable
public abstract class Cookable
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 | |
---|---|
Cookable()
|
Method Summary | |
---|---|
void |
cook(java.io.InputStream is)
Reads, scans, parses and compiles Java tokens from the given InputStream , encoded
in the "platform default encoding". |
void |
cook(java.io.InputStream is,
java.lang.String optionalEncoding)
Reads, scans, parses and compiles Java tokens from the given InputStream with the
given encoding . |
void |
cook(java.io.Reader r)
Reads, scans, parses and compiles Java tokens from the given Reader . |
void |
cook(java.lang.String s)
Reads, scans, parses and compiles Java tokens from the given String . |
void |
cook(java.lang.String optionalFileName,
java.io.InputStream is)
Reads, scans, parses and compiles Java tokens from the given InputStream , encoded
in the "platform default encoding". |
void |
cook(java.lang.String optionalFileName,
java.io.InputStream is,
java.lang.String optionalEncoding)
Reads, scans, parses and compiles Java tokens from the given InputStream with the
given encoding . |
abstract void |
cook(java.lang.String optionalFileName,
java.io.Reader r)
Reads, scans, parses and compiles Java tokens from the given Reader . |
void |
cook(java.lang.String optionalFileName,
java.lang.String s)
Reads, scans, parses and compiles Java tokens from the given String . |
void |
cookFile(java.io.File file)
Reads, scans, parses and compiles Java tokens from the given File , encoded
in the "platform default encoding". |
void |
cookFile(java.io.File file,
java.lang.String optionalEncoding)
Reads, scans, parses and compiles Java tokens from the given File with the
given encoding . |
void |
cookFile(java.lang.String fileName)
Reads, scans, parses and compiles Java tokens from the named file, encoded in the "platform default encoding". |
void |
cookFile(java.lang.String fileName,
java.lang.String optionalEncoding)
Reads, scans, parses and compiles Java tokens from the named file with the given encoding . |
static java.lang.String |
readString(java.io.Reader r)
Reads all characters from the given Reader into a String . |
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 |
---|
setDebuggingInformation, setParentClassLoader |
Constructor Detail |
---|
public Cookable()
Method Detail |
---|
public abstract void cook(java.lang.String optionalFileName, java.io.Reader r) throws CompileException, java.io.IOException
ICookable
Reader
.
cook
in interface ICookable
optionalFileName
- Used when reporting errors and warnings.
CompileException
java.io.IOException
public final void cook(java.io.Reader r) throws CompileException, java.io.IOException
ICookable
Reader
.
cook
in interface ICookable
CompileException
java.io.IOException
public final void cook(java.io.InputStream is) throws CompileException, java.io.IOException
ICookable
InputStream
, encoded
in the "platform default encoding".
cook
in interface ICookable
CompileException
java.io.IOException
public final void cook(java.lang.String optionalFileName, java.io.InputStream is) throws CompileException, java.io.IOException
ICookable
InputStream
, encoded
in the "platform default encoding".
cook
in interface ICookable
optionalFileName
- Used when reporting errors and warnings.
CompileException
java.io.IOException
public final void cook(java.io.InputStream is, java.lang.String optionalEncoding) throws CompileException, java.io.IOException
ICookable
InputStream
with the
given encoding
.
cook
in interface ICookable
CompileException
java.io.IOException
public final void cook(java.lang.String optionalFileName, java.io.InputStream is, java.lang.String optionalEncoding) throws CompileException, java.io.IOException
ICookable
InputStream
with the
given encoding
.
cook
in interface ICookable
optionalFileName
- Used when reporting errors and warnings.
CompileException
java.io.IOException
public void cook(java.lang.String s) throws CompileException
ICookable
String
.
cook
in interface ICookable
CompileException
public void cook(java.lang.String optionalFileName, java.lang.String s) throws CompileException
ICookable
String
.
cook
in interface ICookable
optionalFileName
- Used when reporting errors and warnings.
CompileException
public final void cookFile(java.io.File file) throws CompileException, java.io.IOException
ICookable
File
, encoded
in the "platform default encoding".
cookFile
in interface ICookable
CompileException
java.io.IOException
public final void cookFile(java.io.File file, java.lang.String optionalEncoding) throws CompileException, java.io.IOException
ICookable
File
with the
given encoding
.
cookFile
in interface ICookable
CompileException
java.io.IOException
public final void cookFile(java.lang.String fileName) throws CompileException, java.io.IOException
ICookable
cookFile
in interface ICookable
CompileException
java.io.IOException
public final void cookFile(java.lang.String fileName, java.lang.String optionalEncoding) throws CompileException, java.io.IOException
ICookable
encoding
.
cookFile
in interface ICookable
CompileException
java.io.IOException
public static java.lang.String readString(java.io.Reader r) throws java.io.IOException
Reader
into a String
.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |