|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
org.hydrateframework.gen.LangWriter
public class LangWriter
print(String)
and println(String)
and converts special
escape sequences to have special formatting effects. See the definition
of print(String)
for details.Field Summary |
---|
Fields inherited from class java.io.FilterOutputStream |
---|
out |
Constructor Summary | |
---|---|
LangWriter(java.io.OutputStream out)
Construct a LangWriter that will output to the given output
stream. |
|
LangWriter(java.io.OutputStream out,
boolean autoFlush)
Construct a LangWriter with autoFlush. |
|
LangWriter(java.io.OutputStream out,
LangWriter basedOn)
Construct a LangWriter that will output to the given output
stream. |
Method Summary | |
---|---|
protected void |
addListSep(java.lang.StringBuffer sb)
|
void |
closeCmt()
This call can be used to terminate a comment block. |
void |
comment(java.lang.String s)
Write a single line style comment. |
void |
docCmt(java.lang.String s)
Write a document comment. |
java.lang.String |
getWrittenString()
|
protected java.lang.String |
parseString(java.lang.String s)
|
void |
print(java.lang.String s)
|
void |
println(java.lang.String s)
|
void |
startList(java.lang.String sep)
|
protected void |
tabIn()
|
protected void |
tabOut()
|
Methods inherited from class java.io.PrintStream |
---|
append, append, append, checkError, close, flush, format, format, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write, write |
Methods inherited from class java.io.FilterOutputStream |
---|
write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LangWriter(java.io.OutputStream out, LangWriter basedOn)
LangWriter
that will output to the given output
stream.
out
- The output stream to send formatted output to.public LangWriter(java.io.OutputStream out)
LangWriter
that will output to the given output
stream.
out
- The output stream to send formatted output to.public LangWriter(java.io.OutputStream out, boolean autoFlush)
LangWriter
with autoFlush.
out
- The output stream to send formatted output toMethod Detail |
---|
public java.lang.String getWrittenString()
public void docCmt(java.lang.String s)
might produce the following output:lw.docCmt("The following method performs some function that"); lw.docCmt("is <b>vital </b> to the operation of the class."); lw.docCmt("\n&at;param in an input parameter"); lw.print("void do(String in) {");
see the javadoc documentation for details of the format of doc comments.&sl;** * The following method performs some function * that is <b>vital</b> to the * operation of the class. * &at;param in an input parameter *&sl; void do(String in) {
s
- the next 'line' of text to be used as a comment. Successive
calls treat all text as a single block which will be word wrapped depending
on available space.public void comment(java.lang.String s)
s
- the next 'line' of text to be used as a comment. Successive
calls treat all text as a single block which will be word wrapped depending
on available space.public void closeCmt()
public void print(java.lang.String s)
print
in class java.io.PrintStream
public void println(java.lang.String s)
println
in class java.io.PrintStream
protected java.lang.String parseString(java.lang.String s)
public void startList(java.lang.String sep)
protected void addListSep(java.lang.StringBuffer sb)
protected void tabOut()
protected void tabIn()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |