Fork me on GitHub

Module ringo/encoding

Class Decoder

Instance Methods

Instance Properties

Class Encoder

Instance Methods

Instance Properties


Decoder (charset, strict, capacity)

Parameters

charset
strict
capacity

Decoder.prototype.clear ()


Decoder.prototype.close ()


Decoder.prototype.decode (bytes, start, end)

Decode bytes from the given buffer.

Parameters

bytes a ByteString or ByteArray
start The start index, or 0 if undefined
end the end index, or bytes.length if undefined

Decoder.prototype.hasPendingInput ()


Decoder.prototype.length


Decoder.prototype.read ()


Decoder.prototype.readFrom (source)

Parameters

source

Decoder.prototype.readLine (includeNewline)

Parameters

includeNewline

Decoder.prototype.toString ()


Encoder (charset, strict, capacity)

Parameters

charset
strict
capacity

Encoder.prototype.clear ()


Encoder.prototype.close ()


Encoder.prototype.encode (string, start, end)

Parameters

string
start
end

Encoder.prototype.length


Encoder.prototype.toByteArray ()


Encoder.prototype.toByteString ()


Encoder.prototype.toString ()


Encoder.prototype.writeTo (sink)

Parameters

sink