[Biojava-l] Chromatogram from a file input stream

Richard Holland holland at ebi.ac.uk
Thu Sep 27 07:42:46 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is a bug. Thanks for finding it. I have fixed it in the latest CVS
version of biojava-live.

cheers,
Richard

gtg477y at mail.gatech.edu wrote:
> 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  -  Biojava-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biojava-l
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+1724C5LeMEKA/QRAkVcAJ4kLy2XNTBgApOcN+kisbDFSeUZSACfXgKF
avd11Lw/13FZ+ZF8tG/jBqw=
=kvPW
-----END PGP SIGNATURE-----



More information about the Biojava-l mailing list