Hi,

On 8/25/07, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote:
> On 8/24/07, Jukka Zitting <[EMAIL PROTECTED]> wrote:
> > ...Extract metadata:
> >
> >     InputStream stream = ...;
> >     Metadata metadata = new Metadata();
> >     SomeTikaInterface parser = new SomeTikaClass();
> >     parser.extractMetadata(stream, metadata);...
>
> Maybe this (and extractContent() as well) need an additional
> TikaParseOptions parameter that sets options just for this parsing
> call?

Good point, though we could also pass all such options as a part of
the metadata argument. If the options affect just this one document,
then I would argue that those options might as well be a part of the
document-specific metadata.

More generic options, like the XML parser options to use when parsing
application/xml documents, should probably be handled as JavaBean
properties of the instantiated parser objects.

BR,

Jukka Zitting

Reply via email to