Exported Interfaces - Details |
XExtendedFilterDetection
- Description
- makes the deep detection
Generic type detection searches for a registered DetectService for an
already flat detected type. If any could be found it will be created and
used by calling methods of this interface. It gets a MediaDescriptor
which contains information about the document which should be detected and must return
- an internal type name for detected format
- or `NULL` if format is unknown nor supported.
May be that given descriptor already includes the opened document stream as parameter
MediaDescriptor::InputStream. Then this one should be used every time.
If it's not included in descriptor the value of MediaDescriptor::URL
must be used to open requested resource by this service.
Note: The stream should be added to the descriptor if it wasn't a part of them before.
So further steps on the whole detection process can use it and will perform her work.
It's further not allowed to hold a reference to this stream any longer. Only copies
will be valid then. Otherwise nobody can close this stream then.
|
|
Top of Page
Copyright © 2020, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.