| /******************************************************************************* |
| * Copyright (c) 2011 University of Illinois 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: |
| * Albert L. Rossi - design and implementation |
| ******************************************************************************/ |
| package org.eclipse.ptp.rm.jaxb.core; |
| |
| import java.io.InputStream; |
| |
| /** |
| * Interface for tokenizer (parser) attached to process streams. These can be |
| * custom implementations of the extension point. The reference implementation |
| * is directly configurable from the ResourceManager XML.<br> |
| * <br> |
| * Extension point: org.eclipse.ptp.rm.jaxb.core.streamParserTokenizer<br> |
| * <br> |
| * |
| * @see org.eclipse.ptp.rm.jaxb.core.runnable.command.ConfigurableRegexTokenizer |
| * |
| * @author arossi |
| * |
| */ |
| public interface IStreamParserTokenizer extends Runnable { |
| |
| /** |
| * @return any fatal exception raised during parsing |
| */ |
| Throwable getInternalError(); |
| |
| /** |
| * @param stream |
| * to be parsed |
| */ |
| void setInputStream(InputStream stream); |
| } |