diff --git a/library/src/main/java/com/google/maps/android/data/kml/KmlParser.java b/library/src/main/java/com/google/maps/android/data/kml/KmlParser.java index 3ce4d21f1..da68f49b9 100644 --- a/library/src/main/java/com/google/maps/android/data/kml/KmlParser.java +++ b/library/src/main/java/com/google/maps/android/data/kml/KmlParser.java @@ -1,12 +1,12 @@ /* * Copyright 2020 Google Inc. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -27,7 +27,7 @@ /** * Parses a given KML file into KmlStyle, KmlPlacemark, KmlGroundOverlay and KmlContainer objects */ -/* package */ class KmlParser { +public class KmlParser { private final static String STYLE = "Style"; @@ -66,7 +66,7 @@ * * @param parser parser containing the KML file to parse */ - /* package */ KmlParser(XmlPullParser parser) { + public KmlParser(XmlPullParser parser) { mParser = parser; mPlacemarks = new HashMap<>(); mContainers = new ArrayList<>(); @@ -78,7 +78,7 @@ /** * Parses the KML file and stores the created KmlStyle and KmlPlacemark */ - /* package */ void parseKml() throws XmlPullParserException, IOException { + public void parseKml() throws XmlPullParserException, IOException { int eventType = mParser.getEventType(); while (eventType != XmlPullParser.END_DOCUMENT) { if (eventType == XmlPullParser.START_TAG) { @@ -112,35 +112,35 @@ /** * @return List of styles created by the parser */ - /* package */ HashMap getStyles() { + public HashMap getStyles() { return mStyles; } /** * @return A list of Kml Placemark objects */ - /* package */ HashMap getPlacemarks() { + public HashMap getPlacemarks() { return mPlacemarks; } /** * @return A list of Kml Style Maps */ - /* package */ HashMap getStyleMaps() { + public HashMap getStyleMaps() { return mStyleMaps; } /** * @return A list of Kml Folders */ - /* package */ ArrayList getContainers() { + public ArrayList getContainers() { return mContainers; } /** * @return A list of Ground Overlays */ - /* package */ HashMap getGroundOverlays() { + public HashMap getGroundOverlays() { return mGroundOverlays; } @@ -149,8 +149,7 @@ * * @param parser XmlPullParser */ - /*package*/ - static void skip(XmlPullParser parser) + public static void skip(XmlPullParser parser) throws XmlPullParserException, IOException { if (parser.getEventType() != XmlPullParser.START_TAG) { throw new IllegalStateException();