public abstract class DocumentsProvider extends ContentProvider
<manifest> ... <application> ... <provider android:name="com.example.MyCloudProvider" android:authorities="com.example.mycloudprovider" android:exported="true" android:grantUriPermissions="true" android:permission="android.permission.MANAGE_DOCUMENTS" android:enabled="@bool/isAtLeastKitKat"> <intent-filter> <action android:name="android.content.action.DOCUMENTS_PROVIDER" /> </intent-filter> </provider> ... </application> </manifest>
When defining your provider, you must protect it with
android.Manifest.permission#MANAGE_DOCUMENTS
, which is a permission
only the system can obtain. Applications cannot use a documents provider
directly; they must go through Intent.ACTION_OPEN_DOCUMENT
or
Intent.ACTION_CREATE_DOCUMENT
which requires a user to actively
navigate and select documents. When a user selects documents through that UI,
the system issues narrow URI permission grants to the requesting application.
A document can be either an openable stream (with a specific MIME type), or a
directory containing additional documents (with the
DocumentsContract.Document.MIME_TYPE_DIR
MIME type). Each directory represents the top
of a subtree containing zero or more documents, which can recursively contain
even more documents and directories.
Each document can have different capabilities, as described by
DocumentsContract.Document.COLUMN_FLAGS
. For example, if a document can be represented
as a thumbnail, your provider can set
DocumentsContract.Document.FLAG_SUPPORTS_THUMBNAIL
and implement
openDocumentThumbnail(String, Point, CancellationSignal)
to return
that thumbnail.
Each document under a provider is uniquely referenced by its
DocumentsContract.Document.COLUMN_DOCUMENT_ID
, which must not change once returned. A
single document can be included in multiple directories when responding to
queryChildDocuments(String, String[], String)
. For example, a
provider might surface a single photo in multiple locations: once in a
directory of geographic locations, and again in a directory of dates.
All documents are surfaced through one or more "roots." Each root represents
the top of a document tree that a user can navigate. For example, a root
could represent an account or a physical storage device. Similar to
documents, each root can have capabilities expressed through
DocumentsContract.Root.COLUMN_FLAGS
.
ContentProvider.PipeDataWriter<T>
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN
Constructor and Description |
---|
DocumentsProvider() |
Modifier and Type | Method and Description |
---|---|
void |
attachInfo(Context context,
ProviderInfo info)
Implementation is provided by the parent class.
|
Bundle |
call(String method,
String arg,
Bundle extras)
Implementation is provided by the parent class.
|
Uri |
canonicalize(Uri uri)
Implementation is provided by the parent class.
|
String |
copyDocument(String sourceDocumentId,
String targetParentDocumentId)
Copy the requested document or a document tree.
|
String |
createDocument(String parentDocumentId,
String mimeType,
String displayName)
Create a new document and return its newly generated
DocumentsContract.Document.COLUMN_DOCUMENT_ID . |
int |
delete(Uri uri,
String selection,
String[] selectionArgs)
Implementation is provided by the parent class.
|
void |
deleteDocument(String documentId)
Delete the requested document.
|
String[] |
getDocumentStreamTypes(String documentId,
String mimeTypeFilter)
Return a list of streamable MIME types matching the filter, which can be passed to
openTypedDocument(String, String, Bundle, CancellationSignal) . |
String |
getDocumentType(String documentId)
Return concrete MIME type of the requested document.
|
String[] |
getStreamTypes(Uri uri,
String mimeTypeFilter)
Called by a client to determine the types of data streams that this content provider
support for the given URI.
|
String |
getType(Uri uri)
Implementation is provided by the parent class.
|
Uri |
insert(Uri uri,
ContentValues values)
Implementation is provided by the parent class.
|
boolean |
isChildDocument(String parentDocumentId,
String documentId)
Test if a document is descendant (child, grandchild, etc) from the given
parent.
|
static boolean |
mimeTypeMatches(String filter,
String test) |
String |
moveDocument(String sourceDocumentId,
String sourceParentDocumentId,
String targetParentDocumentId)
Move the requested document or a document tree.
|
AssetFileDescriptor |
openAssetFile(Uri uri,
String mode)
Implementation is provided by the parent class.
|
AssetFileDescriptor |
openAssetFile(Uri uri,
String mode,
CancellationSignal signal)
Implementation is provided by the parent class.
|
abstract ParcelFileDescriptor |
openDocument(String documentId,
String mode,
CancellationSignal signal)
Open and return the requested document.
|
AssetFileDescriptor |
openDocumentThumbnail(String documentId,
Point sizeHint,
CancellationSignal signal)
Open and return a thumbnail of the requested document.
|
ParcelFileDescriptor |
openFile(Uri uri,
String mode)
Implementation is provided by the parent class.
|
ParcelFileDescriptor |
openFile(Uri uri,
String mode,
CancellationSignal signal)
Implementation is provided by the parent class.
|
AssetFileDescriptor |
openTypedAssetFile(Uri uri,
String mimeTypeFilter,
Bundle opts)
Implementation is provided by the parent class.
|
AssetFileDescriptor |
openTypedAssetFile(Uri uri,
String mimeTypeFilter,
Bundle opts,
CancellationSignal signal)
Implementation is provided by the parent class.
|
AssetFileDescriptor |
openTypedDocument(String documentId,
String mimeTypeFilter,
Bundle opts,
CancellationSignal signal)
Open and return the document in a format matching the specified MIME
type filter.
|
Cursor |
query(Uri uri,
String[] projection,
String selection,
String[] selectionArgs,
String sortOrder)
Implementation is provided by the parent class.
|
abstract Cursor |
queryChildDocuments(String parentDocumentId,
String[] projection,
String sortOrder)
Return the children documents contained in the requested directory.
|
Cursor |
queryChildDocumentsForManage(String parentDocumentId,
String[] projection,
String sortOrder) |
abstract Cursor |
queryDocument(String documentId,
String[] projection)
Return metadata for the single requested document.
|
Cursor |
queryRecentDocuments(String rootId,
String[] projection)
Return recently modified documents under the requested root.
|
abstract Cursor |
queryRoots(String[] projection)
Return all roots currently provided.
|
Cursor |
querySearchDocuments(String rootId,
String query,
String[] projection)
Return documents that match the given query under the requested
root.
|
void |
removeDocument(String documentId,
String parentDocumentId)
Removes the requested document or a document tree.
|
String |
renameDocument(String documentId,
String displayName)
Rename an existing document.
|
void |
revokeDocumentPermission(String documentId)
Revoke any active permission grants for the given
DocumentsContract.Document.COLUMN_DOCUMENT_ID , usually called when a document
becomes invalid. |
int |
update(Uri uri,
ContentValues values,
String selection,
String[] selectionArgs)
Implementation is provided by the parent class.
|
applyBatch, attachInfoForTesting, bulkInsert, coerceToLocalContentProvider, dump, enforceReadPermissionInner, enforceWritePermissionInner, getAppOpsManager, getAuthorityWithoutUserId, getCallingPackage, getContext, getIContentProvider, getPathPermissions, getReadPermission, getUriWithoutUserId, getUserIdFromAuthority, getUserIdFromAuthority, getUserIdFromUri, getUserIdFromUri, getWritePermission, isTemporary, matchesOurAuthorities, maybeAddUserId, onConfigurationChanged, onCreate, onLowMemory, onTrimMemory, openFileHelper, openPipeHelper, query, rejectInsert, setAppOps, setAuthorities, setPathPermissions, setReadPermission, setWritePermission, shutdown, uncanonicalize, uriHasUserId
public void attachInfo(Context context, ProviderInfo info)
attachInfo
in class ContentProvider
context
- The context this provider is running ininfo
- Registered information about this content providerpublic boolean isChildDocument(String parentDocumentId, String documentId)
Intent.ACTION_OPEN_DOCUMENT_TREE
. You should avoid making network
requests to keep this request fast.parentDocumentId
- parent to verify against.documentId
- child to verify.DocumentsContract.Root.FLAG_SUPPORTS_IS_CHILD
public String createDocument(String parentDocumentId, String mimeType, String displayName) throws FileNotFoundException
DocumentsContract.Document.COLUMN_DOCUMENT_ID
. You must allocate a new
DocumentsContract.Document.COLUMN_DOCUMENT_ID
to represent the document, which must
not change once returned.parentDocumentId
- the parent directory to create the new document
under.mimeType
- the concrete MIME type associated with the new document.
If the MIME type is not supported, the provider must throw.displayName
- the display name of the new document. The provider may
alter this name to meet any internal constraints, such as
avoiding conflicting names.FileNotFoundException
public String renameDocument(String documentId, String displayName) throws FileNotFoundException
If a different DocumentsContract.Document.COLUMN_DOCUMENT_ID
must be used to
represent the renamed document, generate and return it. Any outstanding
URI permission grants will be updated to point at the new document. If
the original DocumentsContract.Document.COLUMN_DOCUMENT_ID
is still valid after the
rename, return null
.
documentId
- the document to rename.displayName
- the updated display name of the document. The provider
may alter this name to meet any internal constraints, such as
avoiding conflicting names.FileNotFoundException
public void deleteDocument(String documentId) throws FileNotFoundException
Upon returning, any URI permission grants for the given document will be
revoked. If additional documents were deleted as a side effect of this
call (such as documents inside a directory) the implementor is
responsible for revoking those permissions using
revokeDocumentPermission(String)
.
documentId
- the document to delete.FileNotFoundException
public String copyDocument(String sourceDocumentId, String targetParentDocumentId) throws FileNotFoundException
Copies a document including all child documents to another location within
the same document provider. Upon completion returns the document id of
the copied document at the target destination. null
must never
be returned.
sourceDocumentId
- the document to copy.targetParentDocumentId
- the target document to be copied into as a child.FileNotFoundException
public String moveDocument(String sourceDocumentId, String sourceParentDocumentId, String targetParentDocumentId) throws FileNotFoundException
Moves a document including all child documents to another location within
the same document provider. Upon completion returns the document id of
the copied document at the target destination. null
must never
be returned.
It's the responsibility of the provider to revoke grants if the document
is no longer accessible using sourceDocumentId
.
sourceDocumentId
- the document to move.sourceParentDocumentId
- the parent of the document to move.targetParentDocumentId
- the target document to be a new parent of the
source document.FileNotFoundException
public void removeDocument(String documentId, String parentDocumentId) throws FileNotFoundException
In contrast to deleteDocument(java.lang.String)
it requires specifying the parent.
This method is especially useful if the document can be in multiple parents.
It's the responsibility of the provider to revoke grants if the document is removed from the last parent, and effectively the document is deleted.
documentId
- the document to remove.parentDocumentId
- the parent of the document to move.FileNotFoundException
public abstract Cursor queryRoots(String[] projection) throws FileNotFoundException
Each root is defined by the metadata columns described in DocumentsContract.Root
,
including DocumentsContract.Root.COLUMN_DOCUMENT_ID
which points to a directory
representing a tree of documents to display under that root.
If this set of roots changes, you must call ContentResolver.notifyChange(Uri,
android.database.ContentObserver, boolean)
with
DocumentsContract.buildRootsUri(String)
to notify the system.
projection
- list of DocumentsContract.Root
columns to put into the cursor. If
null
all supported columns should be included.FileNotFoundException
public Cursor queryRecentDocuments(String rootId, String[] projection) throws FileNotFoundException
DocumentsContract.Root.FLAG_SUPPORTS_RECENTS
. The returned documents should be
sorted by DocumentsContract.Document.COLUMN_LAST_MODIFIED
in descending order, and
limited to only return the 64 most recently modified documents.
Recent documents do not support change notifications.
projection
- list of DocumentsContract.Document
columns to put into the
cursor. If null
all supported columns should be
included.FileNotFoundException
DocumentsContract.EXTRA_LOADING
public abstract Cursor queryDocument(String documentId, String[] projection) throws FileNotFoundException
documentId
- the document to return.projection
- list of DocumentsContract.Document
columns to put into the
cursor. If null
all supported columns should be
included.FileNotFoundException
public abstract Cursor queryChildDocuments(String parentDocumentId, String[] projection, String sortOrder) throws FileNotFoundException
If your provider is cloud-based, and you have some data cached or pinned
locally, you may return the local data immediately, setting
DocumentsContract.EXTRA_LOADING
on the Cursor to indicate that
you are still fetching additional data. Then, when the network data is
available, you can send a change notification to trigger a requery and
return the complete contents. To return a Cursor with extras, you need to
extend and override Cursor.getExtras()
.
To support change notifications, you must
Cursor.setNotificationUri(ContentResolver, Uri)
with a relevant
Uri, such as
DocumentsContract.buildChildDocumentsUri(String, String)
. Then
you can call ContentResolver.notifyChange(Uri,
android.database.ContentObserver, boolean)
with that Uri to send change
notifications.
parentDocumentId
- the directory to return children for.projection
- list of DocumentsContract.Document
columns to put into the
cursor. If null
all supported columns should be
included.sortOrder
- how to order the rows, formatted as an SQL
ORDER BY
clause (excluding the ORDER BY itself).
Passing null
will use the default sort order, which
may be unordered. This ordering is a hint that can be used to
prioritize how data is fetched from the network, but UI may
always enforce a specific ordering.FileNotFoundException
DocumentsContract.EXTRA_LOADING
,
DocumentsContract.EXTRA_INFO
,
DocumentsContract.EXTRA_ERROR
public Cursor queryChildDocumentsForManage(String parentDocumentId, String[] projection, String sortOrder) throws FileNotFoundException
FileNotFoundException
public Cursor querySearchDocuments(String rootId, String query, String[] projection) throws FileNotFoundException
DocumentsContract.Document.COLUMN_DISPLAY_NAME
be matched in a
case-insensitive fashion.
Only documents may be returned; directories are not supported in search results.
If your provider is cloud-based, and you have some data cached or pinned
locally, you may return the local data immediately, setting
DocumentsContract.EXTRA_LOADING
on the Cursor to indicate that
you are still fetching additional data. Then, when the network data is
available, you can send a change notification to trigger a requery and
return the complete contents.
To support change notifications, you must
Cursor.setNotificationUri(ContentResolver, Uri)
with a relevant
Uri, such as DocumentsContract.buildSearchDocumentsUri(String,
String, String)
. Then you can call ContentResolver.notifyChange(Uri,
android.database.ContentObserver, boolean)
with that Uri to send change
notifications.
rootId
- the root to search under.query
- string to match documents against.projection
- list of DocumentsContract.Document
columns to put into the
cursor. If null
all supported columns should be
included.FileNotFoundException
DocumentsContract.EXTRA_LOADING
,
DocumentsContract.EXTRA_INFO
,
DocumentsContract.EXTRA_ERROR
public String getDocumentType(String documentId) throws FileNotFoundException
DocumentsContract.Document.COLUMN_MIME_TYPE
for this document. The default
implementation queries queryDocument(String, String[])
, so
providers may choose to override this as an optimization.FileNotFoundException
public abstract ParcelFileDescriptor openDocument(String documentId, String mode, CancellationSignal signal) throws FileNotFoundException
Your provider should return a reliable ParcelFileDescriptor
to
detect when the remote caller has finished reading or writing the
document. You may return a pipe or socket pair if the mode is exclusively
"r" or "w", but complex modes like "rw" imply a normal file on disk that
supports seeking.
If you block while downloading content, you should periodically check
CancellationSignal.isCanceled()
to abort abandoned open requests.
documentId
- the document to return.mode
- the mode to open with, such as 'r', 'w', or 'rw'.signal
- used by the caller to signal if the request should be
cancelled. May be null.FileNotFoundException
ParcelFileDescriptor.open(java.io.File, int, android.os.Handler,
OnCloseListener)
,
ParcelFileDescriptor.createReliablePipe()
,
ParcelFileDescriptor.createReliableSocketPair()
,
ParcelFileDescriptor.parseMode(String)
public AssetFileDescriptor openDocumentThumbnail(String documentId, Point sizeHint, CancellationSignal signal) throws FileNotFoundException
A provider should return a thumbnail closely matching the hinted size, attempting to serve from a local cache if possible. A provider should never return images more than double the hinted size.
If you perform expensive operations to download or generate a thumbnail,
you should periodically check CancellationSignal.isCanceled()
to
abort abandoned thumbnail requests.
documentId
- the document to return.sizeHint
- hint of the optimal thumbnail dimensions.signal
- used by the caller to signal if the request should be
cancelled. May be null.FileNotFoundException
DocumentsContract.Document.FLAG_SUPPORTS_THUMBNAIL
public AssetFileDescriptor openTypedDocument(String documentId, String mimeTypeFilter, Bundle opts, CancellationSignal signal) throws FileNotFoundException
A provider may perform a conversion if the documents's MIME type is not matching the specified MIME type filter.
documentId
- the document to return.mimeTypeFilter
- the MIME type filter for the requested format. May
be *\/*, which matches any MIME type.opts
- extra options from the client. Specific to the content
provider.signal
- used by the caller to signal if the request should be
cancelled. May be null.FileNotFoundException
getDocumentStreamTypes(String, String)
public final Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
query
in class ContentProvider
uri
- The URI to query. This will be the full URI sent by the client;
if the client is requesting a specific record, the URI will end in a record number
that the implementation should parse and add to a WHERE or HAVING clause, specifying
that _id value.projection
- The list of columns to put into the cursor. If
null
all columns are included.selection
- A selection criteria to apply when filtering rows.
If null
then all rows are included.selectionArgs
- You may include ?s in selection, which will be replaced by
the values from selectionArgs, in order that they appear in the selection.
The values will be bound as Strings.sortOrder
- How the rows in the cursor should be sorted.
If null
then the provider is free to define the sort order.null
.queryRoots(String[])
,
queryRecentDocuments(String, String[])
,
queryDocument(String, String[])
,
queryChildDocuments(String, String[], String)
,
querySearchDocuments(String, String, String[])
public final String getType(Uri uri)
getType
in class ContentProvider
uri
- the URI to query.null
if there is no type.getDocumentType(String)
public Uri canonicalize(Uri uri)
null
, the subclass
may implement custom behavior.
This is typically used to resolve a subtree URI into a concrete document reference, issuing a narrower single-document URI permission grant along the way.
canonicalize
in class ContentProvider
uri
- The Uri to canonicalize.DocumentsContract.buildDocumentUriUsingTree(Uri, String)
public final Uri insert(Uri uri, ContentValues values)
insert
in class ContentProvider
uri
- The content:// URI of the insertion request. This must not be null
.values
- A set of column_name/value pairs to add to the database.
This must not be null
.createDocument(String, String, String)
public final int delete(Uri uri, String selection, String[] selectionArgs)
delete
in class ContentProvider
uri
- The full URI to query, including a row ID (if a specific record is requested).selection
- An optional restriction to apply to rows when deleting.deleteDocument(String)
public final int update(Uri uri, ContentValues values, String selection, String[] selectionArgs)
update
in class ContentProvider
uri
- The URI to query. This can potentially have a record ID if this
is an update request for a specific record.values
- A set of column_name/value pairs to update in the database.
This must not be null
.selection
- An optional filter to match rows to update.public Bundle call(String method, String arg, Bundle extras)
null
, the subclass
may implement custom behavior.call
in class ContentProvider
method
- method name to call. Opaque to framework, but should not be null
.arg
- provider-defined String argument. May be null
.extras
- provider-defined Bundle argument. May be null
.null
, which is also
the default for providers which don't implement any call methods.public final void revokeDocumentPermission(String documentId)
DocumentsContract.Document.COLUMN_DOCUMENT_ID
, usually called when a document
becomes invalid. Follows the same semantics as
Context.revokeUriPermission(Uri, int)
.public final ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException
openFile
in class ContentProvider
uri
- The URI whose file is to be opened.mode
- Access mode for the file. May be "r" for read-only access,
"rw" for read and write access, or "rwt" for read and write access
that truncates any existing file.FileNotFoundException
- Throws FileNotFoundException if there is
no file associated with the given URI or the mode is invalid.openDocument(String, String, CancellationSignal)
public final ParcelFileDescriptor openFile(Uri uri, String mode, CancellationSignal signal) throws FileNotFoundException
openFile
in class ContentProvider
uri
- The URI whose file is to be opened.mode
- Access mode for the file. May be "r" for read-only access,
"w" for write-only access, "rw" for read and write access, or
"rwt" for read and write access that truncates any existing
file.signal
- A signal to cancel the operation in progress, or
null
if none. For example, if you are downloading a
file from the network to service a "rw" mode request, you
should periodically call
CancellationSignal.throwIfCanceled()
to check whether
the client has canceled the request and abort the download.FileNotFoundException
- Throws FileNotFoundException if there is
no file associated with the given URI or the mode is invalid.openDocument(String, String, CancellationSignal)
public final AssetFileDescriptor openAssetFile(Uri uri, String mode) throws FileNotFoundException
openAssetFile
in class ContentProvider
uri
- The URI whose file is to be opened.mode
- Access mode for the file. May be "r" for read-only access,
"w" for write-only access (erasing whatever data is currently in
the file), "wa" for write-only access to append to any existing data,
"rw" for read and write access on any existing data, and "rwt" for read
and write access that truncates any existing file.FileNotFoundException
- Throws FileNotFoundException if there is
no file associated with the given URI or the mode is invalid.openDocument(String, String, CancellationSignal)
public final AssetFileDescriptor openAssetFile(Uri uri, String mode, CancellationSignal signal) throws FileNotFoundException
openAssetFile
in class ContentProvider
uri
- The URI whose file is to be opened.mode
- Access mode for the file. May be "r" for read-only access,
"w" for write-only access (erasing whatever data is currently in
the file), "wa" for write-only access to append to any existing data,
"rw" for read and write access on any existing data, and "rwt" for read
and write access that truncates any existing file.signal
- A signal to cancel the operation in progress, or
null
if none. For example, if you are downloading a
file from the network to service a "rw" mode request, you
should periodically call
CancellationSignal.throwIfCanceled()
to check whether
the client has canceled the request and abort the download.FileNotFoundException
- Throws FileNotFoundException if there is
no file associated with the given URI or the mode is invalid.openDocument(String, String, CancellationSignal)
public final AssetFileDescriptor openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts) throws FileNotFoundException
openTypedAssetFile
in class ContentProvider
uri
- The data in the content provider being queried.mimeTypeFilter
- The type of data the client desires. May be
a pattern, such as */*, if the caller does not have specific type
requirements; in this case the content provider will pick its best
type matching the pattern.opts
- Additional options from the client. The definitions of
these are specific to the content provider being called.FileNotFoundException
- Throws FileNotFoundException if there is
no file associated with the given URI or the mode is invalid.openDocumentThumbnail(String, Point, CancellationSignal)
,
openTypedDocument(String, String, Bundle, CancellationSignal)
,
getDocumentStreamTypes(String, String)
public final AssetFileDescriptor openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts, CancellationSignal signal) throws FileNotFoundException
openTypedAssetFile
in class ContentProvider
uri
- The data in the content provider being queried.mimeTypeFilter
- The type of data the client desires. May be
a pattern, such as */*, if the caller does not have specific type
requirements; in this case the content provider will pick its best
type matching the pattern.opts
- Additional options from the client. The definitions of
these are specific to the content provider being called.signal
- A signal to cancel the operation in progress, or
null
if none. For example, if you are downloading a
file from the network to service a "rw" mode request, you
should periodically call
CancellationSignal.throwIfCanceled()
to check whether
the client has canceled the request and abort the download.FileNotFoundException
- Throws FileNotFoundException if there is
no file associated with the given URI or the mode is invalid.openDocumentThumbnail(String, Point, CancellationSignal)
,
openTypedDocument(String, String, Bundle, CancellationSignal)
,
getDocumentStreamTypes(String, String)
public String[] getDocumentStreamTypes(String documentId, String mimeTypeFilter)
openTypedDocument(String, String, Bundle, CancellationSignal)
.
The default implementation returns a MIME type provided by
queryDocument(String, String[])
as long as it matches the filter and the document
does not have the DocumentsContract.Document.FLAG_VIRTUAL_DOCUMENT
flag set.
public String[] getStreamTypes(Uri uri, String mimeTypeFilter)
Overriding this method is deprecated. Override openTypedDocument(java.lang.String, java.lang.String, android.os.Bundle, android.os.CancellationSignal)
instead.
getStreamTypes
in class ContentProvider
uri
- The data in the content provider being queried.mimeTypeFilter
- The type of data the client desires. May be
a pattern, such as */* to retrieve all possible data types.null
if there are no possible data streams for the
given mimeTypeFilter. Otherwise returns an array of all available
concrete MIME types.getDocumentStreamTypes(String, String)