On Aug 25, 2008, at 3:07 PM, Wang Ning wrote:
Hi Vincent,
I'd like that we keep the office converter (I'm not talking about
the
plugin) separate from xwiki core.
Do you mean that I should not use anything
related to the xwiki
context?
But when I implement saveDocument(String inputName, InputStream
documentData), I want to save the content(actually the text content)
in documentData to a xwiki document. I need convert InputStream to the
String. So I need the encoding for the conversion. I prefer the
encoding configuration by context.getWiki().getEncoding(), but I can't
get it if I can't access the xwiki context. Or we need a new input for
the encoding.
There are 2 parts in the office converter:
* a generic part independent of xwiki core
* the plugin (dependent on xwiki core)
I'd like to keep the generic part independent of xwiki core as much as
possible.
Thanks
-Vincent
The XWiki.getTemporaryDiredctory()
> method should be moved elsewhere but since this is not done for now
> I'd suggest you compute your own temporary directory for now and
> we'll
> replace the code with the right one later on.
>
> Thanks
> -Vincent