Uses of Interface
java.lang.AutoCloseable
Package
Description
Provides a simple high-level Http server API, which can be used to build
embedded HTTP servers.
A Java API for Stream Control Transport Protocol.
Contains classes related to developing beans -- components based on
the JavaBeans architecture.
Provides for system input and output through data streams,
serialization and the file system.
Provides low-level access to memory and functions outside the Java runtime.
Classes to support module descriptors and creating configurations of modules
by means of resolution and service binding.
Provides the classes for implementing networking applications.
HTTP Client and WebSocket APIs
Defines channels, which represent connections to entities that are capable of
performing I/O operations, such as files and sockets; defines selectors, for
multiplexed, non-blocking I/O operations.
Service-provider classes for the
java.nio.channels
package.Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
Provides classes and interfaces for supporting the server side of RMI.
Provides the classes and interfaces for the security framework.
Provides the API for accessing and processing data stored in a
data source (usually a relational database) using the
Java programming language.
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
Utility classes commonly useful in concurrent programming.
Provides classes for reading and writing the JAR (Java ARchive)
file format, which is based on the standard ZIP file format with an
optional manifest file.
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
Provides classes for reading and writing the standard ZIP and GZIP file
formats.
Provides the classes and interfaces for cryptographic
operations.
A package of the Java Image I/O API dealing with low-level I/O from files and
streams.
Interfaces for remote access to
JMX MBean servers.
The RMI connector is a connector for the JMX Remote API that
uses RMI to transmit client requests to a remote MBean server.
Provides classes for the secure socket package.
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI
(Musical Instrument Digital Interface) data.
Provides interfaces and classes for capture, processing, and playback of
sampled audio data.
Provides the API for server side data source access and processing from
the Java programming language.
Standard interfaces and base classes for JDBC
RowSet
implementations.The standard classes and interfaces that a third party vendor has to
use in its implementation of a synchronization provider.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides interfaces for tools which can be invoked from a program,
for example, compilers.
This package provides classes to create events and control Flight Recorder.
This package contains classes for consuming Flight Recorder data.
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL),
which interactively evaluate "snippets" of Java programming language code.
Provides implementation support for building JShell execution engines.
Defines the Service Provider Interface for pluggable JShell execution engines.
This package contains classes to control and monitor Flight Recorder over Java Management Extensions (JMX).
-
Uses of AutoCloseable in com.sun.net.httpserver
Modifier and TypeClassDescriptionclass
This class encapsulates a HTTP request received and a response to be generated in one exchange.class
This class encapsulates a HTTPS request received and a response to be generated in one exchange and defines the extensions toHttpExchange
that are specific to the HTTPS protocol. -
Uses of AutoCloseable in com.sun.nio.sctp
Modifier and TypeClassDescriptionclass
A selectable channel for message-oriented connected SCTP sockets.class
A selectable channel for message-oriented SCTP sockets.class
A selectable channel for message-oriented listening SCTP sockets. -
Uses of AutoCloseable in java.beans
Modifier and TypeClassDescriptionclass
TheXMLDecoder
class is used to read XML documents created using theXMLEncoder
and is used just like theObjectInputStream
.class
TheXMLEncoder
class is a complementary alternative to theObjectOutputStream
and can used to generate a textual representation of a JavaBean in the same way that theObjectOutputStream
can be used to create binary representation ofSerializable
objects. -
Uses of AutoCloseable in java.io
Modifier and TypeInterfaceDescriptioninterface
ACloseable
is a source or destination of data that can be closed.interface
ObjectInput extends the DataInput interface to include the reading of objects.interface
ObjectOutput extends the DataOutput interface to include writing of objects.Modifier and TypeClassDescriptionclass
ABufferedInputStream
adds functionality to another input stream-namely, the ability to buffer the input and to support themark
andreset
methods.class
The class implements a buffered output stream.class
Reads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines.class
Writes text to a character-output stream, buffering characters so as to provide for the efficient writing of single characters, arrays, and strings.class
AByteArrayInputStream
contains an internal buffer that contains bytes that may be read from the stream.class
This class implements an output stream in which the data is written into a byte array.class
This class implements a character buffer that can be used as a character-input stream.class
This class implements a character buffer that can be used as a Writer.class
A data input stream lets an application read primitive Java data types from an underlying input stream in a machine-independent way.class
A data output stream lets an application write primitive Java data types to an output stream in a portable way.class
AFileInputStream
obtains input bytes from a file in a file system.class
A file output stream is an output stream for writing data to aFile
or to aFileDescriptor
.class
Reads text from character files using a default buffer size.class
Writes text to character files using a default buffer size.class
AFilterInputStream
wraps some other input stream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.class
This class is the superclass of all classes that filter output streams.class
Abstract class for reading filtered character streams.class
Abstract class for writing filtered character streams.class
This abstract class is the superclass of all classes representing an input stream of bytes.class
An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes them into characters using a specifiedcharset
.class
Deprecated.This class incorrectly assumes that bytes adequately represent characters.class
A buffered character-input stream that keeps track of line numbers.class
An ObjectInputStream deserializes primitive data and objects previously written using an ObjectOutputStream.class
An ObjectOutputStream writes primitive data types and graphs of Java objects to an OutputStream.class
This abstract class is the superclass of all classes representing an output stream of bytes.class
An OutputStreamWriter is a bridge from character streams to byte streams: Characters written to it are encoded into bytes using a specifiedcharset
.class
A piped input stream should be connected to a piped output stream; the piped input stream then provides whatever data bytes are written to the piped output stream.class
A piped output stream can be connected to a piped input stream to create a communications pipe.class
Piped character-input streams.class
Piped character-output streams.class
APrintStream
adds functionality to another output stream, namely the ability to print representations of various data values conveniently.class
Prints formatted representations of objects to a text-output stream.class
APushbackInputStream
adds functionality to another input stream, namely the ability to "push back" or "unread" bytes, by storing pushed-back bytes in an internal buffer.class
A character-stream reader that allows characters to be pushed back into the stream.class
Instances of this class support both reading and writing to a random access file.class
Abstract class for reading character streams.class
ASequenceInputStream
represents the logical concatenation of other input streams.class
Deprecated.This class does not properly convert characters into bytes.class
A character stream whose source is a string.class
A character stream that collects its output in a string buffer, which can then be used to construct a string.class
Abstract class for writing to character streams. -
Uses of AutoCloseable in java.lang.foreign
Modifier and TypeInterfaceDescriptioninterface
An arena controls the lifecycle of native memory segments, providing both flexible allocation and timely deallocation. -
Uses of AutoCloseable in java.lang.module
Modifier and TypeInterfaceDescriptioninterface
Provides access to the content of a module. -
Uses of AutoCloseable in java.net
Modifier and TypeClassDescriptionclass
This class represents a socket for sending and receiving datagram packets.class
AMulticastSocket
is a datagram socket that is convenient for sending and receiving IP multicast datagrams.class
This class implements server sockets.class
This class implements client sockets (also called just "sockets").class
This class loader is used to load classes and resources from a search path of URLs referring to both JAR files and directories. -
Uses of AutoCloseable in java.net.http
-
Uses of AutoCloseable in java.nio.channels
Modifier and TypeInterfaceDescriptioninterface
An asynchronous channel that can read and write bytes.interface
A channel that supports asynchronous I/O operations.interface
A channel that can read and write bytes.interface
A nexus for I/O operations.interface
A channel that can write bytes from a sequence of buffers.interface
A channel that can be asynchronously closed and interrupted.interface
A network channel that supports Internet Protocol (IP) multicasting.interface
A channel to a network socket.interface
A channel that can read bytes.interface
A channel that can read bytes into a sequence of buffers.interface
A byte channel that maintains a current position and allows the position to be changed.interface
A channel that can write bytes.Modifier and TypeClassDescriptionclass
An asynchronous channel for reading, writing, and manipulating a file.class
An asynchronous channel for stream-oriented listening sockets.class
An asynchronous channel for stream-oriented connecting sockets.class
A selectable channel for datagram-oriented sockets.class
A channel for reading, writing, mapping, and manipulating a file.class
A token representing a lock on a region of a file.static class
A channel representing the writable end of aPipe
.static class
A channel representing the readable end of aPipe
.class
A channel that can be multiplexed via aSelector
.class
A multiplexor ofSelectableChannel
objects.class
A selectable channel for stream-oriented listening sockets.class
A selectable channel for stream-oriented connecting sockets. -
Uses of AutoCloseable in java.nio.channels.spi
Modifier and TypeClassDescriptionclass
Base implementation class for interruptible channels.class
Base implementation class for selectable channels.class
Base implementation class for selectors. -
Uses of AutoCloseable in java.nio.file
Modifier and TypeInterfaceDescriptioninterface
An object to iterate over the entries in a directory.interface
ADirectoryStream
that defines operations on files that are located relative to an open directory.interface
A watch service that watches registered objects for changes and events.Modifier and TypeClassDescriptionclass
Provides an interface to a file system and is the factory for objects to access files and other objects in the file system. -
Uses of AutoCloseable in java.rmi.server
-
Uses of AutoCloseable in java.security
Modifier and TypeClassDescriptionclass
A transparent stream that updates the associated message digest using the bits going through the stream.class
A transparent stream that updates the associated message digest using the bits going through the stream. -
Uses of AutoCloseable in java.sql
Modifier and TypeInterfaceDescriptioninterface
The interface used to execute SQL stored procedures.interface
A connection (session) with a specific database.interface
An object that represents a precompiled SQL statement.interface
A table of data representing a database result set, which is usually generated by executing a statement that queries the database.interface
The object used for executing a static SQL statement and returning the results it produces. -
Uses of AutoCloseable in java.util
-
Uses of AutoCloseable in java.util.concurrent
Modifier and TypeInterfaceDescriptioninterface
interface
AnExecutorService
that can schedule commands to run after a given delay, or to execute periodically.Modifier and TypeClassDescriptionclass
Provides default implementations ofExecutorService
execution methods.class
AnExecutorService
for runningForkJoinTask
s.class
AThreadPoolExecutor
that can additionally schedule commands to run after a given delay, or to execute periodically.class
Preview.A basic API for structured concurrency.static final class
static final class
Preview.AStructuredTaskScope
that captures the result of the first subtask to complete successfullyPREVIEW.class
AFlow.Publisher
that asynchronously issues submitted (non-null) items to current subscribers until it is closed.class
AnExecutorService
that executes each submitted task using one of possibly several pooled threads, normally configured usingExecutors
factory methods. -
Uses of AutoCloseable in java.util.jar
Modifier and TypeClassDescriptionclass
TheJarFile
class is used to read the contents of a jar file from any file that can be opened withjava.io.RandomAccessFile
.class
TheJarInputStream
class, which extendsZipInputStream
, is used to read the contents of a JAR file from an input stream.class
TheJarOutputStream
class is used to write the contents of a JAR file to any output stream. -
Uses of AutoCloseable in java.util.stream
Modifier and TypeInterfaceDescriptioninterface
BaseStream<T, S extends BaseStream<T,
S>> Base interface for streams, which are sequences of elements supporting sequential and parallel aggregate operations.interface
A sequence of primitive double-valued elements supporting sequential and parallel aggregate operations.interface
A sequence of primitive int-valued elements supporting sequential and parallel aggregate operations.interface
A sequence of primitive long-valued elements supporting sequential and parallel aggregate operations.interface
Stream<T>
A sequence of elements supporting sequential and parallel aggregate operations. -
Uses of AutoCloseable in java.util.zip
Modifier and TypeClassDescriptionclass
An input stream that also maintains a checksum of the data being read.class
An output stream that also maintains a checksum of the data being written.class
Implements an input stream filter for compressing data in the "deflate" compression format.class
This class implements an output stream filter for compressing data in the "deflate" compression format.class
This class implements a stream filter for reading compressed data in the GZIP file format.class
This class implements a stream filter for writing compressed data in the GZIP file format.class
This class implements a stream filter for uncompressing data in the "deflate" compression format.class
Implements an output stream filter for uncompressing data stored in the "deflate" compression format.class
This class is used to read entries from a ZIP file.class
An input stream for reading compressed and uncompressed ZIP file entries from a stream of bytes in the ZIP file format.class
This class implements an output stream filter for writing files in the ZIP file format. -
Uses of AutoCloseable in javax.crypto
Modifier and TypeClassDescriptionclass
ACipherInputStream
is composed of anInputStream
and aCipher
object so that read() methods return data that are read in from the underlyingInputStream
but have been additionally processed by theCipher
object.class
ACipherOutputStream
is composed of anOutputStream
and aCipher
object so that write() methods first process the data before writing them out to the underlyingOutputStream
. -
Uses of AutoCloseable in javax.imageio.stream
Modifier and TypeInterfaceDescriptioninterface
A seekable input stream interface for use byImageReader
s.interface
A seekable output stream interface for use byImageWriter
s.Modifier and TypeClassDescriptionclass
An implementation ofImageInputStream
that gets its input from a regularInputStream
.class
An implementation ofImageOutputStream
that writes its output to a regularOutputStream
.class
An implementation ofImageInputStream
that gets its input from aFile
orRandomAccessFile
.class
An implementation ofImageOutputStream
that writes its output directly to aFile
orRandomAccessFile
.class
An abstract class implementing theImageInputStream
interface.class
An abstract class implementing theImageOutputStream
interface.class
An implementation ofImageInputStream
that gets its input from a regularInputStream
.class
An implementation ofImageOutputStream
that writes its output to a regularOutputStream
. -
Uses of AutoCloseable in javax.management.remote
Modifier and TypeInterfaceDescriptioninterface
The client end of a JMX API connector. -
Uses of AutoCloseable in javax.management.remote.rmi
Modifier and TypeInterfaceDescriptioninterface
RMI object used to forward an MBeanServer request from a client to its MBeanServer implementation on the server side.Modifier and TypeClassDescriptionclass
Implementation of theRMIConnection
interface.final class
RMIConnectionImpl remote stub.class
A connection to a remote RMI connector.class
AnRMIServer
object that is exported through JRMP and that creates client connections as RMI objects exported through JRMP.class
An RMI object representing a connector server. -
Uses of AutoCloseable in javax.net.ssl
Modifier and TypeClassDescriptionclass
This class extendsServerSocket
and provides secure server sockets using protocols such as the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocols.class
This class extendsSocket
and provides secure sockets using protocols such as the "Secure Sockets Layer" (SSL) or IETF "Transport Layer Security" (TLS) protocols. -
Uses of AutoCloseable in javax.sound.midi
Modifier and TypeInterfaceDescriptioninterface
MidiDevice
is the base interface for all MIDI devices.interface
MidiDeviceReceiver
is aReceiver
which represents a MIDI input connector of aMidiDevice
(seeMidiDevice.getReceiver()
).interface
MidiDeviceTransmitter
is aTransmitter
which represents a MIDI input connector of aMidiDevice
(seeMidiDevice.getTransmitter()
).interface
AReceiver
receivesMidiEvent
objects and typically does something useful in response, such as interpreting them to generate sound or raw MIDI output.interface
A hardware or software device that plays back a MIDIsequence
is known as a sequencer.interface
ASynthesizer
generates sound.interface
-
Uses of AutoCloseable in javax.sound.sampled
Modifier and TypeInterfaceDescriptioninterface
TheClip
interface represents a special kind of data line whose audio data can be loaded prior to playback, instead of being streamed in real time.interface
DataLine
adds media-related functionality to its superinterface,Line
.interface
TheLine
interface represents a mono or multi-channel audio feed.interface
A mixer is an audio device with one or more lines.interface
Ports are simple lines for input or output of audio to or from audio devices.interface
A source data line is a data line to which data may be written.interface
A target data line is a type ofDataLine
from which audio data can be read.Modifier and TypeClassDescriptionclass
An audio input stream is an input stream with a specified audio format and length. -
Uses of AutoCloseable in javax.sql
Modifier and TypeInterfaceDescriptioninterface
The interface that adds support to the JDBC API for the JavaBeans component model. -
Uses of AutoCloseable in javax.sql.rowset
Modifier and TypeInterfaceDescriptioninterface
The interface that all standard implementations ofCachedRowSet
must implement.interface
The standard interface that all standard implementations ofFilteredRowSet
must implement.interface
The standard interface that all standard implementations ofJdbcRowSet
must implement.interface
TheJoinRowSet
interface provides a mechanism for combining related data from differentRowSet
objects into oneJoinRowSet
object, which represents an SQLJOIN
.interface
The standard interface that all implementations of aWebRowSet
must implement. -
Uses of AutoCloseable in javax.sql.rowset.spi
Modifier and TypeInterfaceDescriptioninterface
Defines a framework that allows applications to use a manual decision tree to decide what should be done when a synchronization conflict occurs. -
Uses of AutoCloseable in javax.swing
Modifier and TypeClassDescriptionclass
Monitors the progress of reading from some InputStream. -
Uses of AutoCloseable in javax.tools
Modifier and TypeInterfaceDescriptioninterface
File manager for tools operating on Java programming language source and class files.interface
File manager based onjava.io.File
andjava.nio.file.Path
.Modifier and TypeClassDescriptionclass
ForwardingJavaFileManager<M extends JavaFileManager>
Forwards calls to a given file manager. -
Uses of AutoCloseable in jdk.jfr
Modifier and TypeClassDescriptionfinal class
Provides means to configure, start, stop and dump recording data to disk. -
Uses of AutoCloseable in jdk.jfr.consumer
Modifier and TypeClassDescriptionfinal class
A recording file.final class
A recording stream produces events from the current JVM (Java Virtual Machine). -
Uses of AutoCloseable in jdk.jshell
-
Uses of AutoCloseable in jdk.jshell.execution
Modifier and TypeClassDescriptionclass
AnExecutionControl
implementation that runs in the current process.class
The implementation ofExecutionControl
that the JShell-core uses by default.class
Abstract JDI implementation ofExecutionControl
.class
An implementation ofExecutionControl
which executes in the same JVM as the JShell-core.class
The remote agent runs in the execution process (separate from the main JShell process).class
An implementation of theExecutionControl
execution engine SPI which streams requests to a remote agent where execution takes place. -
Uses of AutoCloseable in jdk.jshell.spi
Modifier and TypeInterfaceDescriptioninterface
This interface specifies the functionality that must provided to implement a pluggable JShell execution engine. -
Uses of AutoCloseable in jdk.management.jfr
Modifier and TypeClassDescriptionfinal class
An implementation of anEventStream
that can serialize events over the network using anMBeanServerConnection
.