|
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.Objectleon.peer.LyConnection
leon.peer.file.LyFileConnection
public class LyFileConnection
This class is used as a connection for local files.
LyConnection
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static boolean |
TEST_CHARSET
When reading file lines, check that default charset is correct. |
Constructor Summary | |
---|---|
LyFileConnection(LyApplication application,
java.lang.String baseDirectory)
Constructor. |
Method Summary | |
---|---|
void |
closeFile(LyClass peerClass,
java.io.PrintWriter pw)
Close the PrintWriter and write the end of file. |
java.lang.String |
getConnectionCharset()
Gets the connection charset. |
int |
getStartLine()
Return the start line. |
java.io.PrintWriter |
openFile(LyClass peerClass)
Open the file of peerClass and write the begining of file. |
java.util.Vector<java.lang.String> |
readFile(LyClass peerClass)
Return the lines describing the objects of the class. |
boolean |
writeFile(LyClass peerClass,
java.util.Vector<java.lang.String> lines)
Write lines in the file containing objects data. |
void |
writeLine(java.lang.String line,
java.io.PrintWriter pw)
Write lines in the file containing objects data. |
Methods inherited from class leon.peer.LyConnection |
---|
addValue, autoCommit, close, commit, dump, getError, getUID, getValue, isClosed, isReserved, prepareCommit, released, reserved, rollback, setDataProvider, setError, setUID |
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
public static boolean TEST_CHARSET
Constructor Detail |
---|
public LyFileConnection(LyApplication application, java.lang.String baseDirectory)
classInfo
- ClassInfo used by the request encoder.Method Detail |
---|
public java.util.Vector<java.lang.String> readFile(LyClass peerClass)
public boolean writeFile(LyClass peerClass, java.util.Vector<java.lang.String> lines)
public java.io.PrintWriter openFile(LyClass peerClass)
public void writeLine(java.lang.String line, java.io.PrintWriter pw)
public void closeFile(LyClass peerClass, java.io.PrintWriter pw)
public java.lang.String getConnectionCharset()
public int getStartLine()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |