public final class EarlParser
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Feed |
parse(java.io.InputStream inputStream,
int maxItems) |
static Feed |
parseOrThrow(java.io.InputStream inputStream,
int maxItems) |
public static Feed parse(java.io.InputStream inputStream, int maxItems)
inputStream - - stream to read feed frommaxItems - - stop parsing after reading this much feed itemspublic static Feed parseOrThrow(java.io.InputStream inputStream, int maxItems) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException, java.util.zip.DataFormatException
inputStream - - stream to read feed from. Will be closed in this functionmaxItems - - stop parsing after reading this much feed itemsorg.xmlpull.v1.XmlPullParserExceptionjava.io.IOExceptionjava.util.zip.DataFormatException