// Path: mapsforge-map/src/main/java/org/mapsforge/map/rendertheme/XmlRenderTheme.java
// public interface XmlRenderTheme {
//     /**
//      * @return the interface callback to create a settings menu on the fly.
//      */
//     XmlRenderThemeMenuCallback getMenuCallback();
// 
//     /**
//      * @return the prefix for all relative resource paths.
//      */
//     String getRelativePathPrefix();
// 
//     /**
//      * @return an InputStream to read the render theme data from.
//      * @throws IOException if the render theme file cannot be found.
//      */
//     InputStream getRenderThemeAsStream() throws IOException;
// 
//     /**
//      * @return a custom provider to retrieve resources internally referenced by "src" attribute (e.g. images, icons).
//      */
//     XmlThemeResourceProvider getResourceProvider();
// 
//     /**
//      * @param menuCallback the interface callback to create a settings menu on the fly.
//      */
//     void setMenuCallback(XmlRenderThemeMenuCallback menuCallback);
// 
//     /**
//      * @param resourceProvider a custom provider to retrieve resources internally referenced by "src" attribute (e.g. images, icons).
//      */
//     void setResourceProvider(XmlThemeResourceProvider resourceProvider);
// }
// 
// Path: mapsforge-map/src/main/java/org/mapsforge/map/rendertheme/XmlThemeResourceProvider.java
// public interface XmlThemeResourceProvider {
// 
//     /**
//      * @param relativePath a relative path to use as a base for search in the resource provuider
//      * @param source       a source string parsed out of an XML render theme "src" attribute.
//      * @return an InputStream to read the resource data from.
//      * @throws IOException if the resource cannot be found or an access error occurred.
//      */
//     InputStream createInputStream(String relativePath, String source) throws IOException;
// }


import android.content.ContentResolver;
import android.net.Uri;
import org.mapsforge.map.rendertheme.XmlRenderTheme;
import org.mapsforge.map.rendertheme.XmlRenderThemeMenuCallback;
import org.mapsforge.map.rendertheme.XmlThemeResourceProvider;
import java.io.IOException;
import java.io.InputStream;
/*
 * Copyright 2020-2021 devemux86
 * Copyright 2021 eddiemuc
 *
 * This program is free software: you can redistribute it and/or modify it under the
 * terms of the GNU Lesser General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */
package org.mapsforge.map.android.rendertheme;



/**
 * An ContentRenderTheme allows for customizing the rendering style of the map
 * via an XML from the Android content providers.
 */
public class ContentRenderTheme implements XmlRenderTheme {

    private final ContentResolver contentResolver;
    private XmlRenderThemeMenuCallback menuCallback;
// Path: mapsforge-map/src/main/java/org/mapsforge/map/rendertheme/XmlRenderTheme.java
// public interface XmlRenderTheme {
//     /**
//      * @return the interface callback to create a settings menu on the fly.
//      */
//     XmlRenderThemeMenuCallback getMenuCallback();
// 
//     /**
//      * @return the prefix for all relative resource paths.
//      */
//     String getRelativePathPrefix();
// 
//     /**
//      * @return an InputStream to read the render theme data from.
//      * @throws IOException if the render theme file cannot be found.
//      */
//     InputStream getRenderThemeAsStream() throws IOException;
// 
//     /**
//      * @return a custom provider to retrieve resources internally referenced by "src" attribute (e.g. images, icons).
//      */
//     XmlThemeResourceProvider getResourceProvider();
// 
//     /**
//      * @param menuCallback the interface callback to create a settings menu on the fly.
//      */
//     void setMenuCallback(XmlRenderThemeMenuCallback menuCallback);
// 
//     /**
//      * @param resourceProvider a custom provider to retrieve resources internally referenced by "src" attribute (e.g. images, icons).
//      */
//     void setResourceProvider(XmlThemeResourceProvider resourceProvider);
// }
// 
// Path: mapsforge-map/src/main/java/org/mapsforge/map/rendertheme/XmlThemeResourceProvider.java
// public interface XmlThemeResourceProvider {
// 
//     /**
//      * @param relativePath a relative path to use as a base for search in the resource provuider
//      * @param source       a source string parsed out of an XML render theme "src" attribute.
//      * @return an InputStream to read the resource data from.
//      * @throws IOException if the resource cannot be found or an access error occurred.
//      */
//     InputStream createInputStream(String relativePath, String source) throws IOException;
// }


// Path: mapsforge-map-android/src/main/java/org/mapsforge/map/android/rendertheme/ContentRenderTheme.java
import android.content.ContentResolver;
import android.net.Uri;
import org.mapsforge.map.rendertheme.XmlRenderTheme;
import org.mapsforge.map.rendertheme.XmlRenderThemeMenuCallback;
import org.mapsforge.map.rendertheme.XmlThemeResourceProvider;
import java.io.IOException;
import java.io.InputStream;

/*
 * Copyright 2020-2021 devemux86
 * Copyright 2021 eddiemuc
 *
 * This program is free software: you can redistribute it and/or modify it under the
 * terms of the GNU Lesser General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */
package org.mapsforge.map.android.rendertheme;



/**
 * An ContentRenderTheme allows for customizing the rendering style of the map
 * via an XML from the Android content providers.
 */
public class ContentRenderTheme implements XmlRenderTheme {

    private final ContentResolver contentResolver;
    private XmlRenderThemeMenuCallback menuCallback;
    private XmlThemeResourceProvider resourceProvider;