read

open fun read(resourcePath: String): ObjectContent<T>

Return ObjectContent from reading from the specified classpath resource.

Return

the ObjectContent

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 read(file: File): ObjectContent<T>

Return ObjectContent from reading from the specified file.

Return

the ObjectContent

Parameters

file

the source file

Throws

on read error


open fun read(inputStream: InputStream): ObjectContent<T>

Return ObjectContent from reading from the specified input stream.

Return

the ObjectContent

Parameters

inputStream

the source input stream

Throws

on read error


open fun read(resource: Resource): ObjectContent<T>

Return ObjectContent from reading from the specified resource.

Return

the ObjectContent

Parameters

resource

the source resource

Throws

on read error


open fun read(reader: Reader): ObjectContent<T>

Return ObjectContent from reading from the specified reader.

Return

the ObjectContent

Parameters

reader

the source reader

Throws

on read error