[Chapter 11] UnsupportedEncodingException

#

| Chapter 11 The java.io Package |

# UnsupportedEncodingException

## Name

UnsupportedEncodingException

## Synopsis

Class Name:

  `java.io.UnsupportedEncodingException`

Superclass:

  `java.io.IOException`

Immediate Subclasses:

  None

Interfaces Implemented:

  None

Availability:

  New as of JDK 1.1

## Description

An `UnsupportedEncodingException` is thrown when a character encoding scheme is not available. It can be thrown by methods of classes in `java.io` and other packages.

## Class Summary

    public class java.io.UnsupportedEncodingException
                 extends java.io.IOException {
      // Constructors
      public UnsupportedEncodingException();
      public UnsupportedEncodingException(String s);
    }

## Constructors

### UnsupportedEncodingException

#### public UnsupportedEncodingException()

Description

  This constructor creates an `UnsupportedEncodingException` with no detail message.

#### public UnsupportedEncodingException(String s)

Parameters

  `s`

    The detail message.

Description

  This constructor creates an `UnsupportedEncodingException` with the specified detail message.

## Inherited Methods

Method | Inherited From | Method | Inherited From
--- | --- | --- | ---
`clone()` | `Object` | `equals(Object)` | `Object`
`fillInStackTrace()` | `Throwable` | `finalize()` | `Object`
`getClass()` | `Object` | `getLocalizedMessage()` | `Throwable`
`getMessage()` | `Throwable` | `hashCode()` | `Object`
`notify()` | `Object` | `notifyAll()` | `Object`
`printStackTrace()` | `Throwable` | `printStackTrace(PrintStream)` | `Throwable`
`printStackTrace(PrintWriter)` | `Throwable` | `toString()` | `Object`
`wait()` | `Object` | `wait(long)` | `Object`
`wait(long, int)` | `Object` |  |

## See Also

`Exception`, `IOException`, `Throwable`

SyncFailedException |  | UTFDataFormatException