# Uses of Class
java.lang.UnsupportedOperationException

Packages that use UnsupportedOperationException
Package
Description
com.sun.jdi
This is the core package of the Java Debug Interface (JDI), it defines mirrors for values, types, and the target VirtualMachine itself - as well bootstrapping facilities.
java.awt
Contains all of the classes for creating user interfaces and for painting graphics and images.
java.nio
Defines buffers, which are containers for data, and provides an overview of the other NIO packages.
java.nio.file
Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
javax.imageio
The main package of the Java Image I/O API.

## Uses of UnsupportedOperationException in com.sun.jdi

Subclasses of UnsupportedOperationException in com.sun.jdi
Modifier and Type
Class
Description
`class`
`VMCannotBeModifiedException`
Thrown to indicate that the operation is invalid because it would modify the VM and the VM is read-only.

## Uses of UnsupportedOperationException in java.awt

Subclasses of UnsupportedOperationException in java.awt
Modifier and Type
Class
Description
`class`
`HeadlessException`
Thrown when code that is dependent on a keyboard, display, or mouse is called in an environment that does not support a keyboard, display, or mouse.
Methods in java.awt that throw UnsupportedOperationException
Modifier and Type
Method
Description
`boolean`
Toolkit.`getLockingKeyState(int keyCode)`
Returns whether the given locking key on the keyboard is currently in its "on" state.
`void`
Toolkit.`setLockingKeyState(int keyCode, boolean on)`
Sets the state of the given locking key on the keyboard.

## Uses of UnsupportedOperationException in java.nio

Subclasses of UnsupportedOperationException in java.nio
Modifier and Type
Class
Description
`class`
`ReadOnlyBufferException`
Unchecked exception thrown when a content-mutation method such as `put` or `compact` is invoked upon a read-only buffer.

## Uses of UnsupportedOperationException in java.nio.file

Subclasses of UnsupportedOperationException in java.nio.file
Modifier and Type
Class
Description
`class`
`ReadOnlyFileSystemException`
Unchecked exception thrown when an attempt is made to update an object associated with a `read-only` `FileSystem`.

## Uses of UnsupportedOperationException in javax.imageio

Methods in javax.imageio that throw UnsupportedOperationException
Modifier and Type
Method
Description
`void`
ImageReadParam.`setSourceRenderSize(Dimension size)`
If the image is able to be rendered at an arbitrary size, sets the source width and height to the supplied values.