|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectTextFile
public class TextFile
| Constructor Summary | |
|---|---|
TextFile(java.lang.String nameFile)
Constructeur |
|
| Method Summary | |
|---|---|
boolean |
close()
Close file |
boolean |
eof()
Return the current position is at end of file |
long |
getLength()
Return the length of the file |
java.lang.String |
getNameFile()
Return the name of file |
long |
getPosition()
Return the current position inside the file |
boolean |
isOpen()
Return if the file is opened |
boolean |
openRead()
Open file in read mode |
boolean |
openWrite()
Open file in write mode |
java.lang.String |
readString()
Read a string into the file |
boolean |
setNameFile(java.lang.String nameFile)
Change the file name |
boolean |
writeString(java.lang.String str)
Write a string into the file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextFile(java.lang.String nameFile)
nameFile - name of the file to open/create| Method Detail |
|---|
public java.lang.String getNameFile()
public boolean isOpen()
public long getLength()
public long getPosition()
public boolean setNameFile(java.lang.String nameFile)
public boolean openRead()
public boolean openWrite()
public boolean close()
public boolean eof()
public java.lang.String readString()
public boolean writeString(java.lang.String str)
str - string to write
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||