parse File
fun KtSoupParser.parseFile(pathString: String, bufferSize: Int = DEFAULT_PARSE_BUFFER_SIZE): KtSoupDocument
Parse the HTML document at pathString or throw if it does not exist.
Return
The parsed document as a KtSoupDocument.
Parameters
path String
The file path as a string.
buffer Size
An optional size for the buffer to use while reading the file, default is 1024.
Throws
IOException
If the file does not exist or is unreadable.
Parse the HTML document at path or throw if it does not exist.
Return
The parsed document as a KtSoupDocument.
Parameters
path
The file path as a kotlinx-io Path.
buffer Size
An optional size for the buffer to use while reading the file, default is 1024.
Throws
IOException
If the file does not exist or is unreadable.