Re: output to BMP possible?
Jeremias Maerki <[email protected]> Wed, 19 Nov 2003 16:51:59 +0100
| Newsgroups | gmane.comp.krysalis.user |
|---|---|
| Message-ID | <[email protected]> |
See below.
On 19.11.2003 16:42:39 Jorg Heymans wrote:
> yup that did it thanks :)
>
> Because i'm using this from within cocoon, i like the fact that this lib
> is using avalon, it matches nicely :)
:-)
> Another thing:
> Is it possible to pass in a Document object to get the configuration?
>
> So instead of
> DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
> Configuration cfg = builder.buildFromFile(new File("barcode-cfg.xml"));
>
> something like
> DOMConfigurationbuilder builder = new DOMConfigurationbuilder();
> Configuration cfg = builder.buildFromDocument(document);
There's:
http://www.krysalis.org/barcode/javadocs/org/krysalis/barcode/tools/ConfigurationUtil.html
You could try that but I'm not sure that it runs in every situation.
Feedback would be highly appreciated.
> Alternatively SAX events would be OK as well (to be used in cocoon
> generator or transformer=
Then have a look at Avalon Framework's documentation. The
SAXConfigurationHandler should help you in this case:
http://avalon.apache.org/framework/api/org/apache/avalon/framework/configuration/SAXConfigurationHandler.html
Jeremias Maerki
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/