public static MimeTypes create(InputStream... inputStreams)
            throws IOException, MimeTypeException {
        MimeTypes mimeTypes = new MimeTypes();
        MimeTypesReader reader = new MimeTypesReader(mimeTypes);
        for (InputStream inputStream : inputStreams) {
            reader.read(inputStream);
        }
        mimeTypes.init();
        return mimeTypes;
    }
Creates and returns a MimeTypes instance from the specified input stream.
Does not close the input stream(s).

@throws IOException       if the stream can not be read
@throws MimeTypeException if the type configuration is invalid
tika-core/src/main/java/org/apache/tika/mime/MimeTypesFactory.java