Package fr.ifremer.isisfish.util.matrix
Class SimpleParser
java.lang.Object
fr.ifremer.isisfish.util.matrix.SimpleParser
Very simple parse write for efficiency. Input stream must be correct no check
is done on data.
- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- poussin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected BufferedReaderprotected booleanprotected StringBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEOF()booleanisEOL()protected doubleprotected intcustom parseInt: 4 fois plus performant que Integer.parseInt ne supporte que les chiffres positif, et la chaine doit forcement etre un nombre valideprotected voidread(char sep) doublereadDouble(char sep) intreadInt(char sep) readString(char sep)
-
Field Details
-
intern
protected boolean intern -
in
-
sb
-
eof
protected boolean eof -
eol
protected boolean eol
-
-
Constructor Details
-
SimpleParser
- Parameters:
in- BufferedReader because Reader must support mark and reset
-
-
Method Details
-
isEOF
public boolean isEOF()- Returns:
- true if end of file
-
isEOL
public boolean isEOL()- Returns:
- true if end of line
-
read
- Throws:
IOException
-
readString
- Throws:
IOException
-
readInt
- Throws:
IOException
-
readDouble
- Throws:
IOException
-
parseDouble
- Throws:
IOException
-
parseInt
custom parseInt: 4 fois plus performant que Integer.parseInt ne supporte que les chiffres positif, et la chaine doit forcement etre un nombre valide- Parameters:
sb- la chaine representant l'entier- Returns:
-