public final class PeertubeParsingHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COUNT_KEY |
static int |
ITEMS_PER_PAGE |
static String |
START_KEY |
static String |
START_PATTERN |
Modifier and Type | Method and Description |
---|---|
static void |
collectStreamsFrom(InfoItemsCollector collector,
com.grack.nanojson.JsonObject json,
String baseUrl) |
static void |
collectStreamsFrom(InfoItemsCollector collector,
com.grack.nanojson.JsonObject json,
String baseUrl,
boolean sepia)
Collect stream from json with collector
|
static Page |
getNextPage(String prevPageUrl,
long total) |
static OffsetDateTime |
parseDateFrom(String textualUploadDate) |
static void |
validate(com.grack.nanojson.JsonObject json) |
public static final String START_KEY
public static final String COUNT_KEY
public static final int ITEMS_PER_PAGE
public static final String START_PATTERN
public static void validate(com.grack.nanojson.JsonObject json) throws ContentNotAvailableException
ContentNotAvailableException
public static OffsetDateTime parseDateFrom(String textualUploadDate) throws ParsingException
ParsingException
public static void collectStreamsFrom(InfoItemsCollector collector, com.grack.nanojson.JsonObject json, String baseUrl) throws ParsingException
ParsingException
public static void collectStreamsFrom(InfoItemsCollector collector, com.grack.nanojson.JsonObject json, String baseUrl, boolean sepia) throws ParsingException
collector
- the collector used to collect informationjson
- the file to retrieve data frombaseUrl
- the base Url of the instancesepia
- if we should use PeertubeSepiaStreamInfoItemExtractorParsingException