fix serialization issue
This commit is contained in:
@ -96,21 +96,14 @@ public class TextDbLoader implements IWaveformDbLoader{
|
||||
parseInput(gzipped?new GZIPInputStream(new FileInputStream(file)):new FileInputStream(file));
|
||||
for(IWaveform stream: streams){ stream.getWidth(); }
|
||||
return true;
|
||||
}
|
||||
} catch (IndexOutOfBoundsException e) {
|
||||
return false;
|
||||
} catch (IllegalArgumentException e) {
|
||||
return false;
|
||||
} catch(EOFException e) {
|
||||
return true;
|
||||
} catch(Exception e) {
|
||||
} else
|
||||
return false;
|
||||
} catch(IllegalArgumentException|ArrayIndexOutOfBoundsException e) {
|
||||
} catch(Throwable e) {
|
||||
System.out.println("---->>> Exception "+e.toString()+" caught while loading database");
|
||||
e.printStackTrace();
|
||||
} catch(Error e) {
|
||||
System.out.println("---->>> Exception "+e.toString()+" caught while loading database. StackTrace following... ");
|
||||
e.printStackTrace();
|
||||
}
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
private static boolean isTxfile(InputStream istream) {
|
||||
|
@ -24,7 +24,6 @@ import com.minres.scviewer.database.EventKind;
|
||||
import com.minres.scviewer.database.HierNode;
|
||||
import com.minres.scviewer.database.IEvent;
|
||||
import com.minres.scviewer.database.IWaveform;
|
||||
import com.minres.scviewer.database.IWaveformDb;
|
||||
import com.minres.scviewer.database.WaveformType;
|
||||
import com.minres.scviewer.database.tx.ITx;
|
||||
import com.minres.scviewer.database.tx.ITxEvent;
|
||||
@ -38,9 +37,7 @@ class TxStream extends HierNode implements IWaveform, Serializable {
|
||||
private static final long serialVersionUID = 6721893017334753858L;
|
||||
|
||||
private Long id;
|
||||
|
||||
private IWaveformDb database;
|
||||
|
||||
|
||||
private ArrayList<ITxGenerator> generators = new ArrayList<ITxGenerator>();
|
||||
|
||||
private int maxConcurrency;
|
||||
@ -51,7 +48,6 @@ class TxStream extends HierNode implements IWaveform, Serializable {
|
||||
TxStream(TextDbLoader loader, Long id, String name, String kind){
|
||||
super(name);
|
||||
this.id=id;
|
||||
this.database=loader.db;
|
||||
this.maxConcurrency=0;
|
||||
//events = new TreeMap<Long, List<ITxEvent>>()
|
||||
events = (BTreeMap<Long, IEvent[]>) loader.mapDb.treeMap(name).keySerializer(Serializer.LONG).createOrOpen();
|
||||
@ -61,11 +57,6 @@ class TxStream extends HierNode implements IWaveform, Serializable {
|
||||
return generators;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IWaveformDb getDb() {
|
||||
return database;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getWidth() {
|
||||
if(maxConcurrency==0){
|
||||
|
Reference in New Issue
Block a user