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
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected BufferedReader
protected boolean
protected StringBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isEOF()
boolean
isEOL()
protected double
protected int
custom parseInt: 4 fois plus performant que Integer.parseInt ne supporte que les chiffres positif, et la chaine doit forcement etre un nombre valideprotected void
read
(char sep) double
readDouble
(char sep) int
readInt
(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:
-