jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Edelson <jus...@justinedelson.com>
Subject Re: Node Type Registration in JCR 2.0
Date Thu, 09 Sep 2010 12:57:32 GMT
The API you should use is CndImporter.registerNodeTypes (from the JCR
Commons module). This method accepts a Reader (not an InputStream), so
you should be able to construct a InputStreamReader with the
appropriate character encoding.

Justin

On Thu, Sep 9, 2010 at 8:14 AM, Gadbury <gadbury@googlemail.com> wrote:
>
> Found the solution to the ParseException!  In Windows command prompt, I used
> the command:
>
> type myCndFile.cnd
>
> ...which showed me that at the start of the cnd file there was a byte order
> mark (added as the file had been saved in UTF-8 format).  Obviously the
> culprit that was causing the cnd parser issues!  I resolved by saving the
> cnd file in ANSI format.
>
> Should the cnd parser expect a byte order mark - is it a bug?
> --
> View this message in context: http://jackrabbit.510166.n4.nabble.com/Node-Type-Registration-in-JCR-2-0-tp2532652p2532735.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>

Mime
View raw message