Michael Ralston schrieb:
> On 4/2/07, Andreas Hartmann <[EMAIL PROTECTED]> wrote:
>> > These two methods both use ByteArrayOutputStream to copy the contents
>> > of documents. My implementation based on a lenya snapshot from 6
>> > months ago, used Object.clone() to copy the content of a page, and
>> > then left it up to the implementation of that content to decide how to
>> > best clone its data. What do you think of this approach?
>>
>> What would be the benefits in comparison with streams?
>> I guess you need the input and output streams anyway, or am I
>> missing something?
>>
> 
> My content implementation has a relational nature. My content does not
> have a getOutputStream method, as it is manipulated by a content
> specific interface (eg, setName, setDescription etc). My content does
> have a getInputStream method for generating content. I build my
> content procedurally as a org.w3c.dom.Document and then translate that
> into an inputStream.

Would it be very difficult to implement getOutputStream(), converting
the stream to a DOM and parsing this to get the relational data?

>From the performance POV this is certainly not a good idea, but IMO
we have to find a least common denominator for all repo implementations.
You can still provide your own DocumentManager if this isn't sufficient.

What do the others think?

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to