|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
java.io.PrintWriter
leon.misc.LyPrintWriter
public class LyPrintWriter
LyPrintWriter contains utility methods to write files.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Method Summary | |
---|---|
void |
addIndent()
Adds an indentation level. |
static boolean |
checkFile(java.lang.String filename,
java.lang.String destination,
java.lang.String type)
Checks if the given filename with the given extension at the given destination exits. |
static java.lang.String |
getFilePath(java.lang.String filename,
java.lang.String destination,
java.lang.String type)
Gets the file path the given filename with the given extension at the given destination exits. |
java.lang.String |
getIndentString()
Gets indent string. |
int |
getLinesCount()
Gets number of lines written on this writer. |
static LyPrintWriter |
getPrintWriter(java.lang.String filename,
java.lang.String destination,
java.lang.String type)
Gets the print writer associated to the given filename with the given extension at the given destination. |
void |
print(java.lang.String str)
Utility methods to print, avoid ^M at the end of lines and to indent result. |
void |
println()
Prints a newline character ('\n') and sets the _indentNext parameter to
true . |
void |
println(java.lang.String str)
Prints the given string and the newline character ('\n'). |
void |
printnl(java.lang.String str)
Print the given String after calling println() and printing two tabulations. |
void |
removeIndent()
Removes an indentation level. |
boolean |
wasChanged()
Indicates if the tag has changed or not. |
Methods inherited from class java.io.PrintWriter |
---|
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, write, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Method Detail |
---|
public static java.lang.String getFilePath(java.lang.String filename, java.lang.String destination, java.lang.String type)
filename
- the name of the file where the file will be writtendestination
- the path of the filetype
- the file extension type
public static boolean checkFile(java.lang.String filename, java.lang.String destination, java.lang.String type)
filename
- the name of the file where the file will be writtendestination
- the path of the filetype
- the file extension type
public static LyPrintWriter getPrintWriter(java.lang.String filename, java.lang.String destination, java.lang.String type)
filename
- the name of the file where the file will be writtendestination
- the path of the filetype
- the file extension type
public void print(java.lang.String str)
#_closeTag
is set to true
then print '>' character and set the
attribute to false
._indentNext
is set to true, print the number of tabulation of the _indent
parameter._changed
to true
.
print
in class java.io.PrintWriter
public void println(java.lang.String str)
_indentNext
to
true
.
println
in class java.io.PrintWriter
public void printnl(java.lang.String str)
println()
and printing two tabulations.
str
- the string to printpublic void println()
_indentNext
parameter to
true
.
println
in class java.io.PrintWriter
public void addIndent()
public void removeIndent()
public boolean wasChanged()
public java.lang.String getIndentString()
public int getLinesCount()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |