KtSoupParser

expect interface KtSoupParser

The primary entrypoint for KtSoup, use parse to receive a KtSoupDocument to access and manipulate the provided HTML document.

Inheritors

actual interface KtSoupParser

Inheritors

actual interface KtSoupParser

Inheritors

actual interface KtSoupParser

Inheritors

Types

Link copied to clipboard
expect object Companion : KtSoupParser
actual object Companion : KtSoupParser
actual object Companion : KtSoupParser
actual object Companion : KtSoupParser

Functions

Link copied to clipboard
expect abstract fun parse(html: String): KtSoupDocument

Parse the given html document.

actual abstract fun parse(html: String): KtSoupDocument
abstract fun parse(inputStream: InputStream): KtSoupDocument

Parse an HTML document use the provided inputStream, the stream will be closed when reading is complete.

actual abstract fun parse(html: String): KtSoupDocument
actual abstract fun parse(html: String): KtSoupDocument
Link copied to clipboard
expect abstract fun parseChunked(bufferSize: Int = DEFAULT_PARSE_BUFFER_SIZE, getChunk: (buffer: ByteArray) -> Int): KtSoupDocument

Parse an HTML document by calling getChunk to fill the provided ByteArray until no more data is available.

actual abstract fun parseChunked(bufferSize: Int, getChunk: (buffer: ByteArray) -> Int): KtSoupDocument
actual abstract fun parseChunked(bufferSize: Int, getChunk: (buffer: ByteArray) -> Int): KtSoupDocument
actual abstract fun parseChunked(bufferSize: Int, getChunk: (buffer: ByteArray) -> Int): KtSoupDocument
Link copied to clipboard
expect abstract suspend fun parseChunkedAsync(bufferSize: Int = DEFAULT_PARSE_BUFFER_SIZE, getChunk: suspend (buffer: ByteArray) -> Int): KtSoupDocument

Parse an HTML document by calling getChunk to fill the provided ByteArray until no more data is available.

actual abstract suspend fun parseChunkedAsync(bufferSize: Int, getChunk: suspend (buffer: ByteArray) -> Int): KtSoupDocument
actual abstract suspend fun parseChunkedAsync(bufferSize: Int, getChunk: suspend (buffer: ByteArray) -> Int): KtSoupDocument
actual abstract suspend fun parseChunkedAsync(bufferSize: Int, getChunk: suspend (buffer: ByteArray) -> Int): KtSoupDocument