X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FParser.java;h=f5f8f1bc0da45f1d61263c9109731ad72ec7afac;hp=e43ed47566f490f2aa850f41d2bcfb0a919b5280;hb=419098bcd6215125408b29e60bd888e60979d37b;hpb=169711a171fc44506ef3e41efcc17331c1791e8f diff --git a/src/main/java/net/pterodactylus/sone/text/Parser.java b/src/main/java/net/pterodactylus/sone/text/Parser.java index e43ed47..f5f8f1b 100644 --- a/src/main/java/net/pterodactylus/sone/text/Parser.java +++ b/src/main/java/net/pterodactylus/sone/text/Parser.java @@ -1,5 +1,5 @@ /* - * Sone - Parser.java - Copyright © 2010 David Roden + * Sone - Parser.java - Copyright © 2010–2015 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -31,16 +31,16 @@ import java.io.Reader; public interface Parser { /** - * Create a {@link Part} from the given text source. + * Create one or more {@link Part}s from the given text source. * * @param context - * The parser context + * The parser context (may be {@code null}) * @param source * The text source - * @return The parsed part + * @return The parsed parts * @throws IOException * if an I/O error occurs */ - public Part parse(C context, Reader source) throws IOException; + public Iterable parse(C context, Reader source) throws IOException; }