X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FParser.java;h=9c5a2dafea73d706b7d7c82ad2fd81e83bc13ec8;hb=7ec1d08c8eb6ee292dbb34df6c00d9828121aad3;hp=e43ed47566f490f2aa850f41d2bcfb0a919b5280;hpb=f4ea1e1b3526175e255831c975d6eea813589f25;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/text/Parser.java b/src/main/java/net/pterodactylus/sone/text/Parser.java index e43ed47..9c5a2da 100644 --- a/src/main/java/net/pterodactylus/sone/text/Parser.java +++ b/src/main/java/net/pterodactylus/sone/text/Parser.java @@ -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 * @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; }