|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodel.AtletiFile
public class AtletiFile
Gestione dei dati di atleti su file di testo che prevede in successione: - intero per pettorale - string per neme e cognome - double per peso
Field Summary | |
---|---|
protected java.io.File |
f
|
protected java.util.Scanner |
lettore
|
Constructor Summary | |
---|---|
AtletiFile(java.io.File f)
Costruttore |
Method Summary | |
---|---|
boolean |
ancoraDati()
tes sulla disponibilità di altri dati |
java.lang.String |
getCognomeNome()
lettura della stringa cognome e nome |
double |
getPeso()
lettura del double del peso |
int |
getPettorale()
lettura dell'intero del pettorale |
int |
quanteLinee()
conta il numero di linee presenti nel file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.File f
protected java.util.Scanner lettore
Constructor Detail |
---|
public AtletiFile(java.io.File f) throws java.lang.Exception
f
- oggetto di riferimento al file dei dati
java.lang.Exception
- fallimento di aperturaMethod Detail |
---|
public int getPettorale() throws java.lang.NumberFormatException
java.lang.NumberFormatException
- dato non conforme all'attesopublic double getPeso() throws java.lang.NumberFormatException
java.lang.NumberFormatException
- dato non conforme all'attesopublic java.lang.String getCognomeNome()
public boolean ancoraDati()
public int quanteLinee()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |