public class OpmlParser extends Object
| Constructor and Description |
|---|
OpmlParser() |
| Modifier and Type | Method and Description |
|---|---|
Opml |
parse(InputStream input)
Parse the given
InputStream into an Opml instance. |
Opml |
parse(Reader reader)
|
Opml |
parse(String string)
|
public Opml parse(String string) throws OpmlParseException
string - a String representation of a full and valid OPML documentOpml instance, not nullIllegalArgumentException - if argument is null or invalidOpmlParseException - if an exception occurs during parsingpublic Opml parse(InputStream input) throws OpmlParseException
InputStream into an Opml instance. Note that the caller is responsible for
closing the given InputStream.input - an InputStream over a valid OPML documentOpml instance, not nullIllegalArgumentException - if argument is nullOpmlParseException - if argument invalid or if an exception occurs during parsingpublic Opml parse(Reader reader) throws OpmlParseException
Reader into an Opml instance. Note that the caller is responsible for closing the
given Reader.reader - a Reader over a valid OPML documentOpml instance, not nullIllegalArgumentException - if argument is nullOpmlParseException - if argument invalid or if an exception occurs during parsingCopyright © 2019. All rights reserved.