Documentation
¶
Overview ¶
Package nio exposes the small java.nio charset surface used by portable Clojure libraries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UTF8 = &Charset{name: "UTF-8"} USASCII = &Charset{name: "US-ASCII"} ISO88591 = &Charset{name: "ISO-8859-1"} REPORT CodingErrorAction = "REPORT" )
Functions ¶
Types ¶
type ByteBuffer ¶
type ByteBuffer struct {
// contains filtered or unexported fields
}
func Wrap ¶
func Wrap(value any) *ByteBuffer
func (*ByteBuffer) Get ¶
func (b *ByteBuffer) Get(index any) int8
func (*ByteBuffer) GetLong ¶
func (b *ByteBuffer) GetLong() int64
GetLong reads a signed, big-endian Java long at the current position and advances the position by eight bytes.
func (*ByteBuffer) Limit ¶
func (b *ByteBuffer) Limit(args ...any) any
func (*ByteBuffer) Position ¶
func (b *ByteBuffer) Position(args ...any) any
func (*ByteBuffer) Remaining ¶
func (b *ByteBuffer) Remaining() int32
func (*ByteBuffer) Slice ¶
func (b *ByteBuffer) Slice() *ByteBuffer
type CharacterCodingException ¶
type CharacterCodingException struct {
// contains filtered or unexported fields
}
func (*CharacterCodingException) Error ¶
func (*CharacterCodingException) Error() string
type Charset ¶
type Charset struct {
// contains filtered or unexported fields
}
func (*Charset) NewDecoder ¶
func (c *Charset) NewDecoder() *CharsetDecoder
type CharsetDecoder ¶
type CharsetDecoder struct {
// contains filtered or unexported fields
}
func (*CharsetDecoder) Decode ¶
func (d *CharsetDecoder) Decode(buffer any) string
func (*CharsetDecoder) OnMalformedInput ¶
func (d *CharsetDecoder) OnMalformedInput(_ any) *CharsetDecoder
func (*CharsetDecoder) OnUnmappableCharacter ¶
func (d *CharsetDecoder) OnUnmappableCharacter(_ any) *CharsetDecoder
type CodingErrorAction ¶
type CodingErrorAction string
Click to show internal directories.
Click to hide internal directories.