/******************************************************************************* * Copyright (c) 2008, Original authors. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Angelo ZERR *******************************************************************************/ package org.akrogen.core.resources; import java.io.InputStream; import java.io.Reader; /** * Resources locator to get {@link InputStream} or {@link Reader} from an URI. * * @version 1.0.0 * @author Angelo ZERR * */ public interface IResourceLocator extends IURIResolver { /** * Return {@link InputStream} from the uri. * * @param uri * @return * @throws Exception */ public InputStream getInputStream(String uri) throws Exception; /** * Return {@link Reader} from the uri. * * @param uri * @return * @throws Exception */ public Reader getReader(String uri) throws Exception; }