On 7/25/07, Robert Burrell Donkin <[EMAIL PROTECTED]> wrote:
On 7/25/07, Bernd Fondermann <[EMAIL PROTECTED]> wrote:
> Robert Burrell Donkin wrote:
> >
http://svn.apache.org/repos/asf/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/Cursor.java
> >
> > contains a first cut at a cursor API
> >
> > comments and improvements welcomed :-)
>
> +1
>
> one question (disclosure: I am not at all a MIME expert):
> Is
> boolean moreMimeParts()
> possible, without look ahead, e.g reading the full part first?
the API is just factored out - same code, different interface so i'll
need to take a look at the code...
MimeBoundaryInputStream reads someway forward then pushes back. on
closer inspection, not sure that moreMimeParts is very aptly named. it
seems to be the negative of parent EOF. moreMimeParts does seems a
rather unreasonable and potentially expensive method for the API. i'll
see if i can remove it safely...
it only needs to check the next two characters so it's not very expensive
in the current form of the API, it would be difficult to remove
- robert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]