Code example for ClipDescription

Methods: filterMimeTypes

0
                return null; 
 
            // If the pattern is for note IDs and the MIME filter is text/plain, then return 
            // text/plain 
            case NOTE_ID:
                return NOTE_STREAM_TYPES.filterMimeTypes(mimeTypeFilter);
 
                // If the URI pattern doesn't match any permitted patterns, throws an exception. 
            default: 
                throw new IllegalArgumentException("Unknown URI " + uri);
            } 
    } 
 
 
    /** 
     * Returns a stream of data for each supported stream type. This method does a query on the 
     * incoming URI, then uses 
     * {@link android.content.ContentProvider#openPipeHelper(Uri, String, Bundle, Object, 
     * PipeDataWriter)} to start another thread in which to convert the data into a stream. 
     * 
     * @param uri The URI pattern that points to the data stream