|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.urd.ant.website.Compiler
A simple page compiler for the Urd website. The compiler is linear and must be reset between
uses. It takes a source template on creation it then accepts any number of Substitution
objects, the result it then printed to a stream.
WebsiteCompiler| Method Summary | |
void |
add(Substitution sub)
Add substitution object to compiler. |
void |
compile(DocBody body,
java.io.File out)
Take an input stream and transform it using the current compiler state. |
void |
compile(DocBody body,
java.io.OutputStream out)
Take an input stream and transform it using the current compiler state. |
static Compiler |
getInstance(java.io.File in)
Get a reference to the compiler which will read it's template from an file. |
static Compiler |
getInstance(java.io.InputStream in)
Get a reference to the compiler which will read it's template from an input stream. |
void |
remove(Substitution sub)
Remove substitution filter from compiler |
void |
reset()
Reset compiler. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Compiler getInstance(java.io.InputStream in)
throws java.io.IOException
in - Input stream to read the template from
java.io.IOException - On I/O errors
public static Compiler getInstance(java.io.File in)
throws java.io.IOException
in - File to read the template from
java.io.IOException - On I/O errorspublic void reset()
public void add(Substitution sub)
public void remove(Substitution sub)
public void compile(DocBody body,
java.io.OutputStream out)
throws CompilerException
body - Template body to compile into templateout - Output stream to compile to
java.io.IOException - On I/O errors
XMLException - On XML related errors
CompilerException
public void compile(DocBody body,
java.io.File out)
throws CompilerException
body - Template body to compile into templateout - File to compile to
java.io.IOException - On I/O errors
XMLException - On XML related errors
CompilerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||