readObject

open fun readObject(resourcePath: String): T

Return the object created from reading from the specified classpath resource.

Return

the resulting object

Parameters

resourcePath

the source resource path. May be a full path or a path relativeto the resourceLoadClass passed to the constructor

Throws

on read error


open fun readObject(file: File): T

Return the object created from reading from the specified file.

Return

the resulting object

Parameters

file

the source file

Throws

on read error


open fun readObject(inputStream: InputStream): T

Return the object created from reading from the specified input stream.

Return

the resulting object

Parameters

inputStream

the source input stream

Throws

on read error


open fun readObject(resource: Resource): T

Return the object created from reading from the specified resource.

Return

the resulting object

Parameters

resource

the source resource

Throws

on read error


open fun readObject(reader: Reader): T

Return the object created from reading from the specified reader.

Return

the resulting object

Parameters

reader

the source reader

Throws

on read error