You could consider wrapping the actual output stream with a version that counts 
its output before delegating (ZnBufferedWriteStream does something like that). 
It might involve some experimentation to get the API right.

There is also LimitedWriteStream that might help.

On 28 Feb 2014, at 14:36, Damien Cassou <[email protected]> wrote:

> On Fri, Feb 28, 2014 at 2:20 PM, Sven Van Caekenberghe <[email protected]> wrote:
>> Please do, I can't imagine why it needs to do positioning just to write 
>> output, you know that I think the stream API is way to wide...
> 
> 
> this is used to count the number of written characters. As soon as
> 150000 characters are wrote, the method writes '...etc...' and then
> stops writing.
> 
> I would have to change that by writing to a String-based stream and
> counting there before writing to Transcript. However, this is going to
> take memory space which might not exist as an out of memory could be
> the cause of this method to be executed.
> 
> -- 
> Damien Cassou
> http://damiencassou.seasidehosting.st
> 
> "Success is the ability to go from one failure to another without
> losing enthusiasm."
> Winston Churchill
> 


Reply via email to