1/*
2 * Copyright (C) 2007 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package tests.api.org.xml.sax.support;
18
19import org.xml.sax.ContentHandler;
20import org.xml.sax.DTDHandler;
21import org.xml.sax.EntityResolver;
22import org.xml.sax.ErrorHandler;
23import org.xml.sax.InputSource;
24import org.xml.sax.XMLReader;
25
26/**
27 * An XMLReader that is not accessible.
28 */
29class NoAccessXMLReader implements XMLReader {
30
31    public ContentHandler getContentHandler() {
32        return null;
33    }
34
35    public DTDHandler getDTDHandler() {
36        return null;
37    }
38
39    public EntityResolver getEntityResolver() {
40        return null;
41    }
42
43    public ErrorHandler getErrorHandler() {
44        return null;
45    }
46
47    public boolean getFeature(String name) {
48        return false;
49    }
50
51    public Object getProperty(String name) {
52        return null;
53    }
54
55    public void parse(InputSource input) {
56    }
57
58    public void parse(String systemId) {
59    }
60
61    public void setContentHandler(ContentHandler handler) {
62    }
63
64    public void setDTDHandler(DTDHandler handler) {
65    }
66
67    public void setEntityResolver(EntityResolver resolver) {
68    }
69
70    public void setErrorHandler(ErrorHandler handler) {
71    }
72
73    public void setFeature(String name, boolean value) {
74    }
75
76    public void setProperty(String name, Object value) {
77    }
78
79}
80