org.yaml.snakeyaml.util

## Class UriEncoder

- java.lang.Object
- - org.yaml.snakeyaml.util.UriEncoder

    public abstract class UriEncoder
    extends java.lang.Object

### Constructor Summary

Constructors
Constructor and Description
`UriEncoder()`

### Method Summary

Methods
`static java.lang.String` `decode(java.nio.ByteBuffer buff)` Decode '%'-escaped characters.
`static java.lang.String` `decode(java.lang.String buff)`
`static java.lang.String` `encode(java.lang.String uri)` Escape special characters with '%'

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### Constructor Detail

#### UriEncoder

    public UriEncoder()

### Method Detail

#### encode

    public static java.lang.String encode(java.lang.String uri)

Escape special characters with '%'

#### decode

    public static java.lang.String decode(java.nio.ByteBuffer buff)
                                   throws java.nio.charset.CharacterCodingException

Decode '%'-escaped characters. Decoding fails in case of invalid UTF-8

Throws:
  `java.nio.charset.CharacterCodingException`

#### decode

    public static java.lang.String decode(java.lang.String buff)