holoedit.fileio
Class TextFileReader

java.lang.Object
  extended by holoedit.fileio.TextFileReader
All Implemented Interfaces:
java.lang.Runnable

public class TextFileReader
extends java.lang.Object
implements java.lang.Runnable

Permet la crŽation d'une holoData ˆ partir d'un fichier texte. Le fichier doit etre constituŽ de plusieurs colones, la premire correspond au temps, les autres aux diffŽrents fields. Les nombres ˆ virgules doivent etre avec des points, pas des virgules. Les colonnes doivent etre sŽparŽes par des espaces ou tabulations (1 ou +).


Field Summary
private  boolean done
           
private  int error
           
static int FILE_ERROR
           
private  boolean fine
           
private  java.util.HashMap<java.lang.Double,java.util.Vector<java.util.Vector<java.lang.Double>>> hashMap
           
private  HoloSDIFdata[] hSDIFdts
           
static int LOAD_ERROR
           
static int NO_ERROR
           
private  ProgressBar progressBar
          Pour l'affichage d'une barre de progression pendant l'ouverture du fichier
private  java.lang.Thread runner
           
static int TEXT_FORMAT_ERROR
           
 java.io.File textFile
          associated text file
static int TYPE_ERROR
           
 
Constructor Summary
TextFileReader(java.io.File f)
           
 
Method Summary
private  void createSDIFdata(HoloSDIFdata data)
           
 int getError()
           
 HoloSDIFdata[] getHoloSDIFdatas()
           
 boolean isDone()
           
 boolean isFine()
           
 void run()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

error

private int error

NO_ERROR

public static final int NO_ERROR
See Also:
Constant Field Values

TYPE_ERROR

public static final int TYPE_ERROR
See Also:
Constant Field Values

LOAD_ERROR

public static final int LOAD_ERROR
See Also:
Constant Field Values

FILE_ERROR

public static final int FILE_ERROR
See Also:
Constant Field Values

TEXT_FORMAT_ERROR

public static final int TEXT_FORMAT_ERROR
See Also:
Constant Field Values

progressBar

private ProgressBar progressBar
Pour l'affichage d'une barre de progression pendant l'ouverture du fichier


runner

private java.lang.Thread runner

hSDIFdts

private HoloSDIFdata[] hSDIFdts

fine

private boolean fine

done

private boolean done

textFile

public java.io.File textFile
associated text file


hashMap

private java.util.HashMap<java.lang.Double,java.util.Vector<java.util.Vector<java.lang.Double>>> hashMap
Constructor Detail

TextFileReader

public TextFileReader(java.io.File f)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

createSDIFdata

private void createSDIFdata(HoloSDIFdata data)

isFine

public boolean isFine()

isDone

public boolean isDone()

getError

public int getError()

getHoloSDIFdatas

public HoloSDIFdata[] getHoloSDIFdatas()

stop

public void stop()