|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectllegirfitxer
public class llegirfitxer
Clase per la llegir fitxers * @author Luis i Manel
Constructor Summary | |
---|---|
llegirfitxer(java.lang.String lugar)
Constructor de llegirditxer |
Method Summary | |
---|---|
boolean |
abre(java.lang.String lugar)
Tanca el fitxer inicial(el creado en el constructor) y abre o crea uno nuevo. |
boolean |
cierra()
Tanca el fitxer obert actualmente. |
int |
getChar()
|
java.lang.String[] |
getLineas()
|
java.lang.String |
leeLinea()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public llegirfitxer(java.lang.String lugar) throws java.io.FileNotFoundException
lugar
-
java.io.FileNotFoundException
Method Detail |
---|
public java.lang.String[] getLineas()
public java.lang.String leeLinea()
public int getChar() throws java.io.IOException
java.io.IOException
- Si es produiex un error d'entrada o de sortidapublic boolean abre(java.lang.String lugar) throws java.io.FileNotFoundException
lugar
- ruta del fitxer.
java.io.FileNotFoundException
- Si es produeix un error al crear un nou fitxer.public boolean cierra()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |