Damn... I'm procrastinating... should be preparing for my defense... :(

On Tue, Apr 1, 2008 at 2:25 PM, Noel O'Boyle <[EMAIL PROTECTED]> wrote:
> Is it possible to access the CDK API to get a list of file format readers?
>
>  I have tried ReaderFactory().getFormats() but I am not sure what it's
>  doing (there's no JavaDoc), and it doesn't include the SmilesReader
>  for instance.

But it should include the SMILESFormat, not?

Each format may be instance of IChemFormat. If it is, it has
getReaderClassName() which returns a String if there is a reader, and
a null, if there is no reader.

>  I note that access to these formats from scripting languages could
>  have been greatly simplified if for each format a unique preferred
>  extension were specified (since the API is now stable, can I suggest
>  an additional getFormatID() or so).

public String getPreferredNameExtension() ?

>  P.S. I also note that "pdb,ent" is not an extension, and that it
>  should be "Brookhaven" not "Brookhave".

Please file as bug report...

Thanx,

Egon

-- 
----
http://chem-bla-ics.blogspot.com/

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to