holoedit.fileio
Class HoloFileReader

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by holoedit.fileio.HoloFileReader
All Implemented Interfaces:
java.lang.Runnable, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class HoloFileReader
extends org.xml.sax.helpers.DefaultHandler
implements java.lang.Runnable


Nested Class Summary
private  class HoloFileReader.WaitAndCreateInstance
          on doit attendre d'avoir importŽ les sdif avant de faire les sdifinstances.
 
Field Summary
private  HoloTrack currentTrack
           
private  HoloTraj currentTraj
           
private  SDIFdataInstanceVector currentVSDIF
           
private  HoloTrajVector currentVTraj
           
private  WaveFormInstanceVector currentVWave
           
private  int datemax
           
private  java.lang.String dfn
           
private  boolean done
           
private  boolean error
           
private  java.lang.String filename
           
private  java.io.File fileToRead
           
private  double fileversion
           
private  GestionPistes gp
           
private  java.lang.String importOptions
           
private  int max
           
private  int nbWaveInstances
           
private  ProgressBar pb
           
private  java.lang.Thread runner
           
private  java.util.Vector<HoloSpeaker> speakers
           
private  java.util.Vector<HoloTrack> tracks
           
 
Constructor Summary
HoloFileReader(GestionPistes _gp, java.lang.String _f)
           
 
Method Summary
private  void clearDoneAndFineData()
           
 void endDocument()
           
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
 void run()
           
 void startDocument()
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filename

private java.lang.String filename

fileToRead

private java.io.File fileToRead

fileversion

private double fileversion

max

private int max

gp

private GestionPistes gp

runner

private java.lang.Thread runner

pb

private ProgressBar pb

tracks

private java.util.Vector<HoloTrack> tracks

currentTrack

private HoloTrack currentTrack

currentTraj

private HoloTraj currentTraj

currentVTraj

private HoloTrajVector currentVTraj

currentVWave

private WaveFormInstanceVector currentVWave

currentVSDIF

private SDIFdataInstanceVector currentVSDIF

speakers

private java.util.Vector<HoloSpeaker> speakers

done

private boolean done

error

private boolean error

datemax

private int datemax

dfn

private java.lang.String dfn

importOptions

private java.lang.String importOptions

nbWaveInstances

private int nbWaveInstances
Constructor Detail

HoloFileReader

public HoloFileReader(GestionPistes _gp,
                      java.lang.String _f)
Method Detail

run

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

startDocument

public void startDocument()
Specified by:
startDocument in interface org.xml.sax.ContentHandler
Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler

endDocument

public void endDocument()
Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attrs)
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler

clearDoneAndFineData

private void clearDoneAndFineData()