2 * © 2009 David ‘Bombe’ Roden
4 package net.pterodactylus.arachne.parser;
6 import java.io.InputStream;
9 * Interface for a parser. A parser understands the format it should parse and
10 * can generate events based on the parsed content.
13 * @author David ‘Bombe’ Roden <bombe@pterodactylus.net>
15 public interface Parser {
18 * Parses the given input stream and sends events to the given listener.
20 * @param parserListener
21 * The listener to send events to
23 * The input stream to parse
25 public void parse(ParserListener parserListener, InputStream inputStream);