toml / org.apache.tuweni.toml / Toml / parse

parse

static fun parse(input: String): TomlParseResult (source)

Parse a TOML string.

Parameters

input - The input to parse.

Return
The parse result.

static fun parse(input: String, version: TomlVersion): TomlParseResult (source)

Parse a TOML string.

Parameters

input - The input to parse.

version - The version level to parse at.

Return
The parse result.

static fun parse(file: Path): TomlParseResult (source)

Parse a TOML file.

Parameters

file - The input file to parse.

Exceptions

IOException - If an IO error occurs.

Return
The parse result.

static fun parse(file: Path, version: TomlVersion): TomlParseResult (source)

Parse a TOML file.

Parameters

file - The input file to parse.

version - The version level to parse at.

Exceptions

IOException - If an IO error occurs.

Return
The parse result.

static fun parse(is: InputStream): TomlParseResult (source)

Parse a TOML input stream.

Parameters

is - The input stream to read the TOML document from.

Exceptions

IOException - If an IO error occurs.

Return
The parse result.

static fun parse(is: InputStream, version: TomlVersion): TomlParseResult (source)

Parse a TOML input stream.

Parameters

is - The input stream to read the TOML document from.

version - The version level to parse at.

Exceptions

IOException - If an IO error occurs.

Return
The parse result.

static fun parse(reader: Reader): TomlParseResult (source)

Parse a TOML reader.

Parameters

reader - The reader to obtain the TOML document from.

Exceptions

IOException - If an IO error occurs.

Return
The parse result.

static fun parse(reader: Reader, version: TomlVersion): TomlParseResult (source)

Parse a TOML input stream.

Parameters

reader - The reader to obtain the TOML document from.

version - The version level to parse at.

Exceptions

IOException - If an IO error occurs.

Return
The parse result.

static fun parse(channel: ReadableByteChannel): TomlParseResult (source)

Parse a TOML reader.

Parameters

channel - The channel to read the TOML document from.

Exceptions

IOException - If an IO error occurs.

Return
The parse result.

static fun parse(channel: ReadableByteChannel, version: TomlVersion): TomlParseResult (source)

Parse a TOML input stream.

Parameters

channel - The channel to read the TOML document from.

version - The version level to parse at.

Exceptions

IOException - If an IO error occurs.

Return
The parse result.