Object - io : ReadableCharacterChannel

Represents a channel which could be used to read characters through a given ReadableByteChannel.

read

(int numberOfChars)

returns string | error

Reads a given number of characters.

Parameters

  • numberOfChars int
  • Number of characters which should be read

  • Return Type

    (string | error)
  • Content which is read or an error

readJson

()

returns json | error

Reads a json from the given channel.

  • Return Type

    (json | error)
  • Read json string or an error

readXml

()

returns xml | error

Reads a XML from the given channel.

  • Return Type

    (xml | error)
  • Read xml or an error

close

()

returns error?

Closes a given character channel.

  • Return Type

    (error?)
  • If an error occurred while writing