115a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root/* 215a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * Copyright (C) 2009 The Android Open Source Project 315a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * 415a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * Licensed under the Apache License, Version 2.0 (the "License"); 515a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * you may not use this file except in compliance with the License. 615a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * You may obtain a copy of the License at 715a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * 815a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * http://www.apache.org/licenses/LICENSE-2.0 915a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * 1015a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * Unless required by applicable law or agreed to in writing, software 1115a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * distributed under the License is distributed on an "AS IS" BASIS, 1215a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1315a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * See the License for the specific language governing permissions and 1415a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * limitations under the License. 1515a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root */ 1615a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root 175ebbb4a6b3e16f711735ae0615b9a9ea64faad38Fred Quintanapackage android.content.pm; 185ebbb4a6b3e16f711735ae0615b9a9ea64faad38Fred Quintana 195ebbb4a6b3e16f711735ae0615b9a9ea64faad38Fred Quintanaimport org.xmlpull.v1.XmlSerializer; 205ebbb4a6b3e16f711735ae0615b9a9ea64faad38Fred Quintanaimport org.xmlpull.v1.XmlPullParser; 215ebbb4a6b3e16f711735ae0615b9a9ea64faad38Fred Quintanaimport org.xmlpull.v1.XmlPullParserException; 225ebbb4a6b3e16f711735ae0615b9a9ea64faad38Fred Quintana 235ebbb4a6b3e16f711735ae0615b9a9ea64faad38Fred Quintanaimport java.io.IOException; 245ebbb4a6b3e16f711735ae0615b9a9ea64faad38Fred Quintana 255ebbb4a6b3e16f711735ae0615b9a9ea64faad38Fred Quintana/** @hide */ 265ebbb4a6b3e16f711735ae0615b9a9ea64faad38Fred Quintanapublic interface XmlSerializerAndParser<T> { 275ebbb4a6b3e16f711735ae0615b9a9ea64faad38Fred Quintana void writeAsXml(T item, XmlSerializer out) throws IOException; 285ebbb4a6b3e16f711735ae0615b9a9ea64faad38Fred Quintana T createFromXml(XmlPullParser parser) throws IOException, XmlPullParserException; 295ebbb4a6b3e16f711735ae0615b9a9ea64faad38Fred Quintana} 30