|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.ext.util.Splitter
public class Splitter
Splits the given input stream or filename(s) into one or more output files. The splitter looks for lines containing the text:
<!-- Filename: newfilename.blah -->
When such a line is encountered, a new file output stream is created, and the input is written to the named file until either the end of the input stream, or another such tag is encountered. The filename can be surrounded by optional double-quotes if leading or trailing whitespace is required in the filename.
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Split the given file or files into one or more output files. |
static void |
splitInputStream(java.io.InputStream stream)
Read an input stream and split it into one or more output files based on comment tokens in the input. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void splitInputStream(java.io.InputStream stream) throws java.io.IOException
stream
- the input stream to be split into separate files
java.io.IOException
- there was a problem with either input or output
streamspublic static void main(java.lang.String[] args) throws java.io.IOException
args
- the input filename, or none to specify standard input
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |