Hi all,

I am writing an applet to display chromatogram files. I am using
ChromatogramFactory to open the files. I've gotten the display to work when
opening the chromatogram from a file, but when I pass in an InputStream (like
from URL.openStream() or a FileInputStream) it gives me the following error
message:

Exception in thread "main" java.lang.ClassCastException:
org.biojava.bio.program.abi.ABIFParser$DataStream
        at
org.biojava.bio.program.abi.ABIFChromatogram$Parser.parse(ABIFChromatogram.java:154)
        at
org.biojava.bio.program.abi.ABIFChromatogram$Parser.<init>(ABIFChromatogram.java:118)
        at 
org.biojava.bio.program.abi.ABIFChromatogram.load(ABIFChromatogram.java:101)
        at
org.biojava.bio.program.abi.ABIFChromatogram.create(ABIFChromatogram.java:89)
        at
org.biojava.bio.chromatogram.ChromatogramFactory.create(ChromatogramFactory.java:119)
        at JimChromatogramGUI.<init>(JimChromatogramGUI.java:16)
        at JimChromatogramGUI.main(JimChromatogramGUI.java:52)

Why is it doing this? Is there some way to get around this problem or fix it so
that I can open a file from a url?

--

_______________________________________________
Biojava-l mailing list  -  [email protected]
http://lists.open-bio.org/mailman/listinfo/biojava-l

Reply via email to