Jamie,

First, it is very important that you subscribe to the poi-dev list. I will
try to help you if you are having trouble subscribing. Maybe try a different
email address.

I think what you are proposing is a great idea. I just started working on an
event system last week. My plan is to have an object model and a parsing
system that signals events. The object model is for someone who has the
memory to load the full document structure into memory and probably this
will be used for editing Word documents in the future with POI. The parsing
system with events is for the reading Word documents with minimal overhead.

The way I have been doing it is I have a low level event listener (see
org.apache.hdf.event.HDFLowLevelParsingListener) that signals the PAPXs and
the CHPXs and SEPXs and other properties. The object model consumes these
events. There is no point in uncompressing these until their properties are
needed.

I also have a high level event listener (see
org.apache.hdf.event.HDFParsingListener). This is where all of the
uncompressed properties are exposed (PAPs, CHPs, SEPs). The challenging part
to this is translating the low level events into the high level events. I've
created a class called org.apache.hdf.event.EventBridge that does this.

Jamie, that is how I am planning on doing it, if you have any input I am
listening. It sounds like I am going along the lines you had in mind. I
really hope you will get involved. It is nice to hear an intelligent
suggestion from someone with some knowledge of the Word format.

Ryan

----- Original Message -----
From: "Jamie Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 07, 2002 2:31 PM
Subject: HDF direction, progress?


> Ryan -
>
> I have thinking about how to "stream" word files (with formatting
> information) to consumer classes that could do any one of a number of
things
> with the data.  I was going to start with POIfs as a base, then I bumped
> into your work in the scratchpad directory.  It seems like a promising
> start.
>
> I haven't been able to successfully subscribe to the POI mailing list - so
I
> don't know how active the hdf threads are, but I was wondering if you had
a
> plan for the hdf code?
>
> My current thinking was to create a character (block) streamer that would
> generate "events" every time there was a PAP/CHP change.  Classes could
> subscribe to the stream and register call backs for the change events.
Your
> FO example could then sit above this subscribing to the stream (as a
> concrete example).
>
> I've been grappling with what level of information (or what structure) to
> pass when a PAP/CHP event takes place (PAP itself seems too bulky and PAPx
> isn't too useful unless you have some idea how PAPs are built) [and
clearly
> there needs to be some higher order property information that is available
> too].  Have you given such a layout any thought?
>
> Jamie


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

Reply via email to