IndexV1StreamProcessor

class IndexV1StreamProcessor(indexStreamReceiver: IndexV1StreamReceiver, certificate: String?, lastTimestamp: Long, locale: String = DEFAULT_LOCALE, json: Json = IndexParser.json)

Processes a indexV1 stream and calls the given indexStreamReceiver while parsing it. Attention: This requires the following canonical top-level order in the JSON as produced by fdroidserver.

  • repo

  • requests

  • apps

  • packages

Any other order of those elements will produce unexpected results or throw IllegalArgumentException.

Constructors

Link copied to clipboard
constructor(indexStreamReceiver: IndexV1StreamReceiver, certificate: String?, lastTimestamp: Long, locale: String = DEFAULT_LOCALE, json: Json = IndexParser.json)

Functions

Link copied to clipboard
fun process(inputStream: InputStream)