01: /*
02: * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.portlet.cli;
06:
07: import org.xml.sax.EntityResolver;
08: import org.xml.sax.InputSource;
09: import java.io.StringBufferInputStream;
10:
11: /**
12: * A dummy entity resolver to be used by parsers that want to prevent external
13: * references to DTD from being processed. Parsers may want to use this dummy
14: * resolver when processing files in a network disabled environment.
15: *
16: */
17: public class NoOpEntityResolver implements EntityResolver {
18: public InputSource resolveEntity(String publicId, String systemId) {
19: return new InputSource(new StringBufferInputStream(""));
20: }
21: }
|