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

parse

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

Parse a TOML string.

Parameters

input - String!: The input to parse.

Return
TomlParseResult!: The parse result.

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

Parse a TOML string.

Parameters

input - String!: The input to parse.

version - TomlVersion!: The version level to parse at.

Return
TomlParseResult!: The parse result.

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

Parse a TOML file.

Parameters

file - Path!: The input file to parse.

Exceptions

IOException - If an IO error occurs.

Return
TomlParseResult!: The parse result.

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

Parse a TOML file.

Parameters

file - Path!: The input file to parse.

version - TomlVersion!: The version level to parse at.

Exceptions

IOException - If an IO error occurs.

Return
TomlParseResult!: The parse result.

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

Parse a TOML input stream.

Parameters

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

Exceptions

IOException - If an IO error occurs.

Return
TomlParseResult!: The parse result.

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

Parse a TOML input stream.

Parameters

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

version - TomlVersion!: The version level to parse at.

Exceptions

IOException - If an IO error occurs.

Return
TomlParseResult!: The parse result.

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

Parse a TOML reader.

Parameters

reader - Reader!: The reader to obtain the TOML document from.

Exceptions

IOException - If an IO error occurs.

Return
TomlParseResult!: The parse result.

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

Parse a TOML input stream.

Parameters

reader - Reader!: The reader to obtain the TOML document from.

version - TomlVersion!: The version level to parse at.

Exceptions

IOException - If an IO error occurs.

Return
TomlParseResult!: The parse result.

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

Parse a TOML reader.

Parameters

channel - ReadableByteChannel!: The channel to read the TOML document from.

Exceptions

IOException - If an IO error occurs.

Return
TomlParseResult!: The parse result.

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

Parse a TOML input stream.

Parameters

channel - ReadableByteChannel!: The channel to read the TOML document from.

version - TomlVersion!: The version level to parse at.

Exceptions

IOException - If an IO error occurs.

Return
TomlParseResult!: The parse result.