Uses of Class
java.io.IOException
Package
Description
This package comprises the interfaces and classes used to define the
signing mechanism used by the
jarsigner
tool.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.
This package defines connections between the virtual machine
using the JDI and the target virtual machine.
This package comprises the interfaces and classes used to
develop new
TransportService
implementations.This package contains the JDK's extension to
the standard implementation of the
java.lang.management
API and also defines the management
interface for some other components of the platform.Provides a simple high-level Http server API, which can be used to build
embedded HTTP servers.
Provides a pluggable service provider interface, which allows the HTTP server
implementation to be replaced with other implementations.
A Java API for Stream Control Transport Protocol.
Provides an implementation of
CallbackHandler
.Provides utilities for operations on abstract syntax trees (AST).
Provides the API to attach to a Java virtual machine.
Only developers who are defining new attach providers should need to make
direct use of this package.
Provides the classes necessary to create an applet and the classes an applet
uses to communicate with its applet context.
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides classes for color spaces.
Provides interfaces and classes for transferring data between and within
applications.
Drag and Drop is a direct manipulation gesture found in many Graphical User
Interface systems that provides a mechanism to transfer information between
two entities logically associated with presentation elements in the GUI.
Provides classes and interfaces for a general printing API.
Contains classes related to developing beans -- components based on
the JavaBeans architecture.
Provides classes and interfaces relating to bean context.
Provides for system input and output through data streams,
serialization and the file system.
Provides classes that are fundamental to the design of the Java
programming language.
Provides the management interfaces for monitoring and management of the
Java virtual machine and other components in 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 buffers, which are containers for data, and provides an
overview of the other NIO packages.
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 charsets, decoders, and encoders, for translating between
bytes and Unicode characters.
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
Interfaces and classes providing access to file and file system attributes.
Service-provider classes for the
java.nio.file
package.Provides the RMI package.
Provides classes and interfaces for supporting the server side of RMI.
Provides the classes and interfaces for the security framework.
Provides classes and interfaces for parsing and managing
certificates, certificate revocation lists (CRLs), and
certification paths.
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.
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.
Provides the classes and interfaces of
the Java 2 platform's core logging facilities.
This package allows applications to store and retrieve user and system
preference and configuration data.
Provides classes for reading and writing the standard ZIP and GZIP file
formats.
Facilities for declaring annotation processors and for
allowing annotation processors to communicate with an annotation processing
tool environment.
Provides the classes and interfaces for cryptographic
operations.
The main package of the Java Image I/O API.
A package of the Java Image I/O API dealing with reading and writing
metadata.
A package of the Java Image I/O API containing the plug-in interfaces for
readers, writers, transcoders, and streams, and a runtime registry.
A package of the Java Image I/O API dealing with low-level I/O from files and
streams.
Provides the core classes for the Java Management Extensions.
Provides the classes which implement advanced dynamic
loading.
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 support for LDAPv3 extended operations and controls.
Provides classes for networking applications.
Provides classes for the secure socket package.
Provides the principal classes and interfaces for the Java Print
Service API.
Provides implementations of
RMIClientSocketFactory
and RMIServerSocketFactory
over
the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocols.This package provides the classes necessary for services
to interact with applications in order to retrieve
information (authentication data including usernames
or passwords, for example) or to display information
(error and warning messages, for example).
Contains class and interfaces for supporting SASL.
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI
(Musical Instrument Digital Interface) data.
Supplies interfaces for service providers to implement when offering new MIDI
devices, MIDI file readers and writers, or sound bank readers.
Provides interfaces and classes for capture, processing, and playback of
sampled audio data.
Supplies abstract classes for service providers to subclass when offering new
audio devices, sound file readers and writers, or audio format converters.
Standard interfaces and base classes for JDBC
RowSet
implementations.Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Contains classes and interfaces used by the
JFileChooser
component.Synth is a skinnable look and feel in which all painting is delegated.
Provides classes and interfaces that deal with editable and noneditable text
components.
Provides the class
HTMLEditorKit
and supporting classes for creating
HTML text editors.Provides the default HTML parser, along with support classes.
Provides a class (
RTFEditorKit
) for creating Rich-Text-Format text
editors.Provides interfaces for tools which can be invoked from a program,
for example, compilers.
Provides the classes for processing XML documents with a SAX (Simple API for XML)
parser or a DOM (Document Object Model) Document builder.
Provides an API for validation of XML documents.
Classes to support low-level and efficient foreign memory/function access, directly from Java.
This package provides classes to create events and control Flight Recorder.
This package contains classes for consuming Flight Recorder data.
Provides implementation support for building JShell execution engines.
This package contains classes to control and monitor Flight Recorder over Java Management Extensions (JMX).
Platform specific socket options for the
java.net
and java.nio.channels
socket classes.Defines JDK-specific
channel
APIs.Provides the interfaces for the Simple API for XML (SAX).
Provides interfaces to SAX2 facilities that
conformant SAX drivers won't necessarily support.
Provides helper classes, including
support for bootstrapping SAX-based applications.
-
Uses of IOException in com.sun.jarsigner
Modifier and TypeMethodDescriptionabstract byte[]
ContentSigner.generateSignedData
(ContentSignerParameters parameters, boolean omitContent, boolean applyTimestamp) Deprecated, for removal: This API element is subject to removal in a future version.Generates a PKCS #7 signed data message. -
Uses of IOException in com.sun.jdi
Modifier and TypeMethodDescriptionVirtualMachineManager.createVirtualMachine
(Connection connection) Creates a new virtual machine.VirtualMachineManager.createVirtualMachine
(Connection connection, Process process) Create a virtual machine mirror for a target VM. -
Uses of IOException in com.sun.jdi.connect
Modifier and TypeClassDescriptionclass
This exception may be thrown as a result of a timeout when attaching to a target VM, or waiting to accept a connection from a target VM.Modifier and TypeMethodDescriptionListeningConnector.accept
(Map<String, ? extends Connector.Argument> arguments) Waits for a target VM to attach to this connector.AttachingConnector.attach
(Map<String, ? extends Connector.Argument> arguments) Attaches to a running application and returns a mirror of its VM.LaunchingConnector.launch
(Map<String, ? extends Connector.Argument> arguments) Launches an application and connects to its VM.ListeningConnector.startListening
(Map<String, ? extends Connector.Argument> arguments) Listens for one or more connections initiated by target VMs.void
ListeningConnector.stopListening
(Map<String, ? extends Connector.Argument> arguments) Cancels listening for connections. -
Uses of IOException in com.sun.jdi.connect.spi
Modifier and TypeClassDescriptionclass
This exception may be thrown as a result of an asynchronous close of aConnection
while an I/O operation is in progress.Modifier and TypeMethodDescriptionabstract Connection
TransportService.accept
(TransportService.ListenKey listenKey, long acceptTimeout, long handshakeTimeout) Accept a connection from a target VM.abstract Connection
Attaches to the specified address.abstract void
Connection.close()
Closes this connection.abstract byte[]
Connection.readPacket()
Reads a packet from the target VM.abstract TransportService.ListenKey
TransportService.startListening()
Listens on an address chosen by the transport service.abstract TransportService.ListenKey
TransportService.startListening
(String address) Listens on the specified address for inbound connections.abstract void
TransportService.stopListening
(TransportService.ListenKey listenKey) Stop listening for inbound connections.abstract void
Connection.writePacket
(byte[] pkt) Writes a packet to the target VM. -
Uses of IOException in com.sun.management
-
Uses of IOException in com.sun.net.httpserver
Modifier and TypeMethodDescriptionabstract void
HttpServer.bind
(InetSocketAddress addr, int backlog) Binds a currently unboundHttpServer
to the given address and port number.static HttpServer
HttpServer.create()
Creates aHttpServer
instance which is initially not bound to any local address/port.static HttpServer
HttpServer.create
(InetSocketAddress addr, int backlog) Create aHttpServer
instance which will bind to the specifiedInetSocketAddress
(IP address and port number).static HttpsServer
HttpsServer.create()
Creates aHttpsServer
instance which is initially not bound to any local address/port.static HttpsServer
HttpsServer.create
(InetSocketAddress addr, int backlog) Create aHttpsServer
instance which will bind to the specifiedInetSocketAddress
(IP address and port number).void
Filter.Chain.doFilter
(HttpExchange exchange) Calls the next filter in the chain, or else the users exchange handler, if this is the final filter in the chain.abstract void
Filter.doFilter
(HttpExchange exchange, Filter.Chain chain) Asks this filter to pre/post-process the given exchange.void
HttpHandler.handle
(HttpExchange exchange) Handle the given request and generate an appropriate response.abstract void
HttpExchange.sendResponseHeaders
(int rCode, long responseLength) Starts sending the response back to the client using the current set of response headers and the numeric response code as specified in this method. -
Uses of IOException in com.sun.net.httpserver.spi
Modifier and TypeMethodDescriptionabstract HttpServer
HttpServerProvider.createHttpServer
(InetSocketAddress addr, int backlog) creates a HttpServer from this providerabstract HttpsServer
HttpServerProvider.createHttpsServer
(InetSocketAddress addr, int backlog) creates a HttpsServer from this provider -
Uses of IOException in com.sun.nio.sctp
Modifier and TypeMethodDescriptionabstract SctpChannel
SctpServerChannel.accept()
Accepts an association on this channel's socket.abstract Association
SctpChannel.association()
Returns the association on this channel's socket.abstract Set<Association>
SctpMultiChannel.associations()
Returns the open associations on this channel's socket.abstract SctpChannel
SctpChannel.bind
(SocketAddress local) Binds the channel's socket to a local address.final SctpMultiChannel
SctpMultiChannel.bind
(SocketAddress local) Binds the channel's socket to a local address and configures the socket to listen for connections.abstract SctpMultiChannel
SctpMultiChannel.bind
(SocketAddress local, int backlog) Binds the channel's socket to a local address and configures the socket to listen for connections.final SctpServerChannel
SctpServerChannel.bind
(SocketAddress local) Binds the channel's socket to a local address and configures the socket to listen for associations.abstract SctpServerChannel
SctpServerChannel.bind
(SocketAddress local, int backlog) Binds the channel's socket to a local address and configures the socket to listen for associations.abstract SctpChannel
SctpChannel.bindAddress
(InetAddress address) Adds the given address to the bound addresses for the channel's socket.abstract SctpMultiChannel
SctpMultiChannel.bindAddress
(InetAddress address) Adds the given address to the bound addresses for the channel's socket.abstract SctpServerChannel
SctpServerChannel.bindAddress
(InetAddress address) Adds the given address to the bound addresses for the channel's socket.abstract SctpChannel
SctpMultiChannel.branch
(Association association) Branches off an association.abstract boolean
SctpChannel.connect
(SocketAddress remote) Connects this channel's socket.abstract boolean
SctpChannel.connect
(SocketAddress remote, int maxOutStreams, int maxInStreams) Connects this channel's socket.abstract boolean
SctpChannel.finishConnect()
Finishes the process of connecting an SCTP channel.abstract Set<SocketAddress>
SctpChannel.getAllLocalAddresses()
Returns all of the socket addresses to which this channel's socket is bound.abstract Set<SocketAddress>
SctpMultiChannel.getAllLocalAddresses()
Returns all of the socket addresses to which this channel's socket is bound.abstract Set<SocketAddress>
SctpServerChannel.getAllLocalAddresses()
Returns all of the socket addresses to which this channel's socket is bound.abstract <T> T
SctpChannel.getOption
(SctpSocketOption<T> name) Returns the value of a socket option.abstract <T> T
SctpMultiChannel.getOption
(SctpSocketOption<T> name, Association association) Returns the value of a socket option.abstract <T> T
SctpServerChannel.getOption
(SctpSocketOption<T> name) Returns the value of a socket option.abstract Set<SocketAddress>
SctpChannel.getRemoteAddresses()
Returns all of the remote addresses to which this channel's socket is connected.abstract Set<SocketAddress>
SctpMultiChannel.getRemoteAddresses
(Association association) Returns all of the remote addresses to which the given association on this channel's socket is connected.static SctpChannel
SctpChannel.open()
Opens an SCTP channel.static SctpChannel
SctpChannel.open
(SocketAddress remote, int maxOutStreams, int maxInStreams) Opens an SCTP channel and connects it to a remote address.static SctpMultiChannel
SctpMultiChannel.open()
Opens an SCTP multi channel.static SctpServerChannel
SctpServerChannel.open()
Opens an SCTP server channel.abstract <T> MessageInfo
SctpChannel.receive
(ByteBuffer dst, T attachment, NotificationHandler<T> handler) Receives a message into the given buffer and/or handles a notification.abstract <T> MessageInfo
SctpMultiChannel.receive
(ByteBuffer buffer, T attachment, NotificationHandler<T> handler) Receives a message and/or handles a notification via this channel.abstract int
SctpChannel.send
(ByteBuffer src, MessageInfo messageInfo) Sends a message via this channel.abstract int
SctpMultiChannel.send
(ByteBuffer buffer, MessageInfo messageInfo) Sends a message via this channel.abstract <T> SctpChannel
SctpChannel.setOption
(SctpSocketOption<T> name, T value) Sets the value of a socket option.abstract <T> SctpMultiChannel
SctpMultiChannel.setOption
(SctpSocketOption<T> name, T value, Association association) Sets the value of a socket option.abstract <T> SctpServerChannel
SctpServerChannel.setOption
(SctpSocketOption<T> name, T value) Sets the value of a socket option.abstract SctpChannel
SctpChannel.shutdown()
Shutdown a connection without closing the channel.abstract SctpMultiChannel
SctpMultiChannel.shutdown
(Association association) Shutdown an association without closing the channel.abstract SctpChannel
SctpChannel.unbindAddress
(InetAddress address) Removes the given address from the bound addresses for the channel's socket.abstract SctpMultiChannel
SctpMultiChannel.unbindAddress
(InetAddress address) Removes the given address from the bound addresses for the channel's socket.abstract SctpServerChannel
SctpServerChannel.unbindAddress
(InetAddress address) Removes the given address from the bound addresses for the channel's socket. -
Uses of IOException in com.sun.security.auth.callback
-
Uses of IOException in com.sun.source.util
Modifier and TypeMethodDescriptionJavacTask.analyze()
Completes all analysis.abstract Iterable<? extends JavaFileObject>
JavacTask.generate()
Generates code.abstract DocCommentTree
DocTrees.getDocCommentTree
(Element e, String relativePath) Returns the doc comment tree of the given file whose path is specified relative to the given element.abstract Iterable<? extends CompilationUnitTree>
JavacTask.parse()
Parses the specified files returning a list of abstract syntax trees. -
Uses of IOException in com.sun.tools.attach
Modifier and TypeClassDescriptionclass
Exception type to signal that an attach operation failed in the target VM.Modifier and TypeMethodDescriptionstatic VirtualMachine
VirtualMachine.attach
(VirtualMachineDescriptor vmd) Attaches to a Java virtual machine.static VirtualMachine
Attaches to a Java virtual machine.abstract void
VirtualMachine.detach()
Detach from the virtual machine.abstract Properties
VirtualMachine.getAgentProperties()
Returns the current agent properties in the target virtual machine.abstract Properties
VirtualMachine.getSystemProperties()
Returns the current system properties in the target virtual machine.void
Loads an agent.abstract void
Loads an agent.void
VirtualMachine.loadAgentLibrary
(String agentLibrary) Loads an agent library.abstract void
VirtualMachine.loadAgentLibrary
(String agentLibrary, String options) Loads an agent library.void
VirtualMachine.loadAgentPath
(String agentPath) Load a native agent library by full pathname.abstract void
VirtualMachine.loadAgentPath
(String agentPath, String options) Load a native agent library by full pathname.abstract String
VirtualMachine.startLocalManagementAgent()
Starts the local JMX management agent in the target virtual machine.abstract void
VirtualMachine.startManagementAgent
(Properties agentProperties) Starts the JMX management agent in the target virtual machine. -
Uses of IOException in com.sun.tools.attach.spi
Modifier and TypeMethodDescriptionAttachProvider.attachVirtualMachine
(VirtualMachineDescriptor vmd) Attaches to a Java virtual machine.abstract VirtualMachine
AttachProvider.attachVirtualMachine
(String id) Attaches to a Java virtual machine. -
Uses of IOException in java.applet
Modifier and TypeMethodDescriptionvoid
AppletContext.setStream
(String key, InputStream stream) Deprecated, for removal: This API element is subject to removal in a future version.Associates the specified stream with the specified key in this applet context. -
Uses of IOException in java.awt
Modifier and TypeMethodDescriptionvoid
Launches the default browser to display aURI
.static Font
Font.createFont
(int fontFormat, File fontFile) Returns a newFont
using the specified font type and the specified font file.static Font
Font.createFont
(int fontFormat, InputStream fontStream) Returns a newFont
using the specified font type and input data.static Font[]
Font.createFonts
(File fontFile) Returns a new array ofFont
decoded from the specified file.static Font[]
Font.createFonts
(InputStream fontStream) Returns a new array ofFont
decoded from the specified stream.void
Launches the associated editor application and opens a file for editing.void
Desktop.mail()
Launches the mail composing window of the user default mail client.void
Launches the mail composing window of the user default mail client, filling the message fields specified by amailto:
URI.void
Launches the associated application to open the file.void
Prints a file with the native desktop printing facility, using the associated application's print command.protected static void
AWTEventMulticaster.save
(ObjectOutputStream s, String k, EventListener l) Saves a Serializable listener chain to a serialization stream.protected void
AWTEventMulticaster.saveInternal
(ObjectOutputStream s, String k) Serialization support.void
SplashScreen.setImageURL
(URL imageURL) Changes the splash screen image. -
Uses of IOException in java.awt.color
Modifier and TypeMethodDescriptionstatic ICC_Profile
ICC_Profile.getInstance
(InputStream s) Constructs anICC_Profile
corresponding to the data in anInputStream
.static ICC_Profile
ICC_Profile.getInstance
(String fileName) Constructs anICC_Profile
corresponding to the data in a file.void
ICC_Profile.write
(OutputStream s) Write thisICC_Profile
to anOutputStream
.void
Write thisICC_Profile
to a file. -
Uses of IOException in java.awt.datatransfer
Modifier and TypeMethodDescriptionClipboard.getData
(DataFlavor flavor) Returns an object representing the current contents of this clipboard in the specifiedDataFlavor
.DataFlavor.getReaderForText
(Transferable transferable) Gets a Reader for a text flavor, decoded, if necessary, for the expected charset (encoding).StringSelection.getTransferData
(DataFlavor flavor) Returns theTransferable
's data in the requestedDataFlavor
if possible.Transferable.getTransferData
(DataFlavor flavor) Returns an object which represents the data to be transferred.void
DataFlavor.readExternal
(ObjectInput is) Restores thisDataFlavor
from a Serialized state.void
DataFlavor.writeExternal
(ObjectOutput os) Serializes thisDataFlavor
. -
Uses of IOException in java.awt.dnd
Modifier and TypeMethodDescriptionDropTargetContext.TransferableProxy.getTransferData
(DataFlavor df) Returns an object which represents the data provided by the encapsulated transferable for the requested data flavor. -
Uses of IOException in java.awt.print
Modifier and TypeMethodDescriptionPrinterIOException.getIOException()
Returns theIOException
that terminated the print job.ModifierConstructorDescriptionPrinterIOException
(IOException exception) Constructs a newPrinterIOException
with the string representation of the specifiedIOException
. -
Uses of IOException in java.beans
Modifier and TypeMethodDescriptionstatic Object
Beans.instantiate
(ClassLoader cls, String beanName) Instantiate a JavaBean.static Object
Beans.instantiate
(ClassLoader cls, String beanName, BeanContext beanContext) Instantiate a JavaBean.static Object
Beans.instantiate
(ClassLoader cls, String beanName, BeanContext beanContext, AppletInitializer initializer) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of IOException in java.beans.beancontext
Modifier and TypeMethodDescriptionprotected void
BeanContextServicesSupport.bcsPreDeserializationHook
(ObjectInputStream ois) called from BeanContextSupport readObject before it deserializes the children ...protected void
BeanContextSupport.bcsPreDeserializationHook
(ObjectInputStream ois) called by readObject after defaultReadObject() but prior to deserialization of any children.protected void
BeanContextServicesSupport.bcsPreSerializationHook
(ObjectOutputStream oos) called from BeanContextSupport writeObject before it serializes the children ...protected void
BeanContextSupport.bcsPreSerializationHook
(ObjectOutputStream oos) called by writeObject after defaultWriteObject() but prior to serialization of currently serializable children.protected final void
BeanContextSupport.deserialize
(ObjectInputStream ois, Collection coll) used by readObject to deserialize a collection.BeanContext.instantiateChild
(String beanName) Instantiate the javaBean named as a child of thisBeanContext
.BeanContextSupport.instantiateChild
(String beanName) The instantiateChild method is a convenience hook in BeanContext to simplify the task of instantiating a Bean, nested, into aBeanContext
.final void
BeanContextSupport.readChildren
(ObjectInputStream ois) When an instance of this class is used as a delegate for the implementation of the BeanContext protocols (and its subprotocols) there exists a 'chicken and egg' problem during deserializationprotected final void
BeanContextSupport.serialize
(ObjectOutputStream oos, Collection<?> coll) Used by writeObject to serialize a Collection.final void
BeanContextSupport.writeChildren
(ObjectOutputStream oos) Used to serialize all children of thisBeanContext
. -
Uses of IOException in java.io
Modifier and TypeClassDescriptionclass
Base class for character conversion exceptions.class
Signals that an end of file or end of stream has been reached unexpectedly during input.class
Signals that an attempt to open the file denoted by a specified pathname has failed.class
Signals that an I/O operation has been interrupted.class
Thrown when the Serialization runtime detects one of the following problems with a Class.class
Indicates that one or more deserialized objects failed validation tests.class
Thrown when serialization or deserialization is not active.class
Thrown when an instance is required to have a Serializable interface.class
Superclass of all exceptions specific to Object Stream classes.class
Exception indicating the failure of an object read operation due to unread primitive data, or the end of data belonging to a serialized object in the stream.class
Thrown when control information that was read from an object stream violates internal consistency checks.class
Signals that a sync operation has failed.class
The Character Encoding is not supported.class
Signals that a malformed string in modified UTF-8 format has been read in a data input stream or by any class that implements the data input interface.class
Signals that one of the ObjectStreamExceptions was thrown during a write operation.Modifier and TypeMethodDescriptionUncheckedIOException.getCause()
Returns the cause of this exception.Modifier and TypeMethodDescriptionprotected void
ObjectOutputStream.annotateClass
(Class<?> cl) Subclasses may implement this method to allow class data to be stored in the stream.protected void
ObjectOutputStream.annotateProxyClass
(Class<?> cl) Subclasses may implement this method to store custom data in the stream along with descriptors for dynamic proxy classes.Writer.append
(char c) Appends the specified character to this writer.Writer.append
(CharSequence csq) Appends the specified character sequence to this writer.Writer.append
(CharSequence csq, int start, int end) Appends a subsequence of the specified character sequence to this writer.int
BufferedInputStream.available()
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream.int
FileInputStream.available()
Returns an estimate of the number of remaining bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream.int
FilterInputStream.available()
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.int
InputStream.available()
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected.int
LineNumberInputStream.available()
Deprecated.Returns the number of bytes that can be read from this input stream without blocking.int
ObjectInput.available()
Returns the number of bytes that can be read without blocking.int
ObjectInputStream.available()
Returns the number of bytes that can be read without blocking.int
PipedInputStream.available()
Returns the number of bytes that can be read from this input stream without blocking.int
PushbackInputStream.available()
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream.int
SequenceInputStream.available()
Returns an estimate of the number of bytes that can be read (or skipped over) from the current underlying input stream without blocking by the next invocation of a method for the current underlying input stream.void
BufferedInputStream.close()
Closes this input stream and releases any system resources associated with the stream.void
BufferedReader.close()
void
BufferedWriter.close()
void
ByteArrayInputStream.close()
Closing aByteArrayInputStream
has no effect.void
ByteArrayOutputStream.close()
Closing aByteArrayOutputStream
has no effect.void
Closeable.close()
Closes this stream and releases any system resources associated with it.void
FileInputStream.close()
Closes this file input stream and releases any system resources associated with the stream.void
FileOutputStream.close()
Closes this file output stream and releases any system resources associated with this stream.void
FilterInputStream.close()
Closes this input stream and releases any system resources associated with the stream.void
FilterOutputStream.close()
Closes this output stream and releases any system resources associated with the stream.void
FilterReader.close()
void
FilterWriter.close()
void
InputStream.close()
Closes this input stream and releases any system resources associated with the stream.void
InputStreamReader.close()
void
ObjectInput.close()
Closes the input stream.void
ObjectInputStream.close()
Closes the input stream.void
ObjectOutput.close()
Closes the stream.void
ObjectOutputStream.close()
Closes the stream.void
OutputStream.close()
Closes this output stream and releases any system resources associated with this stream.void
OutputStreamWriter.close()
void
PipedInputStream.close()
Closes this piped input stream and releases any system resources associated with the stream.void
PipedOutputStream.close()
Closes this piped output stream and releases any system resources associated with this stream.void
PipedReader.close()
Closes this piped stream and releases any system resources associated with the stream.void
PipedWriter.close()
Closes this piped output stream and releases any system resources associated with this stream.void
PushbackInputStream.close()
Closes this input stream and releases any system resources associated with the stream.void
PushbackReader.close()
Closes the stream and releases any system resources associated with it.void
RandomAccessFile.close()
Closes this random access file stream and releases any system resources associated with the stream.abstract void
Reader.close()
Closes the stream and releases any system resources associated with it.void
SequenceInputStream.close()
Closes this input stream and releases any system resources associated with the stream.void
StringWriter.close()
Closing aStringWriter
has no effect.abstract void
Writer.close()
Closes the stream, flushing it first.void
PipedInputStream.connect
(PipedOutputStream src) Causes this piped input stream to be connected to the piped output streamsrc
.void
PipedOutputStream.connect
(PipedInputStream snk) Connects this piped output stream to a receiver.void
PipedReader.connect
(PipedWriter src) Causes this piped reader to be connected to the piped writersrc
.void
PipedWriter.connect
(PipedReader snk) Connects this piped writer to a receiver.boolean
File.createNewFile()
Atomically creates a new, empty file named by this abstract pathname if and only if a file with this name does not yet exist.static File
File.createTempFile
(String prefix, String suffix) Creates an empty file in the default temporary-file directory, using the given prefix and suffix to generate its name.static File
File.createTempFile
(String prefix, String suffix, File directory) Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name.abstract boolean
Return true if the named field is defaulted and has no value in this stream.void
ObjectInputStream.defaultReadObject()
Read the non-static and non-transient fields of the current class from this stream.void
ObjectOutputStream.defaultWriteObject()
Write the non-static and non-transient fields of the current class to this stream.protected void
ObjectOutputStream.drain()
Drain any buffered data in ObjectOutputStream.void
BufferedOutputStream.flush()
Flushes this buffered output stream.void
BufferedWriter.flush()
Flushes the stream.void
DataOutputStream.flush()
Flushes this data output stream.void
FilterOutputStream.flush()
Flushes this output stream and forces any buffered output bytes to be written out to the stream.void
FilterWriter.flush()
Flushes the stream.void
Flushable.flush()
Flushes this stream by writing any buffered output to the underlying stream.void
ObjectOutput.flush()
Flushes the stream.void
ObjectOutputStream.flush()
Flushes the stream.void
OutputStream.flush()
Flushes this output stream and forces any buffered output bytes to be written out.void
OutputStreamWriter.flush()
Flushes the stream.void
PipedOutputStream.flush()
Flushes this output stream and forces any buffered output bytes to be written out.void
PipedWriter.flush()
Flushes this output stream and forces any buffered output characters to be written out.abstract void
Writer.flush()
Flushes the stream.abstract boolean
Get the value of the named boolean field from the persistent field.abstract byte
Get the value of the named byte field from the persistent field.abstract char
Get the value of the named char field from the persistent field.abstract double
Get the value of the named double field from the persistent field.abstract float
Get the value of the named float field from the persistent field.abstract int
Get the value of the named int field from the persistent field.abstract long
Get the value of the named long field from the persistent field.abstract short
Get the value of the named short field from the persistent field.abstract Object
Get the value of the named Object field from the persistent field.File.getCanonicalFile()
Returns the canonical form of this abstract pathname.File.getCanonicalPath()
Returns the canonical pathname string of this abstract pathname.final FileDescriptor
FileInputStream.getFD()
Returns theFileDescriptor
object that represents the connection to the actual file in the file system being used by thisFileInputStream
.final FileDescriptor
FileOutputStream.getFD()
Returns the file descriptor associated with this stream.final FileDescriptor
RandomAccessFile.getFD()
Returns the opaque file descriptor object associated with this stream.long
RandomAccessFile.getFilePointer()
Returns the current offset in this file.long
RandomAccessFile.length()
Returns the length of this file.void
BufferedReader.mark
(int readAheadLimit) Marks the present position in the stream.void
CharArrayReader.mark
(int readAheadLimit) Marks the present position in the stream.void
FilterReader.mark
(int readAheadLimit) Marks the present position in the stream.void
LineNumberReader.mark
(int readAheadLimit) Mark the present position in the stream.void
PushbackReader.mark
(int readAheadLimit) Marks the present position in the stream.void
Reader.mark
(int readAheadLimit) Marks the present position in the stream.void
StringReader.mark
(int readAheadLimit) Marks the present position in the stream.void
BufferedWriter.newLine()
Writes a line separator.int
StreamTokenizer.nextToken()
Parses the next token from the input stream of this tokenizer.ObjectOutputStream.putFields()
Retrieve the object used to buffer persistent fields to be written to the stream.int
BufferedInputStream.read()
See the general contract of theread
method ofInputStream
.int
BufferedInputStream.read
(byte[] b, int off, int len) Reads bytes from this byte-input stream into the specified byte array, starting at the given offset.int
BufferedReader.read()
Reads a single character.int
BufferedReader.read
(char[] cbuf, int off, int len) Reads characters into a portion of an array.int
CharArrayReader.read()
Reads a single character.int
CharArrayReader.read
(char[] cbuf, int off, int len) Reads characters into a portion of an array.final int
DataInputStream.read
(byte[] b) Reads some number of bytes from the contained input stream and stores them into the buffer arrayb
.final int
DataInputStream.read
(byte[] b, int off, int len) Reads up tolen
bytes of data from the contained input stream into an array of bytes.int
FileInputStream.read()
Reads a byte of data from this input stream.int
FileInputStream.read
(byte[] b) Reads up tob.length
bytes of data from this input stream into an array of bytes.int
FileInputStream.read
(byte[] b, int off, int len) Reads up tolen
bytes of data from this input stream into an array of bytes.int
FilterInputStream.read()
Reads the next byte of data from this input stream.int
FilterInputStream.read
(byte[] b) Reads up tob.length
bytes of data from this input stream into an array of bytes.int
FilterInputStream.read
(byte[] b, int off, int len) Reads up tolen
bytes of data from this input stream into an array of bytes.int
FilterReader.read()
Reads a single character.int
FilterReader.read
(char[] cbuf, int off, int len) Reads characters into a portion of an array.abstract int
InputStream.read()
Reads the next byte of data from the input stream.int
InputStream.read
(byte[] b) Reads some number of bytes from the input stream and stores them into the buffer arrayb
.int
InputStream.read
(byte[] b, int off, int len) Reads up tolen
bytes of data from the input stream into an array of bytes.int
InputStreamReader.read()
Reads a single character.int
InputStreamReader.read
(char[] cbuf, int off, int len) Reads characters into a portion of an array.int
LineNumberInputStream.read()
Deprecated.Reads the next byte of data from this input stream.int
LineNumberInputStream.read
(byte[] b, int off, int len) Deprecated.Reads up tolen
bytes of data from this input stream into an array of bytes.int
LineNumberReader.read()
Read a single character.int
LineNumberReader.read
(char[] cbuf, int off, int len) Reads characters into a portion of an array.int
ObjectInput.read()
Reads a byte of data.int
ObjectInput.read
(byte[] b) Reads into an array of bytes.int
ObjectInput.read
(byte[] b, int off, int len) Reads into an array of bytes.int
ObjectInputStream.read()
Reads a byte of data.int
ObjectInputStream.read
(byte[] buf, int off, int len) Reads into an array of bytes.int
PipedInputStream.read()
Reads the next byte of data from this piped input stream.int
PipedInputStream.read
(byte[] b, int off, int len) Reads up tolen
bytes of data from this piped input stream into an array of bytes.int
PipedReader.read()
Reads the next character of data from this piped stream.int
PipedReader.read
(char[] cbuf, int off, int len) Reads characters into a portion of an array.int
PushbackInputStream.read()
Reads the next byte of data from this input stream.int
PushbackInputStream.read
(byte[] b, int off, int len) Reads up tolen
bytes of data from this input stream into an array of bytes.int
PushbackReader.read()
Reads a single character.int
RandomAccessFile.read()
Reads a byte of data from this file.int
RandomAccessFile.read
(byte[] b) Reads up tob.length
bytes of data from this file into an array of bytes.int
RandomAccessFile.read
(byte[] b, int off, int len) Reads up tolen
bytes of data from this file into an array of bytes.int
Reader.read()
Reads a single character.int
Reader.read
(char[] cbuf) Reads characters into an array.abstract int
Reader.read
(char[] cbuf, int off, int len) Reads characters into a portion of an array.int
Reader.read
(CharBuffer target) Attempts to read characters into the specified character buffer.int
SequenceInputStream.read()
Reads the next byte of data from this input stream.int
SequenceInputStream.read
(byte[] b, int off, int len) Reads up tolen
bytes of data from this input stream into an array of bytes.int
StringReader.read()
Reads a single character.int
StringReader.read
(char[] cbuf, int off, int len) Reads characters into a portion of an array.byte[]
InputStream.readAllBytes()
Reads all remaining bytes from the input stream.boolean
DataInput.readBoolean()
Reads one input byte and returnstrue
if that byte is nonzero,false
if that byte is zero.final boolean
DataInputStream.readBoolean()
See the general contract of thereadBoolean
method ofDataInput
.boolean
ObjectInputStream.readBoolean()
Reads in a boolean.final boolean
RandomAccessFile.readBoolean()
Reads aboolean
from this file.byte
DataInput.readByte()
Reads and returns one input byte.final byte
DataInputStream.readByte()
See the general contract of thereadByte
method ofDataInput
.byte
ObjectInputStream.readByte()
Reads an 8 bit byte.final byte
RandomAccessFile.readByte()
Reads a signed eight-bit value from this file.char
DataInput.readChar()
Reads two input bytes and returns achar
value.final char
DataInputStream.readChar()
See the general contract of thereadChar
method ofDataInput
.char
ObjectInputStream.readChar()
Reads a 16 bit char.final char
RandomAccessFile.readChar()
Reads a character from this file.protected ObjectStreamClass
ObjectInputStream.readClassDescriptor()
Read a class descriptor from the serialization stream.double
DataInput.readDouble()
Reads eight input bytes and returns adouble
value.final double
DataInputStream.readDouble()
See the general contract of thereadDouble
method ofDataInput
.double
ObjectInputStream.readDouble()
Reads a 64 bit double.final double
RandomAccessFile.readDouble()
Reads adouble
from this file.void
Externalizable.readExternal
(ObjectInput in) The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.ObjectInputStream.readFields()
Reads the persistent fields from the stream and makes them available by name.float
DataInput.readFloat()
Reads four input bytes and returns afloat
value.final float
DataInputStream.readFloat()
See the general contract of thereadFloat
method ofDataInput
.float
ObjectInputStream.readFloat()
Reads a 32 bit float.final float
RandomAccessFile.readFloat()
Reads afloat
from this file.void
DataInput.readFully
(byte[] b) Reads some bytes from an input stream and stores them into the buffer arrayb
.void
DataInput.readFully
(byte[] b, int off, int len) Readslen
bytes from an input stream.final void
DataInputStream.readFully
(byte[] b) See the general contract of thereadFully
method ofDataInput
.final void
DataInputStream.readFully
(byte[] b, int off, int len) See the general contract of thereadFully
method ofDataInput
.void
ObjectInputStream.readFully
(byte[] buf) Reads bytes, blocking until all bytes are read.void
ObjectInputStream.readFully
(byte[] buf, int off, int len) Reads bytes, blocking until all bytes are read.final void
RandomAccessFile.readFully
(byte[] b) Readsb.length
bytes from this file into the byte array, starting at the current file pointer.final void
RandomAccessFile.readFully
(byte[] b, int off, int len) Reads exactlylen
bytes from this file into the byte array, starting at the current file pointer.int
DataInput.readInt()
Reads four input bytes and returns anint
value.final int
DataInputStream.readInt()
See the general contract of thereadInt
method ofDataInput
.int
ObjectInputStream.readInt()
Reads a 32 bit int.final int
RandomAccessFile.readInt()
Reads a signed 32-bit integer from this file.BufferedReader.readLine()
Reads a line of text.DataInput.readLine()
Reads the next line of text from the input stream.final String
DataInputStream.readLine()
Deprecated.This method does not properly convert bytes to characters.LineNumberReader.readLine()
Read a line of text.ObjectInputStream.readLine()
Deprecated.This method does not properly convert bytes to characters.final String
RandomAccessFile.readLine()
Reads the next line of text from this file.long
DataInput.readLong()
Reads eight input bytes and returns along
value.final long
DataInputStream.readLong()
See the general contract of thereadLong
method ofDataInput
.long
ObjectInputStream.readLong()
Reads a 64 bit long.final long
RandomAccessFile.readLong()
Reads a signed 64-bit integer from this file.int
InputStream.readNBytes
(byte[] b, int off, int len) Reads the requested number of bytes from the input stream into the given byte array.byte[]
InputStream.readNBytes
(int len) Reads up to a specified number of bytes from the input stream.ObjectInput.readObject()
Read and return an object.final Object
ObjectInputStream.readObject()
Read an object from the ObjectInputStream.protected Object
ObjectInputStream.readObjectOverride()
This method is called by trusted subclasses of ObjectInputStream that constructed ObjectInputStream using the protected no-arg constructor.short
DataInput.readShort()
Reads two input bytes and returns ashort
value.final short
DataInputStream.readShort()
See the general contract of thereadShort
method ofDataInput
.short
ObjectInputStream.readShort()
Reads a 16 bit short.final short
RandomAccessFile.readShort()
Reads a signed 16-bit number from this file.protected void
ObjectInputStream.readStreamHeader()
The readStreamHeader method is provided to allow subclasses to read and verify their own stream headers.ObjectInputStream.readUnshared()
Reads an "unshared" object from the ObjectInputStream.int
DataInput.readUnsignedByte()
Reads one input byte, zero-extends it to typeint
, and returns the result, which is therefore in the range0
through255
.final int
DataInputStream.readUnsignedByte()
See the general contract of thereadUnsignedByte
method ofDataInput
.int
ObjectInputStream.readUnsignedByte()
Reads an unsigned 8 bit byte.final int
RandomAccessFile.readUnsignedByte()
Reads an unsigned eight-bit number from this file.int
DataInput.readUnsignedShort()
Reads two input bytes and returns anint
value in the range0
through65535
.final int
DataInputStream.readUnsignedShort()
See the general contract of thereadUnsignedShort
method ofDataInput
.int
ObjectInputStream.readUnsignedShort()
Reads an unsigned 16 bit short.final int
RandomAccessFile.readUnsignedShort()
Reads an unsigned 16-bit number from this file.DataInput.readUTF()
Reads in a string that has been encoded using a modified UTF-8 format.final String
DataInputStream.readUTF()
See the general contract of thereadUTF
method ofDataInput
.static final String
Reads from the streamin
a representation of a Unicode character string encoded in modified UTF-8 format; this string of characters is then returned as aString
.ObjectInputStream.readUTF()
Reads a String in modified UTF-8 format.final String
RandomAccessFile.readUTF()
Reads in a string from this file.boolean
BufferedReader.ready()
Tells whether this stream is ready to be read.boolean
CharArrayReader.ready()
Tells whether this stream is ready to be read.boolean
FilterReader.ready()
Tells whether this stream is ready to be read.boolean
InputStreamReader.ready()
Tells whether this stream is ready to be read.boolean
PipedReader.ready()
Tell whether this stream is ready to be read.boolean
PushbackReader.ready()
Tells whether this stream is ready to be read.boolean
Reader.ready()
Tells whether this stream is ready to be read.boolean
StringReader.ready()
Tells whether this stream is ready to be read.protected void
PipedInputStream.receive
(int b) Receives a byte of data.protected Object
ObjectOutputStream.replaceObject
(Object obj) This method will allow trusted subclasses of ObjectOutputStream to substitute one object for another during serialization.void
BufferedInputStream.reset()
See the general contract of thereset
method ofInputStream
.void
BufferedReader.reset()
Resets the stream to the most recent mark.void
CharArrayReader.reset()
Resets the stream to the most recent mark, or to the beginning if it has never been marked.void
FilterInputStream.reset()
Repositions this stream to the position at the time themark
method was last called on this input stream.void
FilterReader.reset()
Resets the stream.void
InputStream.reset()
Repositions this stream to the position at the time themark
method was last called on this input stream.void
LineNumberInputStream.reset()
Deprecated.Repositions this stream to the position at the time themark
method was last called on this input stream.void
LineNumberReader.reset()
Reset the stream to the most recent mark.void
ObjectOutputStream.reset()
Reset will disregard the state of any objects already written to the stream.void
PushbackInputStream.reset()
Repositions this stream to the position at the time themark
method was last called on this input stream.void
PushbackReader.reset()
Resets the stream.void
Reader.reset()
Resets the stream.void
StringReader.reset()
Resets the stream to the most recent mark, or to the beginning of the string if it has never been marked.protected Class<?>
ObjectInputStream.resolveClass
(ObjectStreamClass desc) Load the local class equivalent of the specified stream class description.protected Object
ObjectInputStream.resolveObject
(Object obj) This method will allow trusted subclasses of ObjectInputStream to substitute one object for another during deserialization.protected Class<?>
ObjectInputStream.resolveProxyClass
(String[] interfaces) Returns a proxy class that implements the interfaces named in a proxy class descriptor; subclasses may implement this method to read custom data from the stream along with the descriptors for dynamic proxy classes, allowing them to use an alternate loading mechanism for the interfaces and the proxy class.void
RandomAccessFile.seek
(long pos) Sets the file-pointer offset, measured from the beginning of this file, at which the next read or write occurs.void
RandomAccessFile.setLength
(long newLength) Sets the length of this file.long
BufferedInputStream.skip
(long n) See the general contract of theskip
method ofInputStream
.long
CharArrayReader.skip
(long n) Skips characters.long
FileInputStream.skip
(long n) Skips over and discardsn
bytes of data from the input stream.long
FilterInputStream.skip
(long n) Skips over and discardsn
bytes of data from the input stream.long
FilterReader.skip
(long n) Skips characters.long
InputStream.skip
(long n) Skips over and discardsn
bytes of data from this input stream.long
LineNumberInputStream.skip
(long n) Deprecated.Skips over and discardsn
bytes of data from this input stream.long
ObjectInput.skip
(long n) Skips n bytes of input.long
PushbackInputStream.skip
(long n) Skips over and discardsn
bytes of data from this input stream.long
Reader.skip
(long n) Skips characters.long
StringReader.skip
(long n) Skips characters.int
DataInput.skipBytes
(int n) Makes an attempt to skip overn
bytes of data from the input stream, discarding the skipped bytes.final int
DataInputStream.skipBytes
(int n) See the general contract of theskipBytes
method ofDataInput
.int
ObjectInputStream.skipBytes
(int len) Skips bytes.int
RandomAccessFile.skipBytes
(int n) Attempts to skip overn
bytes of input discarding the skipped bytes.void
InputStream.skipNBytes
(long n) Skips over and discards exactlyn
bytes of data from this input stream.long
InputStream.transferTo
(OutputStream out) Reads all bytes from this input stream and writes the bytes to the given output stream in the order that they are read.long
Reader.transferTo
(Writer out) Reads all characters from this reader and writes the characters to the given writer in the order that they are read.void
PushbackInputStream.unread
(byte[] b) Pushes back an array of bytes by copying it to the front of the pushback buffer.void
PushbackInputStream.unread
(byte[] b, int off, int len) Pushes back a portion of an array of bytes by copying it to the front of the pushback buffer.void
PushbackInputStream.unread
(int b) Pushes back a byte by copying it to the front of the pushback buffer.void
PushbackReader.unread
(char[] cbuf) Pushes back an array of characters by copying it to the front of the pushback buffer.void
PushbackReader.unread
(char[] cbuf, int off, int len) Pushes back a portion of an array of characters by copying it to the front of the pushback buffer.void
PushbackReader.unread
(int c) Pushes back a single character by copying it to the front of the pushback buffer.void
ObjectOutputStream.useProtocolVersion
(int version) Specify stream protocol version to use when writing the stream.void
BufferedOutputStream.write
(byte[] b, int off, int len) Writeslen
bytes from the specified byte array starting at offsetoff
to this buffered output stream.void
BufferedOutputStream.write
(int b) Writes the specified byte to this buffered output stream.void
BufferedWriter.write
(char[] cbuf, int off, int len) Writes a portion of an array of characters.void
BufferedWriter.write
(int c) Writes a single character.void
Writes a portion of a String.void
DataOutput.write
(byte[] b) Writes to the output stream all the bytes in arrayb
.void
DataOutput.write
(byte[] b, int off, int len) Writeslen
bytes from arrayb
, in order, to the output stream.void
DataOutput.write
(int b) Writes to the output stream the eight low-order bits of the argumentb
.void
DataOutputStream.write
(byte[] b, int off, int len) Writeslen
bytes from the specified byte array starting at offsetoff
to the underlying output stream.void
DataOutputStream.write
(int b) Writes the specified byte (the low eight bits of the argumentb
) to the underlying output stream.void
FileOutputStream.write
(byte[] b) Writesb.length
bytes from the specified byte array to this file output stream.void
FileOutputStream.write
(byte[] b, int off, int len) Writeslen
bytes from the specified byte array starting at offsetoff
to this file output stream.void
FileOutputStream.write
(int b) Writes the specified byte to this file output stream.void
FilterOutputStream.write
(byte[] b) Writesb.length
bytes to this output stream.void
FilterOutputStream.write
(byte[] b, int off, int len) Writeslen
bytes from the specifiedbyte
array starting at offsetoff
to this output stream.void
FilterOutputStream.write
(int b) Writes the specifiedbyte
to this output stream.void
FilterWriter.write
(char[] cbuf, int off, int len) Writes a portion of an array of characters.void
FilterWriter.write
(int c) Writes a single character.void
Writes a portion of a string.void
ObjectOutput.write
(byte[] b) Writes an array of bytes.void
ObjectOutput.write
(byte[] b, int off, int len) Writes a sub array of bytes.void
ObjectOutput.write
(int b) Writes a byte.abstract void
ObjectOutputStream.PutField.write
(ObjectOutput out) Deprecated.This method does not write the values contained by thisPutField
object in a proper format, and may result in corruption of the serialization stream.void
ObjectOutputStream.write
(byte[] buf) Writes an array of bytes.void
ObjectOutputStream.write
(byte[] buf, int off, int len) Writes a sub array of bytes.void
ObjectOutputStream.write
(int val) Writes a byte.void
OutputStream.write
(byte[] b) Writesb.length
bytes from the specified byte array to this output stream.void
OutputStream.write
(byte[] b, int off, int len) Writeslen
bytes from the specified byte array starting at offsetoff
to this output stream.abstract void
OutputStream.write
(int b) Writes the specified byte to this output stream.void
OutputStreamWriter.write
(char[] cbuf, int off, int len) Writes a portion of an array of characters.void
OutputStreamWriter.write
(int c) Writes a single character.void
Writes a portion of a string.void
PipedOutputStream.write
(byte[] b, int off, int len) Writeslen
bytes from the specified byte array starting at offsetoff
to this piped output stream.void
PipedOutputStream.write
(int b) Writes the specifiedbyte
to the piped output stream.void
PipedWriter.write
(char[] cbuf, int off, int len) Writeslen
characters from the specified character array starting at offsetoff
to this piped output stream.void
PipedWriter.write
(int c) Writes the specifiedchar
to the piped output stream.void
PrintStream.write
(byte[] buf) Writes all bytes from the specified byte array to this stream.void
RandomAccessFile.write
(byte[] b) Writesb.length
bytes from the specified byte array to this file, starting at the current file pointer.void
RandomAccessFile.write
(byte[] b, int off, int len) Writeslen
bytes from the specified byte array starting at offsetoff
to this file.void
RandomAccessFile.write
(int b) Writes the specified byte to this file.void
Writer.write
(char[] cbuf) Writes an array of characters.abstract void
Writer.write
(char[] cbuf, int off, int len) Writes a portion of an array of characters.void
Writer.write
(int c) Writes a single character.void
Writes a string.void
Writes a portion of a string.void
DataOutput.writeBoolean
(boolean v) Writes aboolean
value to this output stream.final void
DataOutputStream.writeBoolean
(boolean v) Writes aboolean
to the underlying output stream as a 1-byte value.void
ObjectOutputStream.writeBoolean
(boolean val) Writes a boolean.final void
RandomAccessFile.writeBoolean
(boolean v) Writes aboolean
to the file as a one-byte value.void
DataOutput.writeByte
(int v) Writes to the output stream the eight low-order bits of the argumentv
.final void
DataOutputStream.writeByte
(int v) Writes out abyte
to the underlying output stream as a 1-byte value.void
ObjectOutputStream.writeByte
(int val) Writes an 8 bit byte.final void
RandomAccessFile.writeByte
(int v) Writes abyte
to the file as a one-byte value.void
DataOutput.writeBytes
(String s) Writes a string to the output stream.final void
DataOutputStream.writeBytes
(String s) Writes out the string to the underlying output stream as a sequence of bytes.void
ObjectOutputStream.writeBytes
(String str) Writes a String as a sequence of bytes.final void
RandomAccessFile.writeBytes
(String s) Writes the string to the file as a sequence of bytes.void
DataOutput.writeChar
(int v) Writes achar
value, which is comprised of two bytes, to the output stream.final void
DataOutputStream.writeChar
(int v) Writes achar
to the underlying output stream as a 2-byte value, high byte first.void
ObjectOutputStream.writeChar
(int val) Writes a 16 bit char.final void
RandomAccessFile.writeChar
(int v) Writes achar
to the file as a two-byte value, high byte first.void
DataOutput.writeChars
(String s) Writes every character in the strings
, to the output stream, in order, two bytes per character.final void
DataOutputStream.writeChars
(String s) Writes a string to the underlying output stream as a sequence of characters.void
ObjectOutputStream.writeChars
(String str) Writes a String as a sequence of chars.final void
RandomAccessFile.writeChars
(String s) Writes a string to the file as a sequence of characters.protected void
ObjectOutputStream.writeClassDescriptor
(ObjectStreamClass desc) Write the specified class descriptor to the ObjectOutputStream.void
DataOutput.writeDouble
(double v) Writes adouble
value, which is comprised of eight bytes, to the output stream.final void
DataOutputStream.writeDouble
(double v) Converts the double argument to along
using thedoubleToLongBits
method in classDouble
, and then writes thatlong
value to the underlying output stream as an 8-byte quantity, high byte first.void
ObjectOutputStream.writeDouble
(double val) Writes a 64 bit double.final void
RandomAccessFile.writeDouble
(double v) Converts the double argument to along
using thedoubleToLongBits
method in classDouble
, and then writes thatlong
value to the file as an eight-byte quantity, high byte first.void
Externalizable.writeExternal
(ObjectOutput out) The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.void
ObjectOutputStream.writeFields()
Write the buffered fields to the stream.void
DataOutput.writeFloat
(float v) Writes afloat
value, which is comprised of four bytes, to the output stream.final void
DataOutputStream.writeFloat
(float v) Converts the float argument to anint
using thefloatToIntBits
method in classFloat
, and then writes thatint
value to the underlying output stream as a 4-byte quantity, high byte first.void
ObjectOutputStream.writeFloat
(float val) Writes a 32 bit float.final void
RandomAccessFile.writeFloat
(float v) Converts the float argument to anint
using thefloatToIntBits
method in classFloat
, and then writes thatint
value to the file as a four-byte quantity, high byte first.void
DataOutput.writeInt
(int v) Writes anint
value, which is comprised of four bytes, to the output stream.final void
DataOutputStream.writeInt
(int v) Writes anint
to the underlying output stream as four bytes, high byte first.void
ObjectOutputStream.writeInt
(int val) Writes a 32 bit int.final void
RandomAccessFile.writeInt
(int v) Writes anint
to the file as four bytes, high byte first.void
DataOutput.writeLong
(long v) Writes along
value, which is comprised of eight bytes, to the output stream.final void
DataOutputStream.writeLong
(long v) Writes along
to the underlying output stream as eight bytes, high byte first.void
ObjectOutputStream.writeLong
(long val) Writes a 64 bit long.final void
RandomAccessFile.writeLong
(long v) Writes along
to the file as eight bytes, high byte first.void
ObjectOutput.writeObject
(Object obj) Write an object to the underlying storage or stream.final void
ObjectOutputStream.writeObject
(Object obj) Write the specified object to the ObjectOutputStream.protected void
ObjectOutputStream.writeObjectOverride
(Object obj) Method used by subclasses to override the default writeObject method.void
DataOutput.writeShort
(int v) Writes two bytes to the output stream to represent the value of the argument.final void
DataOutputStream.writeShort
(int v) Writes ashort
to the underlying output stream as two bytes, high byte first.void
ObjectOutputStream.writeShort
(int val) Writes a 16 bit short.final void
RandomAccessFile.writeShort
(int v) Writes ashort
to the file as two bytes, high byte first.protected void
ObjectOutputStream.writeStreamHeader()
The writeStreamHeader method is provided so subclasses can append or prepend their own header to the stream.void
ByteArrayOutputStream.writeTo
(OutputStream out) Writes the complete contents of thisByteArrayOutputStream
to the specified output stream argument, as if by calling the output stream's write method usingout.write(buf, 0, count)
.void
Writes the contents of the buffer to another character stream.void
ObjectOutputStream.writeUnshared
(Object obj) Writes an "unshared" object to the ObjectOutputStream.void
Writes two bytes of length information to the output stream, followed by the modified UTF-8 representation of every character in the strings
.final void
Writes a string to the underlying output stream using modified UTF-8 encoding in a machine-independent manner.void
Primitive data write of this String in modified UTF-8 format.final void
Writes a string to the file using modified UTF-8 encoding in a machine-independent manner.ModifierConstructorDescriptionUncheckedIOException
(IOException cause) Constructs an instance of this class.UncheckedIOException
(String message, IOException cause) Constructs an instance of this class.ModifierConstructorDescriptionFileReader
(File file, Charset charset) FileReader
(String fileName, Charset charset) Creates a newFileReader
, given the name of the file to read and the charset.FileWriter
(File file) FileWriter
(File file, boolean append) Constructs aFileWriter
given theFile
to write and a boolean indicating whether to append the data written, using the platform's default charset.FileWriter
(File file, Charset charset) FileWriter
(File file, Charset charset, boolean append) Constructs aFileWriter
given theFile
to write, charset and a boolean indicating whether to append the data written.FileWriter
(String fileName) Constructs aFileWriter
given a file name, using the platform's default charsetFileWriter
(String fileName, boolean append) Constructs aFileWriter
given a file name and a boolean indicating whether to append the data written, using the platform's default charset.FileWriter
(String fileName, Charset charset) Constructs aFileWriter
given a file name and charset.FileWriter
(String fileName, Charset charset, boolean append) Constructs aFileWriter
given a file name, charset and a boolean indicating whether to append the data written.protected
Provide a way for subclasses that are completely reimplementing ObjectInputStream to not have to allocate private data just used by this implementation of ObjectInputStream.Creates an ObjectInputStream that reads from the specified InputStream.protected
Provide a way for subclasses that are completely reimplementing ObjectOutputStream to not have to allocate private data just used by this implementation of ObjectOutputStream.Creates an ObjectOutputStream that writes to the specified OutputStream.Creates aPipedInputStream
so that it is connected to the piped output streamsrc
.PipedInputStream
(PipedOutputStream src, int pipeSize) Creates aPipedInputStream
so that it is connected to the piped output streamsrc
and uses the specified pipe size for the pipe's buffer.Creates a piped output stream connected to the specified piped input stream.PipedReader
(PipedWriter src) Creates aPipedReader
so that it is connected to the piped writersrc
.PipedReader
(PipedWriter src, int pipeSize) Creates aPipedReader
so that it is connected to the piped writersrc
and uses the specified pipe size for the pipe's buffer.PipedWriter
(PipedReader snk) Creates a piped writer connected to the specified piped reader.PrintStream
(File file, Charset charset) Creates a new print stream, without automatic line flushing, with the specified file and charset.PrintStream
(String fileName, Charset charset) Creates a new print stream, without automatic line flushing, with the specified file name and charset.PrintWriter
(File file, Charset charset) Creates a new PrintWriter, without automatic line flushing, with the specified file and charset.PrintWriter
(String fileName, Charset charset) Creates a new PrintWriter, without automatic line flushing, with the specified file name and charset. -
Uses of IOException in java.lang
Modifier and TypeMethodDescriptionAppendable.append
(char c) Appends the specified character to thisAppendable
.Appendable.append
(CharSequence csq) Appends the specified character sequence to thisAppendable
.Appendable.append
(CharSequence csq, int start, int end) Appends a subsequence of the specified character sequence to thisAppendable
.Executes the specified string command in a separate process.Executes the specified command and arguments in a separate process.Executes the specified command and arguments in a separate process with the specified environment.Executes the specified command and arguments in a separate process with the specified environment and working directory.Executes the specified string command in a separate process with the specified environment.Executes the specified string command in a separate process with the specified environment and working directory.protected URL
ClassLoader.findResource
(String moduleName, String name) Returns a URL to a resource in a module defined to this class loader.protected Enumeration<URL>
ClassLoader.findResources
(String name) Returns an enumeration ofURL
objects representing all the resources with the given name.Module.getResourceAsStream
(String name) Returns an input stream for reading a resource in this module.ClassLoader.getResources
(String name) Finds all the resources with the given name.static Enumeration<URL>
ClassLoader.getSystemResources
(String name) Finds all resources of the specified name from the search path used to load classes.static Channel
System.inheritedChannel()
Returns the channel inherited from the entity that created this Java virtual machine.int
Readable.read
(CharBuffer cb) Attempts to read characters into the specified character buffer.ProcessBuilder.start()
Starts a new process using the attributes of this process builder.ProcessBuilder.startPipeline
(List<ProcessBuilder> builders) Starts a Process for each ProcessBuilder, creating a pipeline of processes linked by their standard output and standard input streams. -
Uses of IOException in java.lang.management
Modifier and TypeMethodDescriptionstatic <T extends PlatformManagedObject>
TManagementFactory.getPlatformMXBean
(MBeanServerConnection connection, Class<T> mxbeanInterface) Returns the platform MXBean proxy formxbeanInterface
which is specified to have one single instance in a Java virtual machine and the proxy will forward the method calls through the givenMBeanServerConnection
.static <T extends PlatformManagedObject>
List<T>ManagementFactory.getPlatformMXBeans
(MBeanServerConnection connection, Class<T> mxbeanInterface) Returns the list of the platform MXBean proxies for forwarding the method calls of themxbeanInterface
through the givenMBeanServerConnection
.static <T> T
ManagementFactory.newPlatformMXBeanProxy
(MBeanServerConnection connection, String mxbeanName, Class<T> mxbeanInterface) Returns a proxy for a platform MXBean interface of a given MXBean name that forwards its method calls through the givenMBeanServerConnection
. -
Uses of IOException in java.lang.module
Modifier and TypeMethodDescriptionvoid
ModuleReader.close()
Closes the module reader.Finds a resource, returning a URI to the resource in the module.ModuleReader.list()
Lists the contents of the module, returning a stream of elements that are the names of all resources in the module.default Optional<InputStream>
Opens a resource, returning an input stream to read the resource in the module.abstract ModuleReader
ModuleReference.open()
Opens the module content for reading.static ModuleDescriptor
ModuleDescriptor.read
(InputStream in) Reads the binary form of a module declaration from an input stream as a module descriptor.static ModuleDescriptor
ModuleDescriptor.read
(InputStream in, Supplier<Set<String>> packageFinder) Reads the binary form of a module declaration from an input stream as a module descriptor.default Optional<ByteBuffer>
Reads a resource, returning a byte buffer with the contents of the resource. -
Uses of IOException in java.net
Modifier and TypeClassDescriptionclass
Signals that an error occurred while attempting to bind a socket to a local address and port.class
Signals that an error occurred while attempting to connect a socket to a remote address and port.class
Thrown to indicate that a HTTP request needs to be retried but cannot be retried automatically, due to streaming mode being enabled.class
Thrown to indicate that a malformed URL has occurred.class
Signals that an error occurred while attempting to connect a socket to a remote address and port.class
Signals that an ICMP Port Unreachable message has been received on a connected datagram.class
Thrown to indicate that there is an error in the underlying protocol, such as a TCP error.class
Thrown to indicate that there is an error creating or accessing a Socket.class
Signals that a timeout has occurred on a socket read or accept.class
Thrown to indicate that the IP address of a host could not be determined.class
Thrown to indicate that an unknown service exception has occurred.Modifier and TypeMethodDescriptionabstract void
ProxySelector.connectFailed
(URI uri, SocketAddress sa, IOException ioe) Called to indicate that a connection could not be established to a proxy/socks server.Modifier and TypeMethodDescriptionServerSocket.accept()
Listens for a connection to be made to this socket and accepts it.protected abstract void
SocketImpl.accept
(SocketImpl s) Accepts a connection.protected abstract int
SocketImpl.available()
Returns the number of bytes that can be read from this socket without blocking.void
ServerSocket.bind
(SocketAddress endpoint) Binds theServerSocket
to a specific address (IP address and port number).void
ServerSocket.bind
(SocketAddress endpoint, int backlog) Binds theServerSocket
to a specific address (IP address and port number).void
Socket.bind
(SocketAddress bindpoint) Binds the socket to a local address.protected abstract void
SocketImpl.bind
(InetAddress host, int port) Binds this socket to the specified local IP address and port number.void
ServerSocket.close()
Closes this socket.void
Socket.close()
Closes this socket.protected abstract void
SocketImpl.close()
Closes this socket.void
URLClassLoader.close()
Closes this URLClassLoader, so that it can no longer be used to load new classes or resources that are defined by this loader.void
Socket.connect
(SocketAddress endpoint) Connects this socket to the server.void
Socket.connect
(SocketAddress endpoint, int timeout) Connects this socket to the server with a specified timeout value.protected abstract void
Connects this socket to the specified port on the named host.protected abstract void
SocketImpl.connect
(InetAddress address, int port) Connects this socket to the specified port number on the specified host.protected abstract void
SocketImpl.connect
(SocketAddress address, int timeout) Connects this socket to the specified port number on the specified host.abstract void
URLConnection.connect()
Opens a communications link to the resource referenced by this URL, if such a connection has not already been established.protected abstract void
SocketImpl.create
(boolean stream) Creates either a stream or a datagram socket.URLClassLoader.findResources
(String name) Returns an Enumeration of URLs representing all of the resources on the URL search path having the specified name.Gets all the applicable cookies from a cookie cache for the specified uri in the request header.abstract CacheResponse
Retrieve the cached response based on the requesting uri, request method and request headers.JarURLConnection.getAttributes()
Return the Attributes object for this connection if the URL for it points to a JAR file entry, null otherwise.abstract OutputStream
CacheRequest.getBody()
Returns an OutputStream to which the response body can be written.abstract InputStream
CacheResponse.getBody()
Returns the response body as an InputStream.JarURLConnection.getCertificates()
Returns the Certificate objects for this connection if the URL for it points to a JAR file entry, null otherwise.abstract Object
ContentHandler.getContent
(URLConnection urlc) Given a URL connect stream positioned at the beginning of the representation of an object, this method reads that stream and creates an object from it.ContentHandler.getContent
(URLConnection urlc, Class[] classes) Given a URL connect stream positioned at the beginning of the representation of an object, this method reads that stream and creates an object that matches one of the types specified.final Object
URL.getContent()
Gets the contents of this URL.final Object
URL.getContent
(Class<?>[] classes) Gets the contents of this URL.URLConnection.getContent()
Retrieves the contents of this URL connection.URLConnection.getContent
(Class<?>[] classes) Retrieves the contents of this URL connection.CacheResponse.getHeaders()
Returns the response headers as a Map.Socket.getInputStream()
Returns an input stream for this socket.protected abstract InputStream
SocketImpl.getInputStream()
Returns an input stream for this socket.URLConnection.getInputStream()
Returns an input stream that reads from this open connection.JarURLConnection.getJarEntry()
Return the JAR entry object for this connection, if any.abstract JarFile
JarURLConnection.getJarFile()
Return the JAR file for this connection.JarURLConnection.getMainAttributes()
Returns the main Attributes for the JAR file for this connection.JarURLConnection.getManifest()
Returns the Manifest for this connection, or null if none.<T> T
DatagramSocket.getOption
(SocketOption<T> name) Returns the value of a socket option.protected <T> T
DatagramSocketImpl.getOption
(SocketOption<T> name) Called to get a socket option.<T> T
ServerSocket.getOption
(SocketOption<T> name) Returns the value of a socket option.<T> T
Socket.getOption
(SocketOption<T> name) Returns the value of a socket option.protected <T> T
SocketImpl.getOption
(SocketOption<T> name) Called to get a socket option.Socket.getOutputStream()
Returns an output stream for this socket.protected abstract OutputStream
SocketImpl.getOutputStream()
Returns an output stream for this socket.URLConnection.getOutputStream()
Returns an output stream that writes to this connection.HttpURLConnection.getPermission()
Returns aSocketPermission
object representing the permission necessary to connect to the destination host and port.URLConnection.getPermission()
Returns a permission object representing the permission necessary to make the connection represented by this object.int
HttpURLConnection.getResponseCode()
Gets the status code from an HTTP response message.HttpURLConnection.getResponseMessage()
Gets the HTTP response message, if any, returned along with the response code from a server.int
ServerSocket.getSoTimeout()
Retrieve setting forSO_TIMEOUT
. 0 returns implies that the option is disabled (i.e., timeout of infinity).protected abstract int
DatagramSocketImpl.getTimeToLive()
Retrieve the TTL (time-to-live) option.int
MulticastSocket.getTimeToLive()
Get the default time-to-live for multicast packets sent out on the socket.protected abstract byte
DatagramSocketImpl.getTTL()
Deprecated.use getTimeToLive instead.byte
MulticastSocket.getTTL()
Deprecated.use theMulticastSocket.getTimeToLive()
method instead, which returns an int instead of a byte.static String
URLConnection.guessContentTypeFromStream
(InputStream is) Tries to determine the type of an input stream based on the characters at the beginning of the input stream.protected final void
ServerSocket.implAccept
(Socket s) Subclasses of ServerSocket use this method to override accept() to return their own subclass of socket.boolean
InetAddress.isReachable
(int timeout) Test whether that address is reachable.boolean
InetAddress.isReachable
(NetworkInterface netif, int ttl, int timeout) Test whether that address is reachable.protected abstract void
DatagramSocketImpl.join
(InetAddress inetaddr) Join the multicast group.void
DatagramSocket.joinGroup
(SocketAddress mcastaddr, NetworkInterface netIf) Joins a multicast group.protected abstract void
DatagramSocketImpl.joinGroup
(SocketAddress mcastaddr, NetworkInterface netIf) Join the multicast group.void
MulticastSocket.joinGroup
(InetAddress mcastaddr) Deprecated.This method does not accept the network interface on which to join the multicast group.void
MulticastSocket.joinGroup
(SocketAddress mcastaddr, NetworkInterface netIf) Joins a multicast group.protected abstract void
DatagramSocketImpl.leave
(InetAddress inetaddr) Leave the multicast group.void
DatagramSocket.leaveGroup
(SocketAddress mcastaddr, NetworkInterface netIf) Leave a multicast group on a specified local interface.protected abstract void
DatagramSocketImpl.leaveGroup
(SocketAddress mcastaddr, NetworkInterface netIf) Leave the multicast group.void
MulticastSocket.leaveGroup
(InetAddress mcastaddr) Deprecated.This method does not accept the network interface on which to leave the multicast group.void
MulticastSocket.leaveGroup
(SocketAddress mcastaddr, NetworkInterface netIf) Leave a multicast group on a specified local interface.protected abstract void
SocketImpl.listen
(int backlog) Sets the maximum queue length for incoming connection indications (a request to connect) to thecount
argument.URL.openConnection()
Returns aURLConnection
instance that represents a connection to the remote object referred to by theURL
.URL.openConnection
(Proxy proxy) Same asURL.openConnection()
, except that the connection will be made through the specified proxy; Protocol handlers that do not support proxying will ignore the proxy parameter and make a normal connection.protected abstract URLConnection
URLStreamHandler.openConnection
(URL u) Opens a connection to the object referenced by theURL
argument.protected URLConnection
URLStreamHandler.openConnection
(URL u, Proxy p) Same as openConnection(URL), except that the connection will be made through the specified proxy; Protocol handlers that do not support proxying will ignore the proxy parameter and make a normal connection.final InputStream
URL.openStream()
Opens a connection to thisURL
and returns anInputStream
for reading from that connection.protected abstract int
DatagramSocketImpl.peek
(InetAddress i) Peek at the packet to see who it is from.protected abstract int
DatagramSocketImpl.peekData
(DatagramPacket p) Peek at the packet to see who it is from.abstract void
Sets all the applicable cookies, examples are response header fields that are named Set-Cookie2, present in the response headers into a cookie cache.void
abstract CacheRequest
ResponseCache.put
(URI uri, URLConnection conn) The protocol handler calls this method after a resource has been retrieved, and the ResponseCache must decide whether or not to store the resource in its cache.void
DatagramSocket.receive
(DatagramPacket p) Receives a datagram packet from this socket.protected abstract void
DatagramSocketImpl.receive
(DatagramPacket p) Receive the datagram packet.void
DatagramSocket.send
(DatagramPacket p) Sends a datagram packet from this socket.protected abstract void
DatagramSocketImpl.send
(DatagramPacket p) Sends a datagram packet.void
MulticastSocket.send
(DatagramPacket p, byte ttl) Deprecated.Use the following code or its equivalent instead:void
Socket.sendUrgentData
(int data) Send one byte of urgent data on the socket.protected abstract void
SocketImpl.sendUrgentData
(int data) Send one byte of urgent data on the socket.static void
DatagramSocket.setDatagramSocketImplFactory
(DatagramSocketImplFactory fac) Deprecated.UseDatagramChannel
, or subclassDatagramSocket
directly.<T> DatagramSocket
DatagramSocket.setOption
(SocketOption<T> name, T value) Sets the value of a socket option.protected <T> void
DatagramSocketImpl.setOption
(SocketOption<T> name, T value) Called to set a socket option.<T> ServerSocket
ServerSocket.setOption
(SocketOption<T> name, T value) Sets the value of a socket option.<T> Socket
Socket.setOption
(SocketOption<T> name, T value) Sets the value of a socket option.protected <T> void
SocketImpl.setOption
(SocketOption<T> name, T value) Called to set a socket option.static void
ServerSocket.setSocketFactory
(SocketImplFactory fac) Deprecated.Use aServerSocketFactory
and subclassServerSocket
directly.static void
Socket.setSocketImplFactory
(SocketImplFactory fac) Deprecated.Use aSocketFactory
and subclassSocket
directly.protected abstract void
DatagramSocketImpl.setTimeToLive
(int ttl) Set the TTL (time-to-live) option.void
MulticastSocket.setTimeToLive
(int ttl) Set the default time-to-live for multicast packets sent out on thisMulticastSocket
in order to control the scope of the multicasts.protected abstract void
DatagramSocketImpl.setTTL
(byte ttl) Deprecated.use setTimeToLive instead.void
MulticastSocket.setTTL
(byte ttl) Deprecated.use theMulticastSocket.setTimeToLive(int)
method instead, which uses int instead of byte as the type for ttl.void
Socket.shutdownInput()
Places the input stream for this socket at "end of stream".protected void
SocketImpl.shutdownInput()
Places the input stream for this socket at "end of stream".void
Socket.shutdownOutput()
Disables the output stream for this socket.protected void
SocketImpl.shutdownOutput()
Disables the output stream for this socket.ModifierConstructorDescriptionConstructs a multicast socket and binds it to any available port on the local host machine.MulticastSocket
(int port) Constructs a multicast socket and binds it to the specified port on the local host machine.MulticastSocket
(SocketAddress bindaddr) Creates a multicast socket, bound to the specified local socket address.Creates an unbound server socket.ServerSocket
(int port) Creates a server socket, bound to the specified port.ServerSocket
(int port, int backlog) Creates a server socket and binds it to the specified local port number, with the specified backlog.ServerSocket
(int port, int backlog, InetAddress bindAddr) Create a server with the specified port, listen backlog, and local IP address to bind to.Creates a stream socket and connects it to the specified port number on the named host.Deprecated.Use DatagramSocket instead for UDP transport.Socket
(String host, int port, InetAddress localAddr, int localPort) Creates a socket and connects it to the specified remote host on the specified remote port.Socket
(InetAddress address, int port) Creates a stream socket and connects it to the specified port number at the specified IP address.Socket
(InetAddress host, int port, boolean stream) Deprecated.Use DatagramSocket instead for UDP transport.Socket
(InetAddress address, int port, InetAddress localAddr, int localPort) Creates a socket and connects it to the specified remote address on the specified remote port. -
Uses of IOException in java.net.http
Modifier and TypeClassDescriptionclass
Thrown when a connection, over which anHttpRequest
is intended to be sent, is not successfully established within a specified time period.class
Thrown when a response is not received within a specified time period.final class
Thrown when the opening handshake has failed.Modifier and TypeMethodDescriptionabstract <T> HttpResponse<T>
HttpClient.send
(HttpRequest request, HttpResponse.BodyHandler<T> responseBodyHandler) Sends the given request using this client, blocking if necessary to get the response. -
Uses of IOException in java.nio
Modifier and TypeMethodDescriptionint
CharBuffer.read
(CharBuffer target) Attempts to read characters into the specified character buffer. -
Uses of IOException in java.nio.channels
Modifier and TypeClassDescriptionclass
Checked exception received by a thread when another thread closes the channel or the part of the channel upon which it is blocked in an I/O operation.class
Checked exception received by a thread when another thread interrupts it while it is blocked in an I/O operation upon a channel.class
Checked exception thrown when an attempt is made to invoke or complete an I/O operation upon channel that is closed, or at least closed to that operation.class
Checked exception received by a thread when another thread interrupts it while it is waiting to acquire a file lock.class
Checked exception received by a thread when a timeout elapses before an asynchronous operation completes.Modifier and TypeMethodDescriptionabstract SocketChannel
ServerSocketChannel.accept()
Accepts a connection made to this channel's socket.AsynchronousServerSocketChannel.bind
(SocketAddress local) Binds the channel's socket to a local address and configures the socket to listen for connections.abstract AsynchronousServerSocketChannel
AsynchronousServerSocketChannel.bind
(SocketAddress local, int backlog) Binds the channel's socket to a local address and configures the socket to listen for connections.abstract AsynchronousSocketChannel
AsynchronousSocketChannel.bind
(SocketAddress local) abstract DatagramChannel
DatagramChannel.bind
(SocketAddress local) NetworkChannel.bind
(SocketAddress local) Binds the channel's socket to a local address.final ServerSocketChannel
ServerSocketChannel.bind
(SocketAddress local) Binds the channel's socket to a local address and configures the socket to listen for connections.abstract ServerSocketChannel
ServerSocketChannel.bind
(SocketAddress local, int backlog) Binds the channel's socket to a local address and configures the socket to listen for connections.abstract SocketChannel
SocketChannel.bind
(SocketAddress local) Binds the channel's socket to a local address.abstract MembershipKey
MembershipKey.block
(InetAddress source) Block multicast datagrams from the given source address.void
AsynchronousChannel.close()
Closes this channel.void
Channel.close()
Closes this channel.final void
FileLock.close()
This method invokes theFileLock.release()
method.void
InterruptibleChannel.close()
Closes this channel.void
MulticastChannel.close()
Closes this channel.abstract void
Selector.close()
Closes this selector.abstract SelectableChannel
SelectableChannel.configureBlocking
(boolean block) Adjusts this channel's blocking mode.abstract DatagramChannel
DatagramChannel.connect
(SocketAddress remote) Connects this channel's socket.abstract boolean
SocketChannel.connect
(SocketAddress remote) Connects this channel's socket.abstract DatagramChannel
DatagramChannel.disconnect()
Disconnects this channel's socket.abstract boolean
SocketChannel.finishConnect()
Finishes the process of connecting a socket channel.abstract void
AsynchronousFileChannel.force
(boolean metaData) Forces any updates to this channel's file to be written to the storage device that contains it.abstract void
FileChannel.force
(boolean metaData) Forces any updates to this channel's file to be written to the storage device that contains it.abstract SocketAddress
AsynchronousServerSocketChannel.getLocalAddress()
Returns the socket address that this channel's socket is bound to.abstract SocketAddress
AsynchronousSocketChannel.getLocalAddress()
Returns the socket address that this channel's socket is bound to.abstract SocketAddress
DatagramChannel.getLocalAddress()
Returns the socket address that this channel's socket is bound to.NetworkChannel.getLocalAddress()
Returns the socket address that this channel's socket is bound to.abstract SocketAddress
ServerSocketChannel.getLocalAddress()
Returns the socket address that this channel's socket is bound to.abstract SocketAddress
SocketChannel.getLocalAddress()
Returns the socket address that this channel's socket is bound to.<T> T
NetworkChannel.getOption
(SocketOption<T> name) Returns the value of a socket option.abstract SocketAddress
AsynchronousSocketChannel.getRemoteAddress()
Returns the remote address to which this channel's socket is connected.abstract SocketAddress
DatagramChannel.getRemoteAddress()
Returns the remote address to which this channel's socket is connected.abstract SocketAddress
SocketChannel.getRemoteAddress()
Returns the remote address to which this channel's socket is connected.MulticastChannel.join
(InetAddress group, NetworkInterface interf) Joins a multicast group to begin receiving all datagrams sent to the group, returning a membership key.MulticastChannel.join
(InetAddress group, NetworkInterface interf, InetAddress source) Joins a multicast group to begin receiving datagrams sent to the group from a given source address.final FileLock
FileChannel.lock()
Acquires an exclusive lock on this channel's file.abstract FileLock
FileChannel.lock
(long position, long size, boolean shared) Acquires a lock on the given region of this channel's file.abstract MappedByteBuffer
FileChannel.map
(FileChannel.MapMode mode, long position, long size) Maps a region of this channel's file directly into memory.static AsynchronousFileChannel
AsynchronousFileChannel.open
(Path file, OpenOption... options) Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.static AsynchronousFileChannel
AsynchronousFileChannel.open
(Path file, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs) Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.AsynchronousServerSocketChannel.open()
Opens an asynchronous server-socket channel.AsynchronousServerSocketChannel.open
(AsynchronousChannelGroup group) Opens an asynchronous server-socket channel.static AsynchronousSocketChannel
AsynchronousSocketChannel.open()
Opens an asynchronous socket channel.static AsynchronousSocketChannel
AsynchronousSocketChannel.open
(AsynchronousChannelGroup group) Opens an asynchronous socket channel.static DatagramChannel
DatagramChannel.open()
Opens a datagram channel.static DatagramChannel
DatagramChannel.open
(ProtocolFamily family) Opens a datagram channel.static FileChannel
FileChannel.open
(Path path, OpenOption... options) Opens or creates a file, returning a file channel to access the file.static FileChannel
FileChannel.open
(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) Opens or creates a file, returning a file channel to access the file.static Pipe
Pipe.open()
Opens a pipe.static Selector
Selector.open()
Opens a selector.static ServerSocketChannel
ServerSocketChannel.open()
Opens a server-socket channel for an Internet protocol socket.static ServerSocketChannel
ServerSocketChannel.open
(ProtocolFamily family) Opens a server-socket channel.static SocketChannel
SocketChannel.open()
Opens a socket channel for an Internet protocol socket.static SocketChannel
SocketChannel.open
(ProtocolFamily family) Opens a socket channel.static SocketChannel
SocketChannel.open
(SocketAddress remote) Opens a socket channel and connects it to a remote address.abstract long
FileChannel.position()
Returns this channel's file position.abstract FileChannel
FileChannel.position
(long newPosition) Sets this channel's file position.long
SeekableByteChannel.position()
Returns this channel's position.SeekableByteChannel.position
(long newPosition) Sets this channel's position.abstract int
DatagramChannel.read
(ByteBuffer dst) Reads a datagram from this channel.final long
DatagramChannel.read
(ByteBuffer[] dsts) Reads a datagram from this channel.abstract long
DatagramChannel.read
(ByteBuffer[] dsts, int offset, int length) Reads a datagram from this channel.abstract int
FileChannel.read
(ByteBuffer dst) Reads a sequence of bytes from this channel into the given buffer.final long
FileChannel.read
(ByteBuffer[] dsts) Reads a sequence of bytes from this channel into the given buffers.abstract long
FileChannel.read
(ByteBuffer[] dsts, int offset, int length) Reads a sequence of bytes from this channel into a subsequence of the given buffers.abstract int
FileChannel.read
(ByteBuffer dst, long position) Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.int
ReadableByteChannel.read
(ByteBuffer dst) Reads a sequence of bytes from this channel into the given buffer.long
ScatteringByteChannel.read
(ByteBuffer[] dsts) Reads a sequence of bytes from this channel into the given buffers.long
ScatteringByteChannel.read
(ByteBuffer[] dsts, int offset, int length) Reads a sequence of bytes from this channel into a subsequence of the given buffers.int
SeekableByteChannel.read
(ByteBuffer dst) Reads a sequence of bytes from this channel into the given buffer.abstract int
SocketChannel.read
(ByteBuffer dst) final long
SocketChannel.read
(ByteBuffer[] dsts) abstract long
SocketChannel.read
(ByteBuffer[] dsts, int offset, int length) abstract SocketAddress
DatagramChannel.receive
(ByteBuffer dst) Receives a datagram via this channel.abstract void
FileLock.release()
Releases this lock.abstract int
Selector.select()
Selects a set of keys whose corresponding channels are ready for I/O operations.abstract int
Selector.select
(long timeout) Selects a set of keys whose corresponding channels are ready for I/O operations.int
Selector.select
(Consumer<SelectionKey> action) Selects and performs an action on the keys whose corresponding channels are ready for I/O operations.int
Selector.select
(Consumer<SelectionKey> action, long timeout) Selects and performs an action on the keys whose corresponding channels are ready for I/O operations.abstract int
Selector.selectNow()
Selects a set of keys whose corresponding channels are ready for I/O operations.int
Selector.selectNow
(Consumer<SelectionKey> action) Selects and performs an action on the keys whose corresponding channels are ready for I/O operations.abstract int
DatagramChannel.send
(ByteBuffer src, SocketAddress target) Sends a datagram via this channel.abstract <T> AsynchronousServerSocketChannel
AsynchronousServerSocketChannel.setOption
(SocketOption<T> name, T value) abstract <T> AsynchronousSocketChannel
AsynchronousSocketChannel.setOption
(SocketOption<T> name, T value) abstract <T> DatagramChannel
DatagramChannel.setOption
(SocketOption<T> name, T value) <T> NetworkChannel
NetworkChannel.setOption
(SocketOption<T> name, T value) Sets the value of a socket option.abstract <T> ServerSocketChannel
ServerSocketChannel.setOption
(SocketOption<T> name, T value) abstract <T> SocketChannel
SocketChannel.setOption
(SocketOption<T> name, T value) abstract AsynchronousSocketChannel
AsynchronousSocketChannel.shutdownInput()
Shutdown the connection for reading without closing the channel.abstract SocketChannel
SocketChannel.shutdownInput()
Shutdown the connection for reading without closing the channel.abstract void
AsynchronousChannelGroup.shutdownNow()
Shuts down the group and closes all open channels in the group.abstract AsynchronousSocketChannel
AsynchronousSocketChannel.shutdownOutput()
Shutdown the connection for writing without closing the channel.abstract SocketChannel
SocketChannel.shutdownOutput()
Shutdown the connection for writing without closing the channel.abstract long
AsynchronousFileChannel.size()
Returns the current size of this channel's file.abstract long
FileChannel.size()
Returns the current size of this channel's file.long
SeekableByteChannel.size()
Returns the current size of entity to which this channel is connected.abstract long
FileChannel.transferFrom
(ReadableByteChannel src, long position, long count) Transfers bytes into this channel's file from the given readable byte channel.abstract long
FileChannel.transferTo
(long position, long count, WritableByteChannel target) Transfers bytes from this channel's file to the given writable byte channel.abstract AsynchronousFileChannel
AsynchronousFileChannel.truncate
(long size) Truncates this channel's file to the given size.abstract FileChannel
FileChannel.truncate
(long size) Truncates this channel's file to the given size.SeekableByteChannel.truncate
(long size) Truncates the entity, to which this channel is connected, to the given size.final FileLock
AsynchronousFileChannel.tryLock()
Attempts to acquire an exclusive lock on this channel's file.abstract FileLock
AsynchronousFileChannel.tryLock
(long position, long size, boolean shared) Attempts to acquire a lock on the given region of this channel's file.final FileLock
FileChannel.tryLock()
Attempts to acquire an exclusive lock on this channel's file.abstract FileLock
FileChannel.tryLock
(long position, long size, boolean shared) Attempts to acquire a lock on the given region of this channel's file.static AsynchronousChannelGroup
AsynchronousChannelGroup.withCachedThreadPool
(ExecutorService executor, int initialSize) Creates an asynchronous channel group with a given thread pool that creates new threads as needed.static AsynchronousChannelGroup
AsynchronousChannelGroup.withFixedThreadPool
(int nThreads, ThreadFactory threadFactory) Creates an asynchronous channel group with a fixed thread pool.static AsynchronousChannelGroup
AsynchronousChannelGroup.withThreadPool
(ExecutorService executor) Creates an asynchronous channel group with a given thread pool.abstract int
DatagramChannel.write
(ByteBuffer src) Writes a datagram to this channel.final long
DatagramChannel.write
(ByteBuffer[] srcs) Writes a datagram to this channel.abstract long
DatagramChannel.write
(ByteBuffer[] srcs, int offset, int length) Writes a datagram to this channel.abstract int
FileChannel.write
(ByteBuffer src) Writes a sequence of bytes to this channel from the given buffer.final long
FileChannel.write
(ByteBuffer[] srcs) Writes a sequence of bytes to this channel from the given buffers.abstract long
FileChannel.write
(ByteBuffer[] srcs, int offset, int length) Writes a sequence of bytes to this channel from a subsequence of the given buffers.abstract int
FileChannel.write
(ByteBuffer src, long position) Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.long
GatheringByteChannel.write
(ByteBuffer[] srcs) Writes a sequence of bytes to this channel from the given buffers.long
GatheringByteChannel.write
(ByteBuffer[] srcs, int offset, int length) Writes a sequence of bytes to this channel from a subsequence of the given buffers.int
SeekableByteChannel.write
(ByteBuffer src) Writes a sequence of bytes to this channel from the given buffer.abstract int
SocketChannel.write
(ByteBuffer src) final long
SocketChannel.write
(ByteBuffer[] srcs) abstract long
SocketChannel.write
(ByteBuffer[] srcs, int offset, int length) int
WritableByteChannel.write
(ByteBuffer src) Writes a sequence of bytes to this channel from the given buffer. -
Uses of IOException in java.nio.channels.spi
Modifier and TypeMethodDescriptionfinal void
AbstractInterruptibleChannel.close()
Closes this channel.final void
AbstractSelector.close()
Closes this selector.final SelectableChannel
AbstractSelectableChannel.configureBlocking
(boolean block) Adjusts this channel's blocking mode.protected abstract void
AbstractInterruptibleChannel.implCloseChannel()
Closes this channel.protected final void
AbstractSelectableChannel.implCloseChannel()
Closes this channel.protected abstract void
AbstractSelectableChannel.implCloseSelectableChannel()
Closes this selectable channel.protected abstract void
AbstractSelector.implCloseSelector()
Closes this selector.protected abstract void
AbstractSelectableChannel.implConfigureBlocking
(boolean block) Adjusts this channel's blocking mode.SelectorProvider.inheritedChannel()
Returns the channel inherited from the entity that created this Java virtual machine.abstract AsynchronousChannelGroup
AsynchronousChannelProvider.openAsynchronousChannelGroup
(int nThreads, ThreadFactory threadFactory) Constructs a new asynchronous channel group with a fixed thread pool.abstract AsynchronousChannelGroup
AsynchronousChannelProvider.openAsynchronousChannelGroup
(ExecutorService executor, int initialSize) Constructs a new asynchronous channel group with the given thread pool.abstract AsynchronousServerSocketChannel
AsynchronousChannelProvider.openAsynchronousServerSocketChannel
(AsynchronousChannelGroup group) Opens an asynchronous server-socket channel.abstract AsynchronousSocketChannel
AsynchronousChannelProvider.openAsynchronousSocketChannel
(AsynchronousChannelGroup group) Opens an asynchronous socket channel.abstract DatagramChannel
SelectorProvider.openDatagramChannel()
Opens a datagram channel.abstract DatagramChannel
SelectorProvider.openDatagramChannel
(ProtocolFamily family) Opens a datagram channel.abstract Pipe
SelectorProvider.openPipe()
Opens a pipe.abstract AbstractSelector
SelectorProvider.openSelector()
Opens a selector.abstract ServerSocketChannel
SelectorProvider.openServerSocketChannel()
Opens a server-socket channel.SelectorProvider.openServerSocketChannel
(ProtocolFamily family) Opens a server-socket channel.abstract SocketChannel
SelectorProvider.openSocketChannel()
Opens a socket channel.SelectorProvider.openSocketChannel
(ProtocolFamily family) Opens a socket channel. -
Uses of IOException in java.nio.charset
Modifier and TypeClassDescriptionclass
Checked exception thrown when a character encoding or decoding error occurs.class
Checked exception thrown when an input byte sequence is not legal for given charset, or an input character sequence is not a legal sixteen-bit Unicode sequence.class
Checked exception thrown when an input character (or byte) sequence is valid but cannot be mapped to an output byte (or character) sequence. -
Uses of IOException in java.nio.file
Modifier and TypeClassDescriptionclass
Checked exception thrown when a file system operation is denied, typically due to a file permission or other access check.class
Checked exception thrown when a file cannot be moved as an atomic file system operation.class
Checked exception thrown when a file system operation fails because a directory is not empty.class
Checked exception thrown when an attempt is made to create a file or directory and a file of that name already exists.class
Thrown when a file system operation fails on one or two files.class
Checked exception thrown when a file system loop, or cycle, is encountered.class
Checked exception thrown when an attempt is made to access a file that does not exist.class
Checked exception thrown when a file system operation, intended for a directory, fails because the file is not a directory.class
Checked exception thrown when a file system operation fails because a file is not a symbolic link.Modifier and TypeMethodDescriptionDirectoryIteratorException.getCause()
Returns the cause of this exception.Modifier and TypeMethodDescriptionFileVisitor.postVisitDirectory
(T dir, IOException exc) Invoked for a directory after entries in the directory, and all of their descendants, have been visited.SimpleFileVisitor.postVisitDirectory
(T dir, IOException exc) Invoked for a directory after entries in the directory, and all of their descendants, have been visited.FileVisitor.visitFileFailed
(T file, IOException exc) Invoked for a file that could not be visited.SimpleFileVisitor.visitFileFailed
(T file, IOException exc) Invoked for a file that could not be visited.Modifier and TypeMethodDescriptionboolean
Decides if the given directory entry should be accepted or filtered.abstract void
FileSystem.close()
Closes this file system.void
WatchService.close()
Closes this watch service.static long
Files.copy
(InputStream in, Path target, CopyOption... options) Copies all bytes from an input stream to a file.static long
Files.copy
(Path source, OutputStream out) Copies all bytes from a file to an output stream.static Path
Files.copy
(Path source, Path target, CopyOption... options) Copy a file to a target file.static Path
Files.createDirectories
(Path dir, FileAttribute<?>... attrs) Creates a directory by creating all nonexistent parent directories first.static Path
Files.createDirectory
(Path dir, FileAttribute<?>... attrs) Creates a new directory.static Path
Files.createFile
(Path path, FileAttribute<?>... attrs) Creates a new and empty file, failing if the file already exists.static Path
Files.createLink
(Path link, Path existing) Creates a new link (directory entry) for an existing file (optional operation).static Path
Files.createSymbolicLink
(Path link, Path target, FileAttribute<?>... attrs) Creates a symbolic link to a target (optional operation).static Path
Files.createTempDirectory
(String prefix, FileAttribute<?>... attrs) Creates a new directory in the default temporary-file directory, using the given prefix to generate its name.static Path
Files.createTempDirectory
(Path dir, String prefix, FileAttribute<?>... attrs) Creates a new directory in the specified directory, using the given prefix to generate its name.static Path
Files.createTempFile
(String prefix, String suffix, FileAttribute<?>... attrs) Creates an empty file in the default temporary-file directory, using the given prefix and suffix to generate its name.static Path
Files.createTempFile
(Path dir, String prefix, String suffix, FileAttribute<?>... attrs) Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name.static void
Deletes a file.void
SecureDirectoryStream.deleteDirectory
(T path) Deletes a directory.void
SecureDirectoryStream.deleteFile
(T path) Deletes a file.static boolean
Files.deleteIfExists
(Path path) Deletes a file if it exists.Files.find
(Path start, int maxDepth, BiPredicate<Path, BasicFileAttributes> matcher, FileVisitOption... options) Return aStream
that is lazily populated withPath
by searching for files in a file tree rooted at a given starting file.static Object
Files.getAttribute
(Path path, String attribute, LinkOption... options) Reads the value of a file attribute.abstract Object
FileStore.getAttribute
(String attribute) Reads the value of a file store attribute.long
FileStore.getBlockSize()
Returns the number of bytes per block in this file store.static FileStore
Files.getFileStore
(Path path) Returns theFileStore
representing the file store where a file is located.static FileTime
Files.getLastModifiedTime
(Path path, LinkOption... options) Returns a file's last modified time.static UserPrincipal
Files.getOwner
(Path path, LinkOption... options) Returns the owner of a file.static Set<PosixFilePermission>
Files.getPosixFilePermissions
(Path path, LinkOption... options) Returns a file's POSIX file permissions.abstract long
FileStore.getTotalSpace()
Returns the size, in bytes, of the file store.abstract long
FileStore.getUnallocatedSpace()
Returns the number of unallocated bytes in the file store.abstract long
FileStore.getUsableSpace()
Returns the number of bytes available to this Java virtual machine on the file store.static boolean
Tells whether or not a file is considered hidden.static boolean
Files.isSameFile
(Path path, Path path2) Tests if two paths locate the same file.Read all lines from a file as aStream
.Read all lines from a file as aStream
.Return a lazily populatedStream
, the elements of which are the entries in the directory.static long
Finds and returns the position of the first mismatched byte in the content of two files, or-1L
if there is no mismatch.static Path
Files.move
(Path source, Path target, CopyOption... options) Move or rename a file to a target file.void
SecureDirectoryStream.move
(T srcpath, SecureDirectoryStream<T> targetdir, T targetpath) Move a file from this directory to another directory.static BufferedReader
Files.newBufferedReader
(Path path) Opens a file for reading, returning aBufferedReader
to read text from the file in an efficient manner.static BufferedReader
Files.newBufferedReader
(Path path, Charset cs) Opens a file for reading, returning aBufferedReader
that may be used to read text from the file in an efficient manner.static BufferedWriter
Files.newBufferedWriter
(Path path, Charset cs, OpenOption... options) Opens or creates a file for writing, returning aBufferedWriter
that may be used to write text to the file in an efficient manner.static BufferedWriter
Files.newBufferedWriter
(Path path, OpenOption... options) Opens or creates a file for writing, returning aBufferedWriter
to write text to the file in an efficient manner.static SeekableByteChannel
Files.newByteChannel
(Path path, OpenOption... options) Opens or creates a file, returning a seekable byte channel to access the file.static SeekableByteChannel
Files.newByteChannel
(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) Opens or creates a file, returning a seekable byte channel to access the file.SecureDirectoryStream.newByteChannel
(T path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) Opens or creates a file in this directory, returning a seekable byte channel to access the file.static DirectoryStream<Path>
Files.newDirectoryStream
(Path dir) Opens a directory, returning aDirectoryStream
to iterate over all entries in the directory.static DirectoryStream<Path>
Files.newDirectoryStream
(Path dir, String glob) Opens a directory, returning aDirectoryStream
to iterate over the entries in the directory.static DirectoryStream<Path>
Files.newDirectoryStream
(Path dir, DirectoryStream.Filter<? super Path> filter) Opens a directory, returning aDirectoryStream
to iterate over the entries in the directory.SecureDirectoryStream.newDirectoryStream
(T path, LinkOption... options) Opens the directory identified by the given path, returning aSecureDirectoryStream
to iterate over the entries in the directory.static FileSystem
FileSystems.newFileSystem
(URI uri, Map<String, ?> env) Constructs a new file system that is identified by aURI
static FileSystem
FileSystems.newFileSystem
(URI uri, Map<String, ?> env, ClassLoader loader) Constructs a new file system that is identified by aURI
static FileSystem
FileSystems.newFileSystem
(Path path) Constructs a newFileSystem
to access the contents of a file as a file system.static FileSystem
FileSystems.newFileSystem
(Path path, ClassLoader loader) Constructs a newFileSystem
to access the contents of a file as a file system.static FileSystem
FileSystems.newFileSystem
(Path path, Map<String, ?> env) Constructs a newFileSystem
to access the contents of a file as a file system.static FileSystem
FileSystems.newFileSystem
(Path path, Map<String, ?> env, ClassLoader loader) Constructs a newFileSystem
to access the contents of a file as a file system.static InputStream
Files.newInputStream
(Path path, OpenOption... options) Opens a file, returning an input stream to read from the file.static OutputStream
Files.newOutputStream
(Path path, OpenOption... options) Opens or creates a file, returning an output stream that may be used to write bytes to the file.abstract WatchService
FileSystem.newWatchService()
Constructs a newWatchService
(optional operation).FileVisitor.postVisitDirectory
(T dir, IOException exc) Invoked for a directory after entries in the directory, and all of their descendants, have been visited.SimpleFileVisitor.postVisitDirectory
(T dir, IOException exc) Invoked for a directory after entries in the directory, and all of their descendants, have been visited.FileVisitor.preVisitDirectory
(T dir, BasicFileAttributes attrs) Invoked for a directory before entries in the directory are visited.SimpleFileVisitor.preVisitDirectory
(T dir, BasicFileAttributes attrs) Invoked for a directory before entries in the directory are visited.static String
Files.probeContentType
(Path path) Probes the content type of a file.static byte[]
Files.readAllBytes
(Path path) Reads all the bytes from a file.Files.readAllLines
(Path path) Read all lines from a file.Files.readAllLines
(Path path, Charset cs) Read all lines from a file.static <A extends BasicFileAttributes>
AFiles.readAttributes
(Path path, Class<A> type, LinkOption... options) Reads a file's attributes as a bulk operation.Files.readAttributes
(Path path, String attributes, LinkOption... options) Reads a set of file attributes as a bulk operation.static String
Files.readString
(Path path) static String
Files.readString
(Path path, Charset cs) Reads all characters from a file into a string, decoding from bytes to characters using the specified charset.static Path
Files.readSymbolicLink
(Path link) Reads the target of a symbolic link (optional operation).default WatchKey
Path.register
(WatchService watcher, WatchEvent.Kind<?>... events) Registers the file located by this path with a watch service.Path.register
(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) Registers the file located by this path with a watch service.Watchable.register
(WatchService watcher, WatchEvent.Kind<?>... events) Registers an object with a watch service.Watchable.register
(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) Registers an object with a watch service.static Path
Files.setAttribute
(Path path, String attribute, Object value, LinkOption... options) Sets the value of a file attribute.static Path
Files.setLastModifiedTime
(Path path, FileTime time) Updates a file's last modified time attribute.static Path
Files.setOwner
(Path path, UserPrincipal owner) Updates the file owner.static Path
Files.setPosixFilePermissions
(Path path, Set<PosixFilePermission> perms) Sets a file's POSIX permissions.static long
Returns the size of a file (in bytes).Path.toRealPath
(LinkOption... options) Returns the real path of an existing file.FileVisitor.visitFile
(T file, BasicFileAttributes attrs) Invoked for a file in a directory.SimpleFileVisitor.visitFile
(T file, BasicFileAttributes attrs) Invoked for a file in a directory.FileVisitor.visitFileFailed
(T file, IOException exc) Invoked for a file that could not be visited.SimpleFileVisitor.visitFileFailed
(T file, IOException exc) Invoked for a file that could not be visited.Files.walk
(Path start, int maxDepth, FileVisitOption... options) Return aStream
that is lazily populated withPath
by walking the file tree rooted at a given starting file.Files.walk
(Path start, FileVisitOption... options) Return aStream
that is lazily populated withPath
by walking the file tree rooted at a given starting file.static Path
Files.walkFileTree
(Path start, FileVisitor<? super Path> visitor) Walks a file tree.static Path
Files.walkFileTree
(Path start, Set<FileVisitOption> options, int maxDepth, FileVisitor<? super Path> visitor) Walks a file tree.static Path
Files.write
(Path path, byte[] bytes, OpenOption... options) Writes bytes to a file.static Path
Files.write
(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options) Write lines of text to a file.static Path
Files.write
(Path path, Iterable<? extends CharSequence> lines, OpenOption... options) Write lines of text to a file.static Path
Files.writeString
(Path path, CharSequence csq, Charset cs, OpenOption... options) Write a CharSequence to a file.static Path
Files.writeString
(Path path, CharSequence csq, OpenOption... options) Write a CharSequence to a file.ModifierConstructorDescriptionConstructs an instance of this class. -
Uses of IOException in java.nio.file.attribute
Modifier and TypeClassDescriptionclass
Checked exception thrown when a lookup ofUserPrincipal
fails because the principal does not exist.Modifier and TypeMethodDescriptionvoid
Deletes a user-defined attribute.AclFileAttributeView.getAcl()
Reads the access control list.FileOwnerAttributeView.getOwner()
Read the file owner.UserDefinedFileAttributeView.list()
Returns a list containing the names of the user-defined attributes.abstract GroupPrincipal
UserPrincipalLookupService.lookupPrincipalByGroupName
(String group) Lookup a group principal by group name.abstract UserPrincipal
UserPrincipalLookupService.lookupPrincipalByName
(String name) Lookup a user principal by name.int
UserDefinedFileAttributeView.read
(String name, ByteBuffer dst) Read the value of a user-defined attribute into a buffer.BasicFileAttributeView.readAttributes()
Reads the basic file attributes as a bulk operation.DosFileAttributeView.readAttributes()
PosixFileAttributeView.readAttributes()
void
Updates (replace) the access control list.void
DosFileAttributeView.setArchive
(boolean value) Updates the value of the archive attribute.void
PosixFileAttributeView.setGroup
(GroupPrincipal group) Updates the file group-owner.void
DosFileAttributeView.setHidden
(boolean value) Updates the value of the hidden attribute.void
FileOwnerAttributeView.setOwner
(UserPrincipal owner) Updates the file owner.void
PosixFileAttributeView.setPermissions
(Set<PosixFilePermission> perms) Updates the file permissions.void
DosFileAttributeView.setReadOnly
(boolean value) Updates the value of the read-only attribute.void
DosFileAttributeView.setSystem
(boolean value) Updates the value of the system attribute.void
BasicFileAttributeView.setTimes
(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) Updates any or all of the file's last modified time, last access time, and create time attributes.int
Returns the size of the value of a user-defined attribute.int
UserDefinedFileAttributeView.write
(String name, ByteBuffer src) Writes the value of a user-defined attribute from a buffer. -
Uses of IOException in java.nio.file.spi
Modifier and TypeMethodDescriptionabstract void
FileSystemProvider.checkAccess
(Path path, AccessMode... modes) Checks the existence, and optionally the accessibility, of a file.abstract void
FileSystemProvider.copy
(Path source, Path target, CopyOption... options) Copy a file to a target file.abstract void
FileSystemProvider.createDirectory
(Path dir, FileAttribute<?>... attrs) Creates a new directory.void
FileSystemProvider.createLink
(Path link, Path existing) Creates a new link (directory entry) for an existing file.void
FileSystemProvider.createSymbolicLink
(Path link, Path target, FileAttribute<?>... attrs) Creates a symbolic link to a target.abstract void
Deletes a file.boolean
FileSystemProvider.deleteIfExists
(Path path) Deletes a file if it exists.abstract FileStore
FileSystemProvider.getFileStore
(Path path) Returns theFileStore
representing the file store where a file is located.abstract boolean
Tells whether or not a file is considered hidden.abstract boolean
FileSystemProvider.isSameFile
(Path path, Path path2) Tests if two paths locate the same file.abstract void
FileSystemProvider.move
(Path source, Path target, CopyOption... options) Move or rename a file to a target file.FileSystemProvider.newAsynchronousFileChannel
(Path path, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs) Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.abstract SeekableByteChannel
FileSystemProvider.newByteChannel
(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) Opens or creates a file, returning a seekable byte channel to access the file.abstract DirectoryStream<Path>
FileSystemProvider.newDirectoryStream
(Path dir, DirectoryStream.Filter<? super Path> filter) Opens a directory, returning aDirectoryStream
to iterate over the entries in the directory.FileSystemProvider.newFileChannel
(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) Opens or creates a file for reading and/or writing, returning a file channel to access the file.abstract FileSystem
FileSystemProvider.newFileSystem
(URI uri, Map<String, ?> env) Constructs a newFileSystem
object identified by a URI.FileSystemProvider.newFileSystem
(Path path, Map<String, ?> env) Constructs a newFileSystem
to access the contents of a file as a file system.FileSystemProvider.newInputStream
(Path path, OpenOption... options) Opens a file, returning an input stream to read from the file.FileSystemProvider.newOutputStream
(Path path, OpenOption... options) Opens or creates a file, returning an output stream that may be used to write bytes to the file.abstract String
FileTypeDetector.probeContentType
(Path path) Probes the given file to guess its content type.abstract <A extends BasicFileAttributes>
AFileSystemProvider.readAttributes
(Path path, Class<A> type, LinkOption... options) Reads a file's attributes as a bulk operation.FileSystemProvider.readAttributes
(Path path, String attributes, LinkOption... options) Reads a set of file attributes as a bulk operation.FileSystemProvider.readSymbolicLink
(Path link) Reads the target of a symbolic link.abstract void
FileSystemProvider.setAttribute
(Path path, String attribute, Object value, LinkOption... options) Sets the value of a file attribute. -
Uses of IOException in java.rmi
Modifier and TypeClassDescriptionclass
AnAccessException
is thrown by certain methods of thejava.rmi.Naming
class (specificallybind
,rebind
, andunbind
) to indicate that the caller does not have permission to perform the action requested by the method call.class
AConnectException
is thrown if a connection is refused to the remote host for a remote method call.class
AConnectIOException
is thrown if anIOException
occurs while making a connection to the remote host for a remote method call.class
AMarshalException
is thrown if ajava.io.IOException
occurs while marshalling the remote call header, arguments or return value for a remote method call.class
ANoSuchObjectException
is thrown if an attempt is made to invoke a method on an object that no longer exists in the remote virtual machine.class
ARemoteException
is the common superclass for a number of communication-related exceptions that may occur during the execution of a remote method call.class
AServerError
is thrown as a result of a remote method invocation when anError
is thrown while processing the invocation on the server, either while unmarshalling the arguments, executing the remote method itself, or marshalling the return value.class
AServerException
is thrown as a result of a remote method invocation when aRemoteException
is thrown while processing the invocation on the server, either while unmarshalling the arguments or executing the remote method itself.class
Deprecated.no replacementclass
AStubNotFoundException
is thrown if a valid stub class could not be found for a remote object when it is exported.class
AnUnexpectedException
is thrown if the client of a remote method call receives, as a result of the call, a checked exception that is not among the checked exception types declared in thethrows
clause of the method in the remote interface.class
AnUnknownHostException
is thrown if ajava.net.UnknownHostException
occurs while creating a connection to the remote host for a remote method call.class
AnUnmarshalException
can be thrown while unmarshalling the parameters or results of a remote method call if any of the following conditions occur: if an exception occurs while unmarshalling the call header if the protocol for the return value is invalid if ajava.io.IOException
occurs unmarshalling parameters (on the server side) or the return value (on the client side).Modifier and TypeMethodDescriptionMarshalledObject.get()
Returns a new copy of the contained marshalledobject.ModifierConstructorDescriptionMarshalledObject
(T obj) Creates a newMarshalledObject
that contains the serialized representation of the current state of the supplied object. -
Uses of IOException in java.rmi.server
Modifier and TypeClassDescriptionclass
AnExportException
is aRemoteException
thrown if an attempt to export a remote object fails.class
Deprecated.no replacement.class
Deprecated.no replacement.class
Deprecated.This class is obsolete.Modifier and TypeMethodDescriptionRMIServerSocketFactory.createServerSocket
(int port) Create a server socket on the specified port (port 0 indicates an anonymous port).abstract ServerSocket
RMISocketFactory.createServerSocket
(int port) Create a server socket on the specified port (port 0 indicates an anonymous port).RMIClientSocketFactory.createSocket
(String host, int port) Create a client socket connected to the specified host and port.abstract Socket
RMISocketFactory.createSocket
(String host, int port) Creates a client socket connected to the specified host and port.void
RemoteCall.done()
Deprecated.no replacementRemoteCall.getInputStream()
Deprecated.no replacementRemoteCall.getOutputStream()
Deprecated.no replacementRemoteCall.getResultStream
(boolean success) Deprecated.no replacementstatic ObjID
ObjID.read
(ObjectInput in) Constructs and returns a newObjID
instance by unmarshalling a binary representation from anObjectInput
instance.static UID
Constructs and returns a newUID
instance by unmarshalling a binary representation from anDataInput
instance.void
RemoteCall.releaseInputStream()
Deprecated.no replacementvoid
RemoteCall.releaseOutputStream()
Deprecated.no replacementstatic void
RMISocketFactory.setSocketFactory
(RMISocketFactory fac) Set the global socket factory from which RMI gets sockets (if the remote object is not associated with a specific client and/or server socket factory).void
ObjID.write
(ObjectOutput out) Marshals a binary representation of thisObjID
to anObjectOutput
instance.void
UID.write
(DataOutput out) Marshals a binary representation of thisUID
to aDataOutput
instance. -
Uses of IOException in java.security
Modifier and TypeMethodDescriptionvoid
Certificate.decode
(InputStream stream) Deprecated, for removal: This API element is subject to removal in a future version.Decodes a certificate from an input stream.void
Certificate.encode
(OutputStream stream) Deprecated, for removal: This API element is subject to removal in a future version.Encodes the certificate to an output stream in a format that can be decoded by thedecode
method.protected abstract byte[]
AlgorithmParametersSpi.engineGetEncoded()
Returns the parameters in their primary encoding format.protected abstract byte[]
AlgorithmParametersSpi.engineGetEncoded
(String format) Returns the parameters encoded in the specified format.protected abstract void
AlgorithmParametersSpi.engineInit
(byte[] params) Imports the specified parameters and decodes them according to the primary decoding format for parameters.protected abstract void
AlgorithmParametersSpi.engineInit
(byte[] params, String format) Imports the parameters fromparams
and decodes them according to the specified decoding format.abstract void
KeyStoreSpi.engineLoad
(InputStream stream, char[] password) Loads the keystore from the given input stream.void
KeyStoreSpi.engineLoad
(KeyStore.LoadStoreParameter param) Loads the keystore using the givenKeyStore.LoadStoreParameter
.boolean
KeyStoreSpi.engineProbe
(InputStream stream) Probes the specified input stream to determine whether it contains a keystore that is supported by this implementation, or not.abstract void
KeyStoreSpi.engineStore
(OutputStream stream, char[] password) Stores this keystore to the given output stream, and protects its integrity with the given password.void
KeyStoreSpi.engineStore
(KeyStore.LoadStoreParameter param) Stores this keystore using the givenKeyStore.LoadStoreParameter
.final byte[]
AlgorithmParameters.getEncoded()
Returns the parameters in their primary encoding format.final byte[]
AlgorithmParameters.getEncoded
(String format) Returns the parameters encoded in the specified scheme.static final KeyStore
KeyStore.getInstance
(File file, char[] password) Returns a loaded keystore object of the appropriate keystore type.static final KeyStore
KeyStore.getInstance
(File file, KeyStore.LoadStoreParameter param) Returns a loaded keystore object of the appropriate keystore type.SignedObject.getObject()
Retrieves the encapsulated object.final void
AlgorithmParameters.init
(byte[] params) Imports the specified parameters and decodes them according to the primary decoding format for parameters.final void
Imports the parameters fromparams
and decodes them according to the specified decoding scheme.final void
KeyStore.load
(InputStream stream, char[] password) Loads this KeyStore from the given input stream.final void
KeyStore.load
(KeyStore.LoadStoreParameter param) Loads this keystore using the givenLoadStoreParameter
.void
Provider.load
(InputStream inStream) Reads a property list (key and element pairs) from the input stream.int
DigestInputStream.read()
Reads a byte, and updates the message digest (if the digest function is on).int
DigestInputStream.read
(byte[] b, int off, int len) Reads into a byte array, and updates the message digest (if the digest function is on).final void
KeyStore.store
(OutputStream stream, char[] password) Stores this keystore to the given output stream, and protects its integrity with the given password.final void
KeyStore.store
(KeyStore.LoadStoreParameter param) Stores this keystore using the givenLoadStoreParameter
.void
DigestOutputStream.write
(byte[] b, int off, int len) Updates the message digest (if the digest function is on) using the specified subarray, and in any case writes the subarray to the output stream.void
DigestOutputStream.write
(int b) Updates the message digest (if the digest function is on) using the specified byte, and in any case writes the byte to the output stream.ModifierConstructorDescriptionSignedObject
(Serializable object, PrivateKey signingKey, Signature signingEngine) Constructs a SignedObject from any Serializable object. -
Uses of IOException in java.security.cert
Modifier and TypeMethodDescriptionvoid
X509CRLSelector.addIssuerName
(byte[] name) Adds a name to the issuerNames criterion.void
X509CRLSelector.addIssuerName
(String name) Deprecated.void
X509CertSelector.addPathToName
(int type, byte[] name) Adds a name to the pathToNames criterion.void
X509CertSelector.addPathToName
(int type, String name) Adds a name to the pathToNames criterion.void
X509CertSelector.addSubjectAlternativeName
(int type, byte[] name) Adds a name to the subjectAlternativeNames criterion.void
X509CertSelector.addSubjectAlternativeName
(int type, String name) Adds a name to the subjectAlternativeNames criterion.void
Extension.encode
(OutputStream out) Generates the extension's DER encoding and writes it to the output stream.byte[]
X509CertSelector.getIssuerAsBytes()
Returns the issuer criterion as a byte array.byte[]
X509CertSelector.getSubjectAsBytes()
Returns the subject criterion as a byte array.void
X509CertSelector.setExtendedKeyUsage
(Set<String> keyPurposeSet) Sets the extendedKeyUsage criterion.void
X509CertSelector.setIssuer
(byte[] issuerDN) Sets the issuer criterion.void
Deprecated.void
X509CRLSelector.setIssuerNames
(Collection<?> names) Note: use X509CRLSelector.setIssuers(Collection) instead or only specify the byte array form of distinguished names when using this method.void
X509CertSelector.setNameConstraints
(byte[] bytes) Sets the name constraints criterion.void
X509CertSelector.setPathToNames
(Collection<List<?>> names) Sets the pathToNames criterion.void
Sets the policy constraint.void
X509CertSelector.setSubject
(byte[] subjectDN) Sets the subject criterion.void
X509CertSelector.setSubject
(String subjectDN) Deprecated.void
X509CertSelector.setSubjectAlternativeNames
(Collection<List<?>> names) Sets the subjectAlternativeNames criterion.void
X509CertSelector.setSubjectPublicKey
(byte[] key) Sets the subjectPublicKey criterion.void
X509CertSelector.setSubjectPublicKeyAlgID
(String oid) Sets the subjectPublicKeyAlgID criterion.ModifierConstructorDescriptionPolicyQualifierInfo
(byte[] encoded) Creates an instance ofPolicyQualifierInfo
from the encoded bytes. -
Uses of IOException in java.util
Modifier and TypeClassDescriptionclass
Thrown to indicate that an operation could not complete because the input did not conform to the appropriate XML document type for a collection of properties, as per theProperties
specification.Modifier and TypeMethodDescriptionFormatter.ioException()
Returns theIOException
last thrown by this formatter'sAppendable
.Scanner.ioException()
Returns theIOException
last thrown by thisScanner
's underlyingReadable
.Modifier and TypeMethodDescriptionvoid
Properties.load
(InputStream inStream) Reads a property list (key and element pairs) from the input byte stream.void
Reads a property list (key and element pairs) from the input character stream in a simple line-oriented format.void
Properties.loadFromXML
(InputStream in) Loads all of the properties represented by the XML document on the specified input stream into this properties table.ResourceBundle.Control.newBundle
(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) Instantiates a resource bundle for the given bundle name of the given format and locale, using the given class loader if necessary.void
Properties.store
(OutputStream out, String comments) Writes this property list (key and element pairs) in thisProperties
table to the output stream in a format suitable for loading into aProperties
table using theload(InputStream)
method.void
Writes this property list (key and element pairs) in thisProperties
table to the output character stream in a format suitable for using theload(Reader)
method.void
Properties.storeToXML
(OutputStream os, String comment) Emits an XML document representing all of the properties contained in this table.void
Properties.storeToXML
(OutputStream os, String comment, String encoding) Emits an XML document representing all of the properties contained in this table, using the specified encoding.void
Properties.storeToXML
(OutputStream os, String comment, Charset charset) Emits an XML document representing all of the properties contained in this table, using the specified encoding.ModifierConstructorDescriptionConstructs a new formatter with the specified file, charset, and locale.Constructs a new formatter with the specified file name, charset, and locale.PropertyResourceBundle
(InputStream stream) Creates a property resource bundle from anInputStream
.PropertyResourceBundle
(Reader reader) Creates a property resource bundle from aReader
.Constructs a newScanner
that produces values scanned from the specified file.Constructs a newScanner
that produces values scanned from the specified file.Constructs a newScanner
that produces values scanned from the specified file.Constructs a newScanner
that produces values scanned from the specified file. -
Uses of IOException in java.util.jar
Modifier and TypeClassDescriptionclass
Signals that an error of some sort has occurred while reading from or writing to a JAR file.Modifier and TypeMethodDescriptionJarEntry.getAttributes()
Returns theManifest
Attributes
for this entry, ornull
if none.JarFile.getInputStream
(ZipEntry ze) Returns an input stream for reading the contents of the specified zip file entry.JarFile.getManifest()
Returns the jar file manifest, ornull
if none.JarInputStream.getNextEntry()
Reads the next ZIP file entry and positions the stream at the beginning of the entry data.JarInputStream.getNextJarEntry()
Reads the next JAR file entry and positions the stream at the beginning of the entry data.void
JarOutputStream.putNextEntry
(ZipEntry ze) Begins writing a new JAR file entry and positions the stream to the start of the entry data.int
JarInputStream.read
(byte[] b, int off, int len) Reads from the current JAR file entry into an array of bytes.void
Manifest.read
(InputStream is) Reads the Manifest from the specified InputStream.void
Manifest.write
(OutputStream out) Writes the Manifest to the specified OutputStream.ModifierConstructorDescriptionCreates a newJarFile
to read from the specifiedFile
object.Creates a newJarFile
to read from the specifiedFile
object.Creates a newJarFile
to read from the specifiedFile
object in the specified mode.JarFile
(File file, boolean verify, int mode, Runtime.Version version) Creates a newJarFile
to read from the specifiedFile
object in the specified mode.Creates a newJarFile
to read from the specified filename
.Creates a newJarFile
to read from the specified filename
.Creates a newJarInputStream
and reads the optional manifest.JarInputStream
(InputStream in, boolean verify) Creates a newJarInputStream
and reads the optional manifest.Creates a newJarOutputStream
with no manifest.JarOutputStream
(OutputStream out, Manifest man) Creates a newJarOutputStream
with the specifiedManifest
.Manifest
(InputStream is) Constructs a new Manifest from the specified input stream. -
Uses of IOException in java.util.logging
Modifier and TypeMethodDescriptionvoid
LogManager.readConfiguration()
Reads and initializes the logging configuration.void
LogManager.readConfiguration
(InputStream ins) Reads and initializes the logging configuration from the given input stream.void
LogManager.updateConfiguration
(InputStream ins, Function<String, BiFunction<String, String, String>> mapper) Updates the logging configuration.void
LogManager.updateConfiguration
(Function<String, BiFunction<String, String, String>> mapper) Updates the logging configuration.ModifierConstructorDescriptionConstruct a defaultFileHandler
.FileHandler
(String pattern) Initialize aFileHandler
to write to the given filename.FileHandler
(String pattern, boolean append) Initialize aFileHandler
to write to the given filename, with optional append.FileHandler
(String pattern, int limit, int count) Initialize aFileHandler
to write to a set of files.FileHandler
(String pattern, int limit, int count, boolean append) Initialize aFileHandler
to write to a set of files with optional append.FileHandler
(String pattern, long limit, int count, boolean append) Initialize aFileHandler
to write to a set of files with optional append.Create aSocketHandler
, using onlyLogManager
properties (or their defaults).SocketHandler
(String host, int port) Construct aSocketHandler
using a specified host and port. -
Uses of IOException in java.util.prefs
Modifier and TypeMethodDescriptionvoid
AbstractPreferences.exportNode
(OutputStream os) Implements theexportNode
method as per the specification inPreferences.exportNode(OutputStream)
.abstract void
Preferences.exportNode
(OutputStream os) Emits on the specified output stream an XML document representing all of the preferences contained in this node (but not its descendants).void
AbstractPreferences.exportSubtree
(OutputStream os) Implements theexportSubtree
method as per the specification inPreferences.exportSubtree(OutputStream)
.abstract void
Preferences.exportSubtree
(OutputStream os) Emits an XML document representing all of the preferences contained in this node and all of its descendants.static void
Preferences.importPreferences
(InputStream is) Imports all of the preferences represented by the XML document on the specified input stream. -
Uses of IOException in java.util.zip
Modifier and TypeClassDescriptionclass
Signals that a Zip exception of some sort has occurred.Modifier and TypeMethodDescriptionint
DeflaterInputStream.available()
Returns 0 after EOF has been reached, otherwise always return 1.int
InflaterInputStream.available()
Returns 0 after EOF has been reached, otherwise always return 1.int
ZipInputStream.available()
Returns 0 after EOF has reached for the current entry data, otherwise always return 1.void
DeflaterInputStream.close()
Closes this input stream and its underlying input stream, discarding any pending uncompressed data.void
DeflaterOutputStream.close()
Writes remaining compressed data to the output stream and closes the underlying stream.void
GZIPInputStream.close()
Closes this input stream and releases any system resources associated with the stream.void
InflaterInputStream.close()
Closes this input stream and releases any system resources associated with the stream.void
InflaterOutputStream.close()
Writes any remaining uncompressed data to the output stream and closes the underlying output stream.void
ZipFile.close()
Closes the ZIP file.void
ZipInputStream.close()
Closes this input stream and releases any system resources associated with the stream.void
ZipOutputStream.close()
Closes the ZIP output stream as well as the stream being filtered.void
ZipInputStream.closeEntry()
Closes the current ZIP entry and positions the stream for reading the next entry.void
ZipOutputStream.closeEntry()
Closes the current ZIP entry and positions the stream for writing the next entry.protected void
DeflaterOutputStream.deflate()
Writes next block of compressed data to the output stream.protected void
InflaterInputStream.fill()
Fills input buffer with more data to decompress.void
DeflaterOutputStream.finish()
Finishes writing compressed data to the output stream without closing the underlying stream.void
GZIPOutputStream.finish()
Finishes writing compressed data to the output stream without closing the underlying stream.void
InflaterOutputStream.finish()
Finishes writing uncompressed data to the output stream without closing the underlying stream.void
ZipOutputStream.finish()
Finishes writing the contents of the ZIP output stream without closing the underlying stream.void
DeflaterOutputStream.flush()
Flushes the compressed output stream.void
InflaterOutputStream.flush()
Flushes this output stream, forcing any pending buffered output bytes to be written.ZipFile.getInputStream
(ZipEntry entry) Returns an input stream for reading the contents of the specified zip file entry.ZipInputStream.getNextEntry()
Reads the next ZIP file entry and positions the stream at the beginning of the entry data.void
ZipOutputStream.putNextEntry
(ZipEntry e) Begins writing a new ZIP file entry and positions the stream to the start of the entry data.int
CheckedInputStream.read()
Reads a byte.int
CheckedInputStream.read
(byte[] buf, int off, int len) Reads into an array of bytes.int
DeflaterInputStream.read()
Reads a single byte of compressed data from the input stream.int
DeflaterInputStream.read
(byte[] b, int off, int len) Reads compressed data into a byte array.int
GZIPInputStream.read
(byte[] buf, int off, int len) Reads uncompressed data into an array of bytes.int
InflaterInputStream.read()
Reads a byte of uncompressed data.int
InflaterInputStream.read
(byte[] b, int off, int len) Reads uncompressed data into an array of bytes.int
ZipInputStream.read
(byte[] b, int off, int len) Reads from the current ZIP entry into an array of bytes.void
DeflaterInputStream.reset()
This operation is not supported.void
InflaterInputStream.reset()
Repositions this stream to the position at the time themark
method was last called on this input stream.long
CheckedInputStream.skip
(long n) Skips specified number of bytes of input.long
DeflaterInputStream.skip
(long n) Skips over and discards data from the input stream.long
InflaterInputStream.skip
(long n) Skips specified number of bytes of uncompressed data.long
ZipInputStream.skip
(long n) Skips specified number of bytes in the current ZIP entry.void
CheckedOutputStream.write
(byte[] b, int off, int len) Writes an array of bytes.void
CheckedOutputStream.write
(int b) Writes a byte.void
DeflaterOutputStream.write
(byte[] b, int off, int len) Writes an array of bytes to the compressed output stream.void
DeflaterOutputStream.write
(int b) Writes a byte to the compressed output stream.void
GZIPOutputStream.write
(byte[] buf, int off, int len) Writes array of bytes to the compressed output stream.void
InflaterOutputStream.write
(byte[] b, int off, int len) Writes an array of bytes to the uncompressed output stream.void
InflaterOutputStream.write
(int b) Writes a byte to the uncompressed output stream.void
ZipOutputStream.write
(byte[] b, int off, int len) Writes an array of bytes to the current ZIP entry data.ModifierConstructorDescriptionCreates a new input stream with a default buffer size.GZIPInputStream
(InputStream in, int size) Creates a new input stream with the specified buffer size.Creates a new output stream with a default buffer size.GZIPOutputStream
(OutputStream out, boolean syncFlush) Creates a new output stream with a default buffer size and the specified flush mode.GZIPOutputStream
(OutputStream out, int size) Creates a new output stream with the specified buffer size.GZIPOutputStream
(OutputStream out, int size, boolean syncFlush) Creates a new output stream with the specified buffer size and flush mode.Opens a ZIP file for reading given the specified File object.Opens a newZipFile
to read from the specifiedFile
object in the specified mode.Opens a newZipFile
to read from the specifiedFile
object in the specified mode.Opens a ZIP file for reading given the specified File object.Opens a zip file for reading.Opens a zip file for reading. -
Uses of IOException in javax.annotation.processing
Modifier and TypeClassDescriptionclass
Indicates aFiler
detected an attempt to open a file that would violate the guarantees provided by theFiler
.Modifier and TypeMethodDescriptionFiler.createClassFile
(CharSequence name, Element... originatingElements) Creates a new class file, and returns an object to allow writing to it.Filer.createResource
(JavaFileManager.Location location, CharSequence moduleAndPkg, CharSequence relativeName, Element... originatingElements) Creates a new auxiliary resource file for writing and returns a file object for it.Filer.createSourceFile
(CharSequence name, Element... originatingElements) Creates a new source file and returns an object to allow writing to it.Filer.getResource
(JavaFileManager.Location location, CharSequence moduleAndPkg, CharSequence relativeName) Returns an object for reading an existing resource. -
Uses of IOException in javax.crypto
Modifier and TypeMethodDescriptionint
CipherInputStream.available()
Returns the number of bytes that can be read from this input stream without blocking.void
CipherInputStream.close()
Closes this input stream and releases any system resources associated with the stream.void
CipherOutputStream.close()
Closes this output stream and releases any system resources associated with this stream.void
CipherOutputStream.flush()
Flushes this output stream by forcing any buffered output bytes that have already been processed by the encapsulated cipher object to be written out.byte[]
EncryptedPrivateKeyInfo.getEncoded()
Returns the ASN.1 encoding of this object.final Object
Retrieves the original (encapsulated) object.final Object
Retrieves the original (encapsulated) object.final Object
Retrieves the original (encapsulated) object.int
CipherInputStream.read()
Reads the next byte of data from this input stream.int
CipherInputStream.read
(byte[] b) Reads up tob.length
bytes of data from this input stream into an array of bytes.int
CipherInputStream.read
(byte[] b, int off, int len) Reads up tolen
bytes of data from this input stream into an array of bytes.long
CipherInputStream.skip
(long n) Skipsn
bytes of input from the bytes that can be read from this input stream without blocking.void
CipherOutputStream.write
(byte[] b) Writesb.length
bytes from the specified byte array to this output stream.void
CipherOutputStream.write
(byte[] b, int off, int len) Writeslen
bytes from the specified byte array starting at offsetoff
to this output stream.void
CipherOutputStream.write
(int b) Writes the specified byte to this output stream.ModifierConstructorDescriptionEncryptedPrivateKeyInfo
(byte[] encoded) Constructs (i.e., parses) anEncryptedPrivateKeyInfo
from its ASN.1 encoding.SealedObject
(Serializable object, Cipher c) Constructs a SealedObject from any Serializable object. -
Uses of IOException in javax.imageio
Modifier and TypeClassDescriptionclass
An exception class used for signaling run-time failure of reading and writing operations.Modifier and TypeMethodDescriptionboolean
ImageWriter.canInsertEmpty
(int imageIndex) Returnstrue
if the writer supports the insertion of a new, empty image at the given index.boolean
ImageWriter.canInsertImage
(int imageIndex) Returnstrue
if the writer supports the insertion of a new image at the given index.boolean
ImageWriter.canRemoveImage
(int imageIndex) Returnstrue
if the writer supports the removal of an existing image at the given index.boolean
ImageWriter.canReplaceImageMetadata
(int imageIndex) Returnstrue
if it is possible to replace the image metadata associated with an existing image with indeximageIndex
.boolean
ImageWriter.canReplacePixels
(int imageIndex) Returnstrue
if the writer allows pixels of the given image to be replaced using thereplacePixels
methods.boolean
ImageWriter.canReplaceStreamMetadata()
Returnstrue
if it is possible to replace the stream metadata already present in the output.boolean
ImageWriter.canWriteEmpty()
Returnstrue
if the writer supports the writing of a complete image stream consisting of a single image with undefined pixel values and associated metadata and thumbnails to the output.static ImageInputStream
ImageIO.createImageInputStream
(Object input) Returns anImageInputStream
that will take its input from the givenObject
.static ImageOutputStream
ImageIO.createImageOutputStream
(Object output) Returns anImageOutputStream
that will send its output to the givenObject
.void
ImageWriter.endInsertEmpty()
Completes the insertion of a new image that was begun with a prior call toprepareInsertEmpty
.void
ImageWriter.endReplacePixels()
Terminates a sequence of calls toreplacePixels
.void
ImageWriter.endWriteEmpty()
Completes the writing of a new image that was begun with a prior call toprepareWriteEmpty
.void
ImageWriter.endWriteSequence()
Completes the writing of a sequence of images begun withprepareWriteSequence
.float
ImageReader.getAspectRatio
(int imageIndex) Returns the aspect ratio of the given image (that is, its width divided by its height) as afloat
.ImageReader.getFormatName()
Returns aString
identifying the format of the input source.abstract int
ImageReader.getHeight
(int imageIndex) Returns the height in pixels of the given image within the input source.abstract IIOMetadata
ImageReader.getImageMetadata
(int imageIndex) Returns anIIOMetadata
object containing metadata associated with the given image, ornull
if the reader does not support reading metadata, is set to ignore metadata, or if no metadata is available.ImageReader.getImageMetadata
(int imageIndex, String formatName, Set<String> nodeNames) Returns anIIOMetadata
object representing the metadata associated with the given image, ornull
if the reader does not support reading metadata or none is available.abstract Iterator<ImageTypeSpecifier>
ImageReader.getImageTypes
(int imageIndex) Returns anIterator
containing possible image types to which the given image may be decoded, in the form ofImageTypeSpecifiers
s.abstract int
ImageReader.getNumImages
(boolean allowSearch) Returns the number of images, not including thumbnails, available from the current input source.int
ImageReader.getNumThumbnails
(int imageIndex) Returns the number of thumbnail preview images associated with the given image.ImageReader.getRawImageType
(int imageIndex) Returns anImageTypeSpecifier
indicating theSampleModel
andColorModel
which most closely represents the "raw" internal format of the image.abstract IIOMetadata
ImageReader.getStreamMetadata()
Returns anIIOMetadata
object representing the metadata associated with the input source as a whole (i.e., not associated with any particular image), ornull
if the reader does not support reading metadata, is set to ignore metadata, or if no metadata is available.ImageReader.getStreamMetadata
(String formatName, Set<String> nodeNames) Returns anIIOMetadata
object representing the metadata associated with the input source as a whole (i.e., not associated with any particular image).int
ImageReader.getThumbnailHeight
(int imageIndex, int thumbnailIndex) Returns the height of the thumbnail preview image indexed bythumbnailIndex
, associated with the image indexed byImageIndex
.int
ImageReader.getThumbnailWidth
(int imageIndex, int thumbnailIndex) Returns the width of the thumbnail preview image indexed bythumbnailIndex
, associated with the image indexed byImageIndex
.int
ImageReader.getTileGridXOffset
(int imageIndex) Returns the X coordinate of the upper-left corner of tile (0, 0) in the given image.int
ImageReader.getTileGridYOffset
(int imageIndex) Returns the Y coordinate of the upper-left corner of tile (0, 0) in the given image.int
ImageReader.getTileHeight
(int imageIndex) Returns the height of a tile in the given image.int
ImageReader.getTileWidth
(int imageIndex) Returns the width of a tile in the given image.abstract int
ImageReader.getWidth
(int imageIndex) Returns the width in pixels of the given image within the input source.boolean
ImageReader.hasThumbnails
(int imageIndex) Returnstrue
if the given image has thumbnail preview images associated with it.boolean
ImageReader.isImageTiled
(int imageIndex) Returnstrue
if the image is organized into tiles, that is, equal-sized non-overlapping rectangles.boolean
ImageReader.isRandomAccessEasy
(int imageIndex) Returnstrue
if the storage format of the given image places no inherent impediment on random access to pixels.void
ImageWriter.prepareInsertEmpty
(int imageIndex, ImageTypeSpecifier imageType, int width, int height, IIOMetadata imageMetadata, List<? extends BufferedImage> thumbnails, ImageWriteParam param) Begins the insertion of a new image with undefined pixel values into an existing image stream.void
ImageWriter.prepareReplacePixels
(int imageIndex, Rectangle region) Prepares the writer to handle a series of calls to thereplacePixels
methods.void
ImageWriter.prepareWriteEmpty
(IIOMetadata streamMetadata, ImageTypeSpecifier imageType, int width, int height, IIOMetadata imageMetadata, List<? extends BufferedImage> thumbnails, ImageWriteParam param) Begins the writing of a complete image stream, consisting of a single image with undefined pixel values and associated metadata and thumbnails, to the output.void
ImageWriter.prepareWriteSequence
(IIOMetadata streamMetadata) Prepares a stream to accept a series of subsequentwriteToSequence
calls, using the provided stream metadata object.static BufferedImage
Returns aBufferedImage
as the result of decoding a suppliedFile
with anImageReader
chosen automatically from among those currently registered.static BufferedImage
ImageIO.read
(InputStream input) Returns aBufferedImage
as the result of decoding a suppliedInputStream
with anImageReader
chosen automatically from among those currently registered.static BufferedImage
Returns aBufferedImage
as the result of decoding a suppliedURL
with anImageReader
chosen automatically from among those currently registered.static BufferedImage
ImageIO.read
(ImageInputStream stream) Returns aBufferedImage
as the result of decoding a suppliedImageInputStream
with anImageReader
chosen automatically from among those currently registered.ImageReader.read
(int imageIndex) Reads the image indexed byimageIndex
and returns it as a completeBufferedImage
, using a defaultImageReadParam
.abstract BufferedImage
ImageReader.read
(int imageIndex, ImageReadParam param) Reads the image indexed byimageIndex
and returns it as a completeBufferedImage
, using a suppliedImageReadParam
.ImageReader.readAll
(int imageIndex, ImageReadParam param) Reads the image indexed byimageIndex
and returns anIIOImage
containing the image, thumbnails, and associated image metadata, using a suppliedImageReadParam
.ImageReader.readAll
(Iterator<? extends ImageReadParam> params) Returns anIterator
containing all the images, thumbnails, and metadata, starting at the index given bygetMinIndex
, from the input source in the form ofIIOImage
objects.ImageReader.readAsRenderedImage
(int imageIndex, ImageReadParam param) Returns aRenderedImage
object that contains the contents of the image indexed byimageIndex
.ImageReader.readRaster
(int imageIndex, ImageReadParam param) Returns a newRaster
object containing the raw pixel data from the image stream, without any color conversion applied.ImageReader.readThumbnail
(int imageIndex, int thumbnailIndex) Returns the thumbnail preview image indexed bythumbnailIndex
, associated with the image indexed byImageIndex
as aBufferedImage
.ImageReader.readTile
(int imageIndex, int tileX, int tileY) Reads the tile indicated by thetileX
andtileY
arguments, returning it as aBufferedImage
.ImageReader.readTileRaster
(int imageIndex, int tileX, int tileY) Returns a newRaster
object containing the raw pixel data from the tile, without any color conversion applied.void
ImageWriter.removeImage
(int imageIndex) Removes an image from the stream.void
ImageWriter.replaceImageMetadata
(int imageIndex, IIOMetadata imageMetadata) Replaces the image metadata associated with an existing image.void
ImageWriter.replacePixels
(Raster raster, ImageWriteParam param) Replaces a portion of an image already present in the output with a portion of the givenRaster
.void
ImageWriter.replacePixels
(RenderedImage image, ImageWriteParam param) Replaces a portion of an image already present in the output with a portion of the given image.void
ImageWriter.replaceStreamMetadata
(IIOMetadata streamMetadata) Replaces the stream metadata in the output with new information.static boolean
ImageIO.write
(RenderedImage im, String formatName, File output) Writes an image using an arbitraryImageWriter
that supports the given format to aFile
.static boolean
ImageIO.write
(RenderedImage im, String formatName, OutputStream output) Writes an image using an arbitraryImageWriter
that supports the given format to anOutputStream
.static boolean
ImageIO.write
(RenderedImage im, String formatName, ImageOutputStream output) Writes an image using the an arbitraryImageWriter
that supports the given format to anImageOutputStream
.void
ImageWriter.write
(RenderedImage image) Appends a complete image stream consisting of a single image with default metadata and thumbnails to the output.void
Appends a complete image stream containing a single image with default metadata and thumbnails to the output.abstract void
ImageWriter.write
(IIOMetadata streamMetadata, IIOImage image, ImageWriteParam param) Appends a complete image stream containing a single image and associated stream and image metadata and thumbnails to the output.void
ImageWriter.writeInsert
(int imageIndex, IIOImage image, ImageWriteParam param) Inserts a new image into an existing image stream.void
ImageWriter.writeToSequence
(IIOImage image, ImageWriteParam param) Appends a single image and possibly associated metadata and thumbnails, to the output. -
Uses of IOException in javax.imageio.metadata
Modifier and TypeClassDescriptionclass
AnIIOInvalidTreeException
is thrown when an attempt by anIIOMetadata
object to parse a tree ofIIOMetadataNode
s fails. -
Uses of IOException in javax.imageio.spi
Modifier and TypeMethodDescriptionabstract boolean
ImageReaderSpi.canDecodeInput
(Object source) Returnstrue
if the supplied source object appears to be of the format supported by this reader.ImageInputStreamSpi.createInputStreamInstance
(Object input) Returns an instance of theImageInputStream
implementation associated with this service provider.abstract ImageInputStream
ImageInputStreamSpi.createInputStreamInstance
(Object input, boolean useCache, File cacheDir) Returns an instance of theImageInputStream
implementation associated with this service provider.ImageOutputStreamSpi.createOutputStreamInstance
(Object output) Returns an instance of theImageOutputStream
implementation associated with this service provider.abstract ImageOutputStream
ImageOutputStreamSpi.createOutputStreamInstance
(Object output, boolean useCache, File cacheDir) Returns an instance of theImageOutputStream
implementation associated with this service provider.ImageReaderSpi.createReaderInstance()
Returns an instance of theImageReader
implementation associated with this service provider.abstract ImageReader
ImageReaderSpi.createReaderInstance
(Object extension) Returns an instance of theImageReader
implementation associated with this service provider.ImageWriterSpi.createWriterInstance()
Returns an instance of theImageWriter
implementation associated with this service provider.abstract ImageWriter
ImageWriterSpi.createWriterInstance
(Object extension) Returns an instance of theImageWriter
implementation associated with this service provider. -
Uses of IOException in javax.imageio.stream
Modifier and TypeMethodDescriptionprotected final void
ImageInputStreamImpl.checkClosed()
Throws anIOException
if the stream has been closed.void
FileCacheImageInputStream.close()
Closes thisFileCacheImageInputStream
, closing and removing the cache file.void
FileCacheImageOutputStream.close()
Closes thisFileCacheImageOutputStream
.void
FileImageOutputStream.close()
void
ImageInputStream.close()
Closes the stream.void
ImageInputStreamImpl.close()
void
MemoryCacheImageInputStream.close()
Closes thisMemoryCacheImageInputStream
, freeing the cache.void
MemoryCacheImageOutputStream.close()
Closes thisMemoryCacheImageOutputStream
.void
ImageInputStream.flush()
Discards the initial position of the stream prior to the current stream position.void
ImageInputStreamImpl.flush()
void
FileCacheImageOutputStream.flushBefore
(long pos) void
ImageInputStream.flushBefore
(long pos) Discards the initial portion of the stream prior to the indicated position.void
ImageInputStreamImpl.flushBefore
(long pos) void
ImageOutputStream.flushBefore
(long pos) Flushes all data prior to the given position to the underlying destination, such as anOutputStream
orFile
.void
MemoryCacheImageOutputStream.flushBefore
(long pos) protected final void
ImageOutputStreamImpl.flushBits()
If the bit offset is non-zero, forces the remaining bits in the current byte to 0 and advances the stream position by one.int
ImageInputStream.getBitOffset()
Returns the current bit offset, as an integer between 0 and 7, inclusive.int
ImageInputStreamImpl.getBitOffset()
long
ImageInputStream.getStreamPosition()
Returns the current byte position of the stream.long
ImageInputStreamImpl.getStreamPosition()
long
ImageInputStream.length()
Returns the total length of the stream, if known.int
FileCacheImageInputStream.read()
int
FileCacheImageInputStream.read
(byte[] b, int off, int len) int
FileCacheImageOutputStream.read()
int
FileCacheImageOutputStream.read
(byte[] b, int off, int len) int
FileImageInputStream.read()
int
FileImageInputStream.read
(byte[] b, int off, int len) int
FileImageOutputStream.read()
int
FileImageOutputStream.read
(byte[] b, int off, int len) int
ImageInputStream.read()
Reads a single byte from the stream and returns it as an integer between 0 and 255.int
ImageInputStream.read
(byte[] b) Reads up tob.length
bytes from the stream, and stores them intob
starting at index 0.int
ImageInputStream.read
(byte[] b, int off, int len) Reads up tolen
bytes from the stream, and stores them intob
starting at indexoff
.abstract int
ImageInputStreamImpl.read()
Reads a single byte from the stream and returns it as anint
between 0 and 255.int
ImageInputStreamImpl.read
(byte[] b) A convenience method that callsread(b, 0, b.length)
.abstract int
ImageInputStreamImpl.read
(byte[] b, int off, int len) Reads up tolen
bytes from the stream, and stores them intob
starting at indexoff
.int
MemoryCacheImageInputStream.read()
int
MemoryCacheImageInputStream.read
(byte[] b, int off, int len) int
MemoryCacheImageOutputStream.read()
int
MemoryCacheImageOutputStream.read
(byte[] b, int off, int len) int
ImageInputStream.readBit()
Reads a single bit from the stream and returns it as anint
with the value0
or1
.int
ImageInputStreamImpl.readBit()
long
ImageInputStream.readBits
(int numBits) Reads a bitstring from the stream and returns it as along
, with the first bit read becoming the most significant bit of the output.long
ImageInputStreamImpl.readBits
(int numBits) boolean
ImageInputStream.readBoolean()
Reads a byte from the stream and returns aboolean
value oftrue
if it is nonzero,false
if it is zero.boolean
ImageInputStreamImpl.readBoolean()
byte
ImageInputStream.readByte()
Reads a byte from the stream and returns it as abyte
value.byte
ImageInputStreamImpl.readByte()
void
ImageInputStream.readBytes
(IIOByteBuffer buf, int len) Reads up tolen
bytes from the stream, and modifies the suppliedIIOByteBuffer
to indicate the byte array, offset, and length where the data may be found.void
ImageInputStreamImpl.readBytes
(IIOByteBuffer buf, int len) char
ImageInputStream.readChar()
Equivalent toreadUnsignedShort
, except that the result is returned using thechar
datatype.char
ImageInputStreamImpl.readChar()
double
ImageInputStream.readDouble()
Reads 8 bytes from the stream, and (conceptually) concatenates them according to the current byte order and returns the result as adouble
.double
ImageInputStreamImpl.readDouble()
float
ImageInputStream.readFloat()
Reads 4 bytes from the stream, and (conceptually) concatenates them according to the current byte order and returns the result as afloat
.float
ImageInputStreamImpl.readFloat()
void
ImageInputStream.readFully
(byte[] b) Readsb.length
bytes from the stream, and stores them intob
starting at index0
.void
ImageInputStream.readFully
(byte[] b, int off, int len) Readslen
bytes from the stream, and stores them intob
starting at indexoff
.void
ImageInputStream.readFully
(char[] c, int off, int len) Readslen
chars (unsigned 16-bit integers) from the stream according to the current byte order, and stores them intoc
starting at indexoff
.void
ImageInputStream.readFully
(double[] d, int off, int len) Readslen
doubles (64-bit IEEE double-precision floats) from the stream according to the current byte order, and stores them intod
starting at indexoff
.void
ImageInputStream.readFully
(float[] f, int off, int len) Readslen
floats (32-bit IEEE single-precision floats) from the stream according to the current byte order, and stores them intof
starting at indexoff
.void
ImageInputStream.readFully
(int[] i, int off, int len) Readslen
ints (signed 32-bit integers) from the stream according to the current byte order, and stores them intoi
starting at indexoff
.void
ImageInputStream.readFully
(long[] l, int off, int len) Readslen
longs (signed 64-bit integers) from the stream according to the current byte order, and stores them intol
starting at indexoff
.void
ImageInputStream.readFully
(short[] s, int off, int len) Readslen
shorts (signed 16-bit integers) from the stream according to the current byte order, and stores them intos
starting at indexoff
.void
ImageInputStreamImpl.readFully
(byte[] b) void
ImageInputStreamImpl.readFully
(byte[] b, int off, int len) void
ImageInputStreamImpl.readFully
(char[] c, int off, int len) void
ImageInputStreamImpl.readFully
(double[] d, int off, int len) void
ImageInputStreamImpl.readFully
(float[] f, int off, int len) void
ImageInputStreamImpl.readFully
(int[] i, int off, int len) void
ImageInputStreamImpl.readFully
(long[] l, int off, int len) void
ImageInputStreamImpl.readFully
(short[] s, int off, int len) int
ImageInputStream.readInt()
Reads 4 bytes from the stream, and (conceptually) concatenates them according to the current byte order and returns the result as anint
.int
ImageInputStreamImpl.readInt()
ImageInputStream.readLine()
Reads the next line of text from the input stream.ImageInputStreamImpl.readLine()
long
ImageInputStream.readLong()
Reads 8 bytes from the stream, and (conceptually) concatenates them according to the current byte order and returns the result as along
.long
ImageInputStreamImpl.readLong()
short
ImageInputStream.readShort()
Reads two bytes from the stream, and (conceptually) concatenates them according to the current byte order, and returns the result as ashort
value.short
ImageInputStreamImpl.readShort()
int
ImageInputStream.readUnsignedByte()
Reads a byte from the stream, and (conceptually) converts it to an int, masks it with0xff
in order to strip off any sign-extension bits, and returns it as abyte
value.int
ImageInputStreamImpl.readUnsignedByte()
long
ImageInputStream.readUnsignedInt()
Reads 4 bytes from the stream, and (conceptually) concatenates them according to the current byte order, converts the result to a long, masks it with0xffffffffL
in order to strip off any sign-extension bits, and returns the result as an unsignedlong
value.long
ImageInputStreamImpl.readUnsignedInt()
int
ImageInputStream.readUnsignedShort()
Reads two bytes from the stream, and (conceptually) concatenates them according to the current byte order, converts the resulting value to anint
, masks it with0xffff
in order to strip off any sign-extension buts, and returns the result as an unsignedint
value.int
ImageInputStreamImpl.readUnsignedShort()
ImageInputStream.readUTF()
Reads in a string that has been encoded using a modified UTF-8 format.ImageInputStreamImpl.readUTF()
void
ImageInputStream.reset()
Returns the stream pointer to its previous position, including the bit offset, at the time of the most recent unmatched call tomark
.void
ImageInputStreamImpl.reset()
Resets the current stream byte and bit positions from the stack of marked positions.void
FileCacheImageOutputStream.seek
(long pos) Sets the current stream position and resets the bit offset to 0.void
FileImageOutputStream.seek
(long pos) Sets the current stream position and resets the bit offset to 0.void
ImageInputStream.seek
(long pos) Sets the current stream position to the desired location.void
ImageInputStreamImpl.seek
(long pos) void
ImageInputStream.setBitOffset
(int bitOffset) Sets the bit offset to an integer between 0 and 7, inclusive.void
ImageInputStreamImpl.setBitOffset
(int bitOffset) int
ImageInputStream.skipBytes
(int n) Moves the stream position forward by a given number of bytes.long
ImageInputStream.skipBytes
(long n) Moves the stream position forward by a given number of bytes.int
ImageInputStreamImpl.skipBytes
(int n) Advances the current stream position by callingseek(getStreamPosition() + n)
.long
ImageInputStreamImpl.skipBytes
(long n) Advances the current stream position by callingseek(getStreamPosition() + n)
.void
FileCacheImageOutputStream.write
(byte[] b, int off, int len) void
FileCacheImageOutputStream.write
(int b) void
FileImageOutputStream.write
(byte[] b, int off, int len) void
FileImageOutputStream.write
(int b) void
ImageOutputStream.write
(byte[] b) Writes a sequence of bytes to the stream at the current position.void
ImageOutputStream.write
(byte[] b, int off, int len) Writes a sequence of bytes to the stream at the current position.void
ImageOutputStream.write
(int b) Writes a single byte to the stream at the current position.void
ImageOutputStreamImpl.write
(byte[] b) void
MemoryCacheImageOutputStream.write
(byte[] b, int off, int len) void
MemoryCacheImageOutputStream.write
(int b) void
ImageOutputStream.writeBit
(int bit) Writes a single bit, given by the least significant bit of the argument, to the stream at the current bit offset within the current byte position.void
ImageOutputStreamImpl.writeBit
(int bit) void
ImageOutputStream.writeBits
(long bits, int numBits) Writes a sequence of bits, given by thenumBits
least significant bits of thebits
argument in left-to-right order, to the stream at the current bit offset within the current byte position.void
ImageOutputStreamImpl.writeBits
(long bits, int numBits) void
ImageOutputStream.writeBoolean
(boolean v) Writes aboolean
value to the stream.void
ImageOutputStreamImpl.writeBoolean
(boolean v) void
ImageOutputStream.writeByte
(int v) Writes the 8 low-order bits ofv
to the stream.void
ImageOutputStreamImpl.writeByte
(int v) void
ImageOutputStream.writeBytes
(String s) Writes a string to the output stream.void
ImageOutputStreamImpl.writeBytes
(String s) void
ImageOutputStream.writeChar
(int v) This method is a synonym forwriteShort
.void
ImageOutputStreamImpl.writeChar
(int v) void
ImageOutputStream.writeChars
(char[] c, int off, int len) Writes a sequence of chars to the stream at the current position.void
ImageOutputStream.writeChars
(String s) Writes a string to the output stream.void
ImageOutputStreamImpl.writeChars
(char[] c, int off, int len) void
ImageOutputStreamImpl.writeChars
(String s) void
ImageOutputStream.writeDouble
(double v) Writes adouble
value, which is comprised of four bytes, to the output stream.void
ImageOutputStreamImpl.writeDouble
(double v) void
ImageOutputStream.writeDoubles
(double[] d, int off, int len) Writes a sequence of doubles to the stream at the current position.void
ImageOutputStreamImpl.writeDoubles
(double[] d, int off, int len) void
ImageOutputStream.writeFloat
(float v) Writes afloat
value, which is comprised of four bytes, to the output stream.void
ImageOutputStreamImpl.writeFloat
(float v) void
ImageOutputStream.writeFloats
(float[] f, int off, int len) Writes a sequence of floats to the stream at the current position.void
ImageOutputStreamImpl.writeFloats
(float[] f, int off, int len) void
ImageOutputStream.writeInt
(int v) Writes the 32 bits ofv
to the stream.void
ImageOutputStreamImpl.writeInt
(int v) void
ImageOutputStream.writeInts
(int[] i, int off, int len) Writes a sequence of ints to the stream at the current position.void
ImageOutputStreamImpl.writeInts
(int[] i, int off, int len) void
ImageOutputStream.writeLong
(long v) Writes the 64 bits ofv
to the stream.void
ImageOutputStreamImpl.writeLong
(long v) void
ImageOutputStream.writeLongs
(long[] l, int off, int len) Writes a sequence of longs to the stream at the current position.void
ImageOutputStreamImpl.writeLongs
(long[] l, int off, int len) void
ImageOutputStream.writeShort
(int v) Writes the 16 low-order bits ofv
to the stream.void
ImageOutputStreamImpl.writeShort
(int v) void
ImageOutputStream.writeShorts
(short[] s, int off, int len) Writes a sequence of shorts to the stream at the current position.void
ImageOutputStreamImpl.writeShorts
(short[] s, int off, int len) void
Writes two bytes of length information to the output stream in network byte order, followed by the modified UTF-8 representation of every character in the strings
.void
ModifierConstructorDescriptionFileCacheImageInputStream
(InputStream stream, File cacheDir) Constructs aFileCacheImageInputStream
that will read from a givenInputStream
.FileCacheImageOutputStream
(OutputStream stream, File cacheDir) Constructs aFileCacheImageOutputStream
that will write to a givenoutputStream
.Constructs aFileImageInputStream
that will read from a givenFile
.Constructs aFileImageOutputStream
that will write to a givenFile
. -
Uses of IOException in javax.management
Modifier and TypeMethodDescriptionvoid
MBeanServerConnection.addNotificationListener
(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) Adds a listener to a registered MBean.void
MBeanServerConnection.addNotificationListener
(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) Adds a listener to a registered MBean.MBeanServerConnection.createMBean
(String className, ObjectName name) Instantiates and registers an MBean in the MBean server.MBeanServerConnection.createMBean
(String className, ObjectName name, Object[] params, String[] signature) Instantiates and registers an MBean in the MBean server.MBeanServerConnection.createMBean
(String className, ObjectName name, ObjectName loaderName) Instantiates and registers an MBean in the MBean server.MBeanServerConnection.createMBean
(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) Instantiates and registers an MBean in the MBean server.MBeanServerConnection.getAttribute
(ObjectName name, String attribute) Gets the value of a specific attribute of a named MBean.MBeanServerConnection.getAttributes
(ObjectName name, String[] attributes) Retrieves the values of several attributes of a named MBean.MBeanServerConnection.getDefaultDomain()
Returns the default domain used for naming the MBean.String[]
MBeanServerConnection.getDomains()
Returns the list of domains in which any MBean is currently registered.MBeanServerConnection.getMBeanCount()
Returns the number of MBeans registered in the MBean server.MBeanServerConnection.getMBeanInfo
(ObjectName name) This method discovers the attributes and operations that an MBean exposes for management.MBeanServerConnection.getObjectInstance
(ObjectName name) Gets theObjectInstance
for a given MBean registered with the MBean server.MBeanServerConnection.invoke
(ObjectName name, String operationName, Object[] params, String[] signature) Invokes an operation on an MBean.boolean
MBeanServerConnection.isInstanceOf
(ObjectName name, String className) Returns true if the MBean specified is an instance of the specified class, false otherwise.boolean
MBeanServerConnection.isRegistered
(ObjectName name) Checks whether an MBean, identified by its object name, is already registered with the MBean server.MBeanServerConnection.queryMBeans
(ObjectName name, QueryExp query) Gets MBeans controlled by the MBean server.MBeanServerConnection.queryNames
(ObjectName name, QueryExp query) Gets the names of MBeans controlled by the MBean server.void
MBeanServerConnection.removeNotificationListener
(ObjectName name, NotificationListener listener) Removes a listener from a registered MBean.void
MBeanServerConnection.removeNotificationListener
(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) Removes a listener from a registered MBean.void
MBeanServerConnection.removeNotificationListener
(ObjectName name, ObjectName listener) Removes a listener from a registered MBean.void
MBeanServerConnection.removeNotificationListener
(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) Removes a listener from a registered MBean.void
MBeanServerConnection.setAttribute
(ObjectName name, Attribute attribute) Sets the value of a specific attribute of a named MBean.MBeanServerConnection.setAttributes
(ObjectName name, AttributeList attributes) Sets the values of several attributes of a named MBean.void
MBeanServerConnection.unregisterMBean
(ObjectName name) Unregisters an MBean from the MBean server. -
Uses of IOException in javax.management.loading
Modifier and TypeMethodDescriptionMLetMBean.getResources
(String name) Finds all the resources with the given name.void
MLet.readExternal
(ObjectInput in) Restore this MLet's contents from the givenObjectInput
.void
MLet.writeExternal
(ObjectOutput out) Save this MLet's contents to the givenObjectOutput
. -
Uses of IOException in javax.management.remote
Modifier and TypeClassDescriptionclass
Exception thrown byJMXConnectorFactory
andJMXConnectorServerFactory
when a provider exists for the required protocol but cannot be used for some reason.class
Exception thrown as the result of a remoteMBeanServer
method invocation when anError
is thrown while processing the invocation in the remote MBean server.Modifier and TypeMethodDescriptionvoid
JMXConnector.close()
Closes the client connection to its server.void
JMXConnector.connect()
Establishes the connection to the connector server.void
Establishes the connection to the connector server.static JMXConnector
JMXConnectorFactory.connect
(JMXServiceURL serviceURL) Creates a connection to the connector server at the given address.static JMXConnector
JMXConnectorFactory.connect
(JMXServiceURL serviceURL, Map<String, ?> environment) Creates a connection to the connector server at the given address.JMXConnector.getConnectionId()
Gets this connection's ID from the connector server.JMXConnector.getMBeanServerConnection()
Returns anMBeanServerConnection
object representing a remote MBean server.JMXConnector.getMBeanServerConnection
(Subject delegationSubject) Returns anMBeanServerConnection
object representing a remote MBean server on which operations are performed on behalf of the supplied delegation subject.static JMXConnector
JMXConnectorFactory.newJMXConnector
(JMXServiceURL serviceURL, Map<String, ?> environment) Creates a connector client for the connector server at the given address.JMXConnectorProvider.newJMXConnector
(JMXServiceURL serviceURL, Map<String, ?> environment) Creates a new connector client that is ready to connect to the connector server at the given address.static JMXConnectorServer
JMXConnectorServerFactory.newJMXConnectorServer
(JMXServiceURL serviceURL, Map<String, ?> environment, MBeanServer mbeanServer) Creates a connector server at the given address.JMXConnectorServerProvider.newJMXConnectorServer
(JMXServiceURL serviceURL, Map<String, ?> environment, MBeanServer mbeanServer) Creates a new connector server at the given address.void
JMXConnectorServerMBean.start()
Activates the connector server, that is, starts listening for client connections.void
JMXConnectorServerMBean.stop()
Deactivates the connector server, that is, stops listening for client connections.JMXConnectorServer.toJMXConnector
(Map<String, ?> env) Returns a client stub for this connector server.JMXConnectorServerMBean.toJMXConnector
(Map<String, ?> env) Returns a client stub for this connector server. -
Uses of IOException in javax.management.remote.rmi
Modifier and TypeMethodDescriptionvoid
RMIConnection.addNotificationListener
(ObjectName name, ObjectName listener, MarshalledObject filter, MarshalledObject handback, Subject delegationSubject) void
RMIConnectionImpl_Stub.addNotificationListener
(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, MarshalledObject $param_MarshalledObject_4, Subject $param_Subject_5) void
RMIConnectionImpl.addNotificationListener
(ObjectName name, ObjectName listener, MarshalledObject filter, MarshalledObject handback, Subject delegationSubject) Integer[]
RMIConnection.addNotificationListeners
(ObjectName[] names, MarshalledObject[] filters, Subject[] delegationSubjects) Integer[]
RMIConnectionImpl_Stub.addNotificationListeners
(ObjectName[] $param_arrayOf_ObjectName_1, MarshalledObject[] $param_arrayOf_MarshalledObject_2, Subject[] $param_arrayOf_Subject_3) Integer[]
RMIConnectionImpl.addNotificationListeners
(ObjectName[] names, MarshalledObject[] filters, Subject[] delegationSubjects) protected void
RMIServerImpl.clientClosed
(RMIConnection client) Method called when a client connection created bymakeClient
is closed.void
RMIConnection.close()
Closes this connection.void
RMIConnectionImpl_Stub.close()
void
RMIConnectionImpl.close()
void
RMIConnector.close()
void
RMIServerImpl.close()
Closes this connection server.protected void
RMIIIOPServerImpl.closeClient
(RMIConnection client) Deprecated.protected void
RMIJRMPServerImpl.closeClient
(RMIConnection client) protected abstract void
RMIServerImpl.closeClient
(RMIConnection client) Closes a client connection made bymakeClient
.protected void
RMIIIOPServerImpl.closeServer()
Deprecated.protected void
RMIJRMPServerImpl.closeServer()
Called byRMIServerImpl.close()
to close the connector server by unexporting this object.protected abstract void
RMIServerImpl.closeServer()
Called byRMIServerImpl.close()
to close the connector server.void
RMIConnector.connect()
void
RMIConnection.createMBean
(String className, ObjectName name, MarshalledObject params, String[] signature, Subject delegationSubject) Handles the methodMBeanServerConnection.createMBean(String, ObjectName, Object[], String[])
.RMIConnection.createMBean
(String className, ObjectName name, ObjectName loaderName, MarshalledObject params, String[] signature, Subject delegationSubject) RMIConnection.createMBean
(String className, ObjectName name, ObjectName loaderName, Subject delegationSubject) Handles the methodMBeanServerConnection.createMBean(String, ObjectName, ObjectName)
.RMIConnection.createMBean
(String className, ObjectName name, Subject delegationSubject) Handles the methodMBeanServerConnection.createMBean(String, ObjectName)
.RMIConnectionImpl_Stub.createMBean
(String $param_String_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, String[] $param_arrayOf_String_4, Subject $param_Subject_5) RMIConnectionImpl_Stub.createMBean
(String $param_String_1, ObjectName $param_ObjectName_2, ObjectName $param_ObjectName_3, MarshalledObject $param_MarshalledObject_4, String[] $param_arrayOf_String_5, Subject $param_Subject_6) RMIConnectionImpl_Stub.createMBean
(String $param_String_1, ObjectName $param_ObjectName_2, ObjectName $param_ObjectName_3, Subject $param_Subject_4) RMIConnectionImpl_Stub.createMBean
(String $param_String_1, ObjectName $param_ObjectName_2, Subject $param_Subject_3) RMIConnectionImpl.createMBean
(String className, ObjectName name, MarshalledObject params, String[] signature, Subject delegationSubject) RMIConnectionImpl.createMBean
(String className, ObjectName name, ObjectName loaderName, MarshalledObject params, String[] signature, Subject delegationSubject) RMIConnectionImpl.createMBean
(String className, ObjectName name, ObjectName loaderName, Subject delegationSubject) RMIConnectionImpl.createMBean
(String className, ObjectName name, Subject delegationSubject) protected void
RMIIIOPServerImpl.export()
Deprecated.protected void
RMIJRMPServerImpl.export()
protected abstract void
RMIServerImpl.export()
Exports this RMI object.RMIConnection.fetchNotifications
(long clientSequenceNumber, int maxNotifications, long timeout) Retrieves notifications from the connector server.RMIConnectionImpl_Stub.fetchNotifications
(long $param_long_1, int $param_int_2, long $param_long_3) RMIConnectionImpl.fetchNotifications
(long clientSequenceNumber, int maxNotifications, long timeout) RMIConnection.getAttribute
(ObjectName name, String attribute, Subject delegationSubject) Handles the methodMBeanServerConnection.getAttribute(ObjectName, String)
.RMIConnectionImpl_Stub.getAttribute
(ObjectName $param_ObjectName_1, String $param_String_2, Subject $param_Subject_3) RMIConnectionImpl.getAttribute
(ObjectName name, String attribute, Subject delegationSubject) RMIConnection.getAttributes
(ObjectName name, String[] attributes, Subject delegationSubject) Handles the methodMBeanServerConnection.getAttributes(ObjectName, String[])
.RMIConnectionImpl_Stub.getAttributes
(ObjectName $param_ObjectName_1, String[] $param_arrayOf_String_2, Subject $param_Subject_3) RMIConnectionImpl.getAttributes
(ObjectName name, String[] attributes, Subject delegationSubject) RMIConnection.getConnectionId()
Returns the connection ID.RMIConnectionImpl_Stub.getConnectionId()
RMIConnectionImpl.getConnectionId()
RMIConnector.getConnectionId()
RMIConnection.getDefaultDomain
(Subject delegationSubject) Handles the methodMBeanServerConnection.getDefaultDomain()
.RMIConnectionImpl_Stub.getDefaultDomain
(Subject $param_Subject_1) RMIConnectionImpl.getDefaultDomain
(Subject delegationSubject) String[]
RMIConnection.getDomains
(Subject delegationSubject) Handles the methodMBeanServerConnection.getDomains()
.String[]
RMIConnectionImpl_Stub.getDomains
(Subject $param_Subject_1) String[]
RMIConnectionImpl.getDomains
(Subject delegationSubject) RMIConnection.getMBeanCount
(Subject delegationSubject) Handles the methodMBeanServerConnection.getMBeanCount()
.RMIConnectionImpl_Stub.getMBeanCount
(Subject $param_Subject_1) RMIConnectionImpl.getMBeanCount
(Subject delegationSubject) RMIConnection.getMBeanInfo
(ObjectName name, Subject delegationSubject) Handles the methodMBeanServerConnection.getMBeanInfo(ObjectName)
.RMIConnectionImpl_Stub.getMBeanInfo
(ObjectName $param_ObjectName_1, Subject $param_Subject_2) RMIConnectionImpl.getMBeanInfo
(ObjectName name, Subject delegationSubject) RMIConnector.getMBeanServerConnection()
RMIConnector.getMBeanServerConnection
(Subject delegationSubject) RMIConnection.getObjectInstance
(ObjectName name, Subject delegationSubject) Handles the methodMBeanServerConnection.getObjectInstance(ObjectName)
.RMIConnectionImpl_Stub.getObjectInstance
(ObjectName $param_ObjectName_1, Subject $param_Subject_2) RMIConnectionImpl.getObjectInstance
(ObjectName name, Subject delegationSubject) RMIConnection.invoke
(ObjectName name, String operationName, MarshalledObject params, String[] signature, Subject delegationSubject) Handles the methodMBeanServerConnection.invoke(ObjectName, String, Object[], String[])
.RMIConnectionImpl_Stub.invoke
(ObjectName $param_ObjectName_1, String $param_String_2, MarshalledObject $param_MarshalledObject_3, String[] $param_arrayOf_String_4, Subject $param_Subject_5) RMIConnectionImpl.invoke
(ObjectName name, String operationName, MarshalledObject params, String[] signature, Subject delegationSubject) boolean
RMIConnection.isInstanceOf
(ObjectName name, String className, Subject delegationSubject) Handles the methodMBeanServerConnection.isInstanceOf(ObjectName, String)
.boolean
RMIConnectionImpl_Stub.isInstanceOf
(ObjectName $param_ObjectName_1, String $param_String_2, Subject $param_Subject_3) boolean
RMIConnectionImpl.isInstanceOf
(ObjectName name, String className, Subject delegationSubject) boolean
RMIConnection.isRegistered
(ObjectName name, Subject delegationSubject) Handles the methodMBeanServerConnection.isRegistered(ObjectName)
.boolean
RMIConnectionImpl_Stub.isRegistered
(ObjectName $param_ObjectName_1, Subject $param_Subject_2) boolean
RMIConnectionImpl.isRegistered
(ObjectName name, Subject delegationSubject) protected RMIConnection
RMIIIOPServerImpl.makeClient
(String connectionId, Subject subject) Deprecated.protected RMIConnection
RMIJRMPServerImpl.makeClient
(String connectionId, Subject subject) Creates a new client connection as an RMI object exported through JRMP.protected abstract RMIConnection
RMIServerImpl.makeClient
(String connectionId, Subject subject) Creates a new client connection.Makes a new connection through this RMI connector.Creates a new client connection.RMIConnection.queryMBeans
(ObjectName name, MarshalledObject query, Subject delegationSubject) Handles the methodMBeanServerConnection.queryMBeans(ObjectName, QueryExp)
.RMIConnectionImpl_Stub.queryMBeans
(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3) RMIConnectionImpl.queryMBeans
(ObjectName name, MarshalledObject query, Subject delegationSubject) RMIConnection.queryNames
(ObjectName name, MarshalledObject query, Subject delegationSubject) Handles the methodMBeanServerConnection.queryNames(ObjectName, QueryExp)
.RMIConnectionImpl_Stub.queryNames
(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3) RMIConnectionImpl.queryNames
(ObjectName name, MarshalledObject query, Subject delegationSubject) void
RMIConnection.removeNotificationListener
(ObjectName name, ObjectName listener, MarshalledObject filter, MarshalledObject handback, Subject delegationSubject) void
RMIConnection.removeNotificationListener
(ObjectName name, ObjectName listener, Subject delegationSubject) Handles the methodMBeanServerConnection.removeNotificationListener(ObjectName, ObjectName)
.void
RMIConnectionImpl_Stub.removeNotificationListener
(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, MarshalledObject $param_MarshalledObject_4, Subject $param_Subject_5) void
RMIConnectionImpl_Stub.removeNotificationListener
(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, Subject $param_Subject_3) void
RMIConnectionImpl.removeNotificationListener
(ObjectName name, ObjectName listener, MarshalledObject filter, MarshalledObject handback, Subject delegationSubject) void
RMIConnectionImpl.removeNotificationListener
(ObjectName name, ObjectName listener, Subject delegationSubject) void
RMIConnection.removeNotificationListeners
(ObjectName name, Integer[] listenerIDs, Subject delegationSubject) void
RMIConnectionImpl_Stub.removeNotificationListeners
(ObjectName $param_ObjectName_1, Integer[] $param_arrayOf_Integer_2, Subject $param_Subject_3) void
RMIConnectionImpl.removeNotificationListeners
(ObjectName name, Integer[] listenerIDs, Subject delegationSubject) void
RMIConnection.setAttribute
(ObjectName name, MarshalledObject attribute, Subject delegationSubject) Handles the methodMBeanServerConnection.setAttribute(ObjectName, Attribute)
.void
RMIConnectionImpl_Stub.setAttribute
(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3) void
RMIConnectionImpl.setAttribute
(ObjectName name, MarshalledObject attribute, Subject delegationSubject) RMIConnection.setAttributes
(ObjectName name, MarshalledObject attributes, Subject delegationSubject) Handles the methodMBeanServerConnection.setAttributes(ObjectName, AttributeList)
.RMIConnectionImpl_Stub.setAttributes
(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3) RMIConnectionImpl.setAttributes
(ObjectName name, MarshalledObject attributes, Subject delegationSubject) void
RMIConnectorServer.start()
Activates the connector server, that is starts listening for client connections.void
RMIConnectorServer.stop()
Deactivates the connector server, that is, stops listening for client connections.RMIConnectorServer.toJMXConnector
(Map<String, ?> env) Returns a client stub for this connector server.RMIIIOPServerImpl.toStub()
Deprecated.RMIJRMPServerImpl.toStub()
Returns a serializable stub for thisRMIServer
object.abstract Remote
RMIServerImpl.toStub()
Returns a remotable stub for this server object.void
RMIConnection.unregisterMBean
(ObjectName name, Subject delegationSubject) Handles the methodMBeanServerConnection.unregisterMBean(ObjectName)
.void
RMIConnectionImpl_Stub.unregisterMBean
(ObjectName $param_ObjectName_1, Subject $param_Subject_2) void
RMIConnectionImpl.unregisterMBean
(ObjectName name, Subject delegationSubject) ModifierConstructorDescriptionRMIConnectorServer
(JMXServiceURL url, Map<String, ?> environment) Makes anRMIConnectorServer
.RMIConnectorServer
(JMXServiceURL url, Map<String, ?> environment, MBeanServer mbeanServer) Makes anRMIConnectorServer
for the given MBean server.RMIConnectorServer
(JMXServiceURL url, Map<String, ?> environment, RMIServerImpl rmiServerImpl, MBeanServer mbeanServer) Makes anRMIConnectorServer
for the given MBean server.RMIIIOPServerImpl
(Map<String, ?> env) Deprecated.RMIJRMPServerImpl
(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf, Map<String, ?> env) Creates a newRMIServer
object that will be exported on the given port using the given socket factories. -
Uses of IOException in javax.naming.ldap
Modifier and TypeMethodDescriptionabstract void
StartTlsResponse.close()
Closes the TLS connection gracefully and reverts back to the underlying connection.abstract SSLSession
StartTlsResponse.negotiate()
Negotiates a TLS session using the default SSL socket factory.abstract SSLSession
StartTlsResponse.negotiate
(SSLSocketFactory factory) Negotiates a TLS session using an SSL socket factory.ModifierConstructorDescriptionPagedResultsControl
(int pageSize, boolean criticality) Constructs a control to set the number of entries to be returned per page of results.PagedResultsControl
(int pageSize, byte[] cookie, boolean criticality) Constructs a control to set the number of entries to be returned per page of results.PagedResultsResponseControl
(String id, boolean criticality, byte[] value) Constructs a paged-results response control.SortControl
(String[] sortBy, boolean criticality) Constructs a control to sort on a list of attributes in ascending order.SortControl
(String sortBy, boolean criticality) Constructs a control to sort on a single attribute in ascending order.SortControl
(SortKey[] sortBy, boolean criticality) Constructs a control to sort on a list of sort keys.SortResponseControl
(String id, boolean criticality, byte[] value) Constructs a control to indicate the outcome of a sort request. -
Uses of IOException in javax.net
Modifier and TypeMethodDescriptionServerSocketFactory.createServerSocket()
Returns an unbound server socket.abstract ServerSocket
ServerSocketFactory.createServerSocket
(int port) Returns a server socket bound to the specified port.abstract ServerSocket
ServerSocketFactory.createServerSocket
(int port, int backlog) Returns a server socket bound to the specified port, and uses the specified connection backlog.abstract ServerSocket
ServerSocketFactory.createServerSocket
(int port, int backlog, InetAddress ifAddress) Returns a server socket bound to the specified port, with a specified listen backlog and local IP.SocketFactory.createSocket()
Creates an unconnected socket.abstract Socket
SocketFactory.createSocket
(String host, int port) Creates a socket and connects it to the specified remote host at the specified remote port.abstract Socket
SocketFactory.createSocket
(String host, int port, InetAddress localHost, int localPort) Creates a socket and connects it to the specified remote host on the specified remote port.abstract Socket
SocketFactory.createSocket
(InetAddress host, int port) Creates a socket and connects it to the specified port number at the specified address.abstract Socket
SocketFactory.createSocket
(InetAddress address, int port, InetAddress localAddress, int localPort) Creates a socket and connect it to the specified remote address on the specified remote port. -
Uses of IOException in javax.net.ssl
Modifier and TypeClassDescriptionclass
Indicates some kind of error detected by an SSL subsystem.class
Indicates that the client and server could not negotiate the desired level of security.class
Reports a bad SSL key.class
Indicates that the peer's identity has not been verified.class
Reports an error in the operation of the SSL protocol.Modifier and TypeMethodDescriptionSSLSocketFactory.createSocket
(Socket s, InputStream consumed, boolean autoClose) Creates a server modeSocket
layered over an existing connected socket, and is able to read data which has already been consumed/removed from theSocket
's underlyingInputStream
.abstract Socket
SSLSocketFactory.createSocket
(Socket s, String host, int port, boolean autoClose) Returns a socket layered over an existing socket connected to the named host, at the given port.abstract void
SSLSocket.startHandshake()
Starts an SSL handshake on this connection.ModifierConstructorDescriptionprotected
Used only by subclasses.protected
SSLServerSocket
(int port) Used only by subclasses.protected
SSLServerSocket
(int port, int backlog) Used only by subclasses.protected
SSLServerSocket
(int port, int backlog, InetAddress address) Used only by subclasses.protected
Used only by subclasses.protected
SSLSocket
(String host, int port, InetAddress clientAddress, int clientPort) Used only by subclasses.protected
SSLSocket
(InetAddress address, int port) Used only by subclasses.protected
SSLSocket
(InetAddress address, int port, InetAddress clientAddress, int clientPort) Used only by subclasses. -
Uses of IOException in javax.print
Modifier and TypeMethodDescriptionMultiDoc.getDoc()
Obtain the current doc object.Doc.getPrintData()
Obtains the print data representation object that contains this doc object's piece of print data in the format corresponding to the supported doc flavor.SimpleDoc.getPrintData()
Obtains the print data representation object that contains this doc object's piece of print data in the format corresponding to the supported doc flavor.Doc.getReaderForText()
Obtains a reader for extracting character print data from this doc.SimpleDoc.getReaderForText()
Obtains a reader for extracting character print data from this doc.Doc.getStreamForBytes()
Obtains an input stream for extracting byte print data from this doc.SimpleDoc.getStreamForBytes()
Obtains an input stream for extracting byte print data from this doc.MultiDoc.next()
Go to the multidoc object that contains the next doc object in the sequence of doc objects. -
Uses of IOException in javax.rmi.ssl
Modifier and TypeMethodDescriptionSslRMIServerSocketFactory.createServerSocket
(int port) Creates a server socket that accepts SSL connections configured according to this factory's SSL socket configuration parameters.SslRMIClientSocketFactory.createSocket
(String host, int port) Creates an SSL socket. -
Uses of IOException in javax.security.auth.callback
-
Uses of IOException in javax.security.sasl
Modifier and TypeClassDescriptionclass
This exception is thrown by a SASL mechanism implementation to indicate that the SASL exchange has failed due to reasons related to authentication, such as an invalid identity, passphrase, or key.class
This class represents an error that has occurred when using SASL. -
Uses of IOException in javax.sound.midi
Modifier and TypeMethodDescriptionstatic MidiFileFormat
MidiSystem.getMidiFileFormat
(File file) Obtains the MIDI file format of the specifiedFile
.static MidiFileFormat
MidiSystem.getMidiFileFormat
(InputStream stream) Obtains the MIDI file format of the data in the specified input stream.static MidiFileFormat
MidiSystem.getMidiFileFormat
(URL url) Obtains the MIDI file format of the data in the specified URL.static Sequence
MidiSystem.getSequence
(File file) Obtains a MIDI sequence from the specifiedFile
.static Sequence
MidiSystem.getSequence
(InputStream stream) Obtains a MIDI sequence from the specified input stream.static Sequence
MidiSystem.getSequence
(URL url) Obtains a MIDI sequence from the specified URL.static Soundbank
MidiSystem.getSoundbank
(File file) Constructs aSoundbank
by reading it from the specifiedFile
.static Soundbank
MidiSystem.getSoundbank
(InputStream stream) Constructs a MIDI sound bank by reading it from the specified stream.static Soundbank
MidiSystem.getSoundbank
(URL url) Constructs aSoundbank
by reading it from the specified URL.void
Sequencer.setSequence
(InputStream stream) Sets the current sequence on which the sequencer operates.static int
Writes a stream of bytes representing a file of the MIDI file type indicated to the external file provided.static int
MidiSystem.write
(Sequence in, int fileType, OutputStream out) Writes a stream of bytes representing a file of the MIDI file type indicated to the output stream provided. -
Uses of IOException in javax.sound.midi.spi
Modifier and TypeMethodDescriptionabstract MidiFileFormat
MidiFileReader.getMidiFileFormat
(File file) Obtains the MIDI file format of theFile
provided.abstract MidiFileFormat
MidiFileReader.getMidiFileFormat
(InputStream stream) Obtains the MIDI file format of the input stream provided.abstract MidiFileFormat
MidiFileReader.getMidiFileFormat
(URL url) Obtains the MIDI file format of theURL
provided.abstract Sequence
MidiFileReader.getSequence
(File file) Obtains a MIDI sequence from theFile
provided.abstract Sequence
MidiFileReader.getSequence
(InputStream stream) Obtains a MIDI sequence from the input stream provided.abstract Sequence
MidiFileReader.getSequence
(URL url) Obtains a MIDI sequence from theURL
provided.abstract Soundbank
SoundbankReader.getSoundbank
(File file) Obtains a soundbank object from theFile
provided.abstract Soundbank
SoundbankReader.getSoundbank
(InputStream stream) Obtains a soundbank object from theInputStream
provided.abstract Soundbank
SoundbankReader.getSoundbank
(URL url) Obtains a soundbank object from theURL
provided.abstract int
Writes a stream of bytes representing a MIDI file of the file type indicated to the external file provided.abstract int
MidiFileWriter.write
(Sequence in, int fileType, OutputStream out) Writes a stream of bytes representing a MIDI file of the file type indicated to the output stream provided. -
Uses of IOException in javax.sound.sampled
Modifier and TypeMethodDescriptionint
AudioInputStream.available()
Returns the maximum number of bytes that can be read (or skipped over) from this audio input stream without blocking.void
AudioInputStream.close()
Closes this audio input stream and releases any system resources associated with the stream.static AudioFileFormat
AudioSystem.getAudioFileFormat
(File file) Obtains the audio file format of the specifiedFile
.static AudioFileFormat
AudioSystem.getAudioFileFormat
(InputStream stream) Obtains the audio file format of the provided input stream.static AudioFileFormat
AudioSystem.getAudioFileFormat
(URL url) Obtains the audio file format of the specifiedURL
.static AudioInputStream
AudioSystem.getAudioInputStream
(File file) Obtains an audio input stream from the providedFile
.static AudioInputStream
AudioSystem.getAudioInputStream
(InputStream stream) Obtains an audio input stream from the provided input stream.static AudioInputStream
AudioSystem.getAudioInputStream
(URL url) Obtains an audio input stream from theURL
provided.void
Clip.open
(AudioInputStream stream) Opens the clip with the format and audio data present in the provided audio input stream.int
AudioInputStream.read()
Reads the next byte of data from the audio input stream.int
AudioInputStream.read
(byte[] b) Reads some number of bytes from the audio input stream and stores them into the buffer arrayb
.int
AudioInputStream.read
(byte[] b, int off, int len) Reads up to a specified maximum number of bytes of data from the audio stream, putting them into the given byte array.void
AudioInputStream.reset()
Repositions this audio input stream to the position it had at the time itsmark
method was last invoked.long
AudioInputStream.skip
(long n) Skips over and discards a specified number of bytes from this audio input stream.static int
AudioSystem.write
(AudioInputStream stream, AudioFileFormat.Type fileType, File out) Writes a stream of bytes representing an audio file of the specified file type to the external file provided.static int
AudioSystem.write
(AudioInputStream stream, AudioFileFormat.Type fileType, OutputStream out) Writes a stream of bytes representing an audio file of the specified file type to the output stream provided. -
Uses of IOException in javax.sound.sampled.spi
Modifier and TypeMethodDescriptionabstract AudioFileFormat
AudioFileReader.getAudioFileFormat
(File file) Obtains the audio file format of theFile
provided.abstract AudioFileFormat
AudioFileReader.getAudioFileFormat
(InputStream stream) Obtains the audio file format of the input stream provided.abstract AudioFileFormat
AudioFileReader.getAudioFileFormat
(URL url) Obtains the audio file format of theURL
provided.abstract AudioInputStream
AudioFileReader.getAudioInputStream
(File file) Obtains an audio input stream from theFile
provided.abstract AudioInputStream
AudioFileReader.getAudioInputStream
(InputStream stream) Obtains an audio input stream from the input stream provided.abstract AudioInputStream
AudioFileReader.getAudioInputStream
(URL url) Obtains an audio input stream from theURL
provided.abstract int
AudioFileWriter.write
(AudioInputStream stream, AudioFileFormat.Type fileType, File out) Writes a stream of bytes representing an audio file of the file format indicated to the external file provided.abstract int
AudioFileWriter.write
(AudioInputStream stream, AudioFileFormat.Type fileType, OutputStream out) Writes a stream of bytes representing an audio file of the file type indicated to the output stream provided. -
Uses of IOException in javax.sql.rowset
Modifier and TypeMethodDescriptionvoid
WebRowSet.readXml
(InputStream iStream) Reads a stream based XML input to populate thisWebRowSet
object.void
WebRowSet.writeXml
(OutputStream oStream) Writes the data, properties, and metadata for thisWebRowSet
object to the givenOutputStream
object in XML format.void
WebRowSet.writeXml
(ResultSet rs, OutputStream oStream) Populates thisWebRowSet
object with the contents of the givenResultSet
object and writes its data, properties, and metadata to the givenOutputStream
object in XML format. -
Uses of IOException in javax.swing
Modifier and TypeMethodDescriptionvoid
ProgressMonitorInputStream.close()
OverridesFilterInputStream.close
to close the progress monitor as well as the stream.protected InputStream
Fetches a stream for the given URL, which is about to be loaded by thesetPage
method.void
JEditorPane.read
(InputStream in, Object desc) This method initializes from a stream.int
ProgressMonitorInputStream.read()
OverridesFilterInputStream.read
to update the progress monitor after the read.int
ProgressMonitorInputStream.read
(byte[] b) OverridesFilterInputStream.read
to update the progress monitor after the read.int
ProgressMonitorInputStream.read
(byte[] b, int off, int len) OverridesFilterInputStream.read
to update the progress monitor after the read.void
ProgressMonitorInputStream.reset()
OverridesFilterInputStream.reset
to reset the progress monitor as well as the stream.void
Sets the current URL being displayed.void
Sets the current URL being displayed.long
ProgressMonitorInputStream.skip
(long n) OverridesFilterInputStream.skip
to update the progress monitor after the skip.ModifierConstructorDescriptionJEditorPane
(String url) Creates aJEditorPane
based on a string containing a URL specification.JEditorPane
(URL initialPage) Creates aJEditorPane
based on a specified URL for input. -
Uses of IOException in javax.swing.filechooser
Modifier and TypeMethodDescriptionabstract File
FileSystemView.createNewFolder
(File containingDir) Creates a new folder with a default folder name. -
Uses of IOException in javax.swing.plaf.synth
-
Uses of IOException in javax.swing.text
Modifier and TypeClassDescriptionclass
ChangedCharSetException as the name indicates is an exception thrown when the charset is changed.Modifier and TypeMethodDescriptionprotected void
AbstractWriter.indent()
Does indentation.protected void
AbstractWriter.output
(char[] content, int start, int length) The last stop in writing out content.void
DefaultEditorKit.read
(InputStream in, Document doc, int pos) Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.void
Inserts content from the given stream, which will be treated as plain text.abstract void
EditorKit.read
(InputStream in, Document doc, int pos) Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.abstract void
Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.void
Initializes from a stream.void
StyleContext.readAttributes
(ObjectInputStream in, MutableAttributeSet a) Context-specific handling of reading in attributesstatic void
StyleContext.readAttributeSet
(ObjectInputStream in, MutableAttributeSet a) Reads a set of attributes from the given object input stream that have been previously written out withwriteAttributeSet
.protected void
Writes out text.protected abstract void
AbstractWriter.write()
This abstract method needs to be implemented by subclasses.protected void
AbstractWriter.write
(char ch) Writes out a character.protected void
AbstractWriter.write
(char[] chars, int startIndex, int length) All write methods call into this one.protected void
Writes out a string.void
DefaultEditorKit.write
(OutputStream out, Document doc, int pos, int len) Writes content from a document to the given stream in a format appropriate for this kind of content handler.void
Writes content from a document to the given stream as plain text.abstract void
EditorKit.write
(OutputStream out, Document doc, int pos, int len) Writes content from a document to the given stream in a format appropriate for this kind of content handler.abstract void
Writes content from a document to the given stream in a format appropriate for this kind of content handler.void
Stores the contents of the model into the given stream.protected void
AbstractWriter.writeAttributes
(AttributeSet attr) Writes out the set of attributes as " <name>=<value>" pairs.void
StyleContext.writeAttributes
(ObjectOutputStream out, AttributeSet a) Context-specific handling of writing out attributesstatic void
StyleContext.writeAttributeSet
(ObjectOutputStream out, AttributeSet a) Writes a set of attributes to the given object stream for the purpose of serialization.protected void
AbstractWriter.writeLineSeparator()
Writes the line separator. -
Uses of IOException in javax.swing.text.html
Modifier and TypeMethodDescriptionprotected void
HTMLWriter.closeOutUnwantedEmbeddedTags
(AttributeSet attr) Searches the attribute set and for each tag that is stored in the tag vector.protected void
Writes out comments.protected void
Writes out all empty elements (all tags that have no corresponding end tag).protected void
MinimalHTMLWriter.endFontTag()
This is no longer used, instead <span> will be written out.protected void
Writes out an end tag for the element.void
HTMLDocument.insertAfterEnd
(Element elem, String htmlText) Inserts the HTML specified as a string after the end of the given element.void
HTMLDocument.insertAfterStart
(Element elem, String htmlText) Inserts the HTML specified as a string at the start of the element.void
HTMLDocument.insertBeforeEnd
(Element elem, String htmlText) Inserts the HTML specified as a string at the end of the element.void
HTMLDocument.insertBeforeStart
(Element elem, String htmlText) Inserts the HTML specified as a string before the start of the given element.void
HTMLEditorKit.insertHTML
(HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag insertTag) Inserts HTML into an existing document.void
Loads a set of rules that have been specified in terms of CSS1 grammar.protected void
HTMLWriter.output
(char[] chars, int start, int length) This method is overriden to map any character entities, such as < to <.abstract void
HTMLEditorKit.Parser.parse
(Reader r, HTMLEditorKit.ParserCallback cb, boolean ignoreCharSet) Parse the given stream and drive the given callback with the results of the parse.void
Inserts content from the given stream.protected void
HTMLWriter.selectContent
(AttributeSet attr) Writes out the content of the SELECT form element.void
HTMLDocument.setInnerHTML
(Element elem, String htmlText) Replaces the children of the given element with the contents specified as an HTML string.void
HTMLDocument.setOuterHTML
(Element elem, String htmlText) Replaces the given element in the parent with the contents specified as an HTML string.protected void
MinimalHTMLWriter.startFontTag
(String style) This is no longer used, instead <span> will be written out.protected void
Writes out a start tag for the element.protected void
Writes out text.protected void
Writes out text.protected void
HTMLWriter.textAreaContent
(AttributeSet attr) Writes out text that is contained in a TEXTAREA form element.void
Write content from a document to the given stream in a format appropriate for this kind of content handler.void
HTMLWriter.write()
Iterates over the Element tree and controls the writing out of all the tags and its attributes.void
MinimalHTMLWriter.write()
Generates HTML output from a StyledDocument.protected void
HTMLWriter.writeAttributes
(AttributeSet attr) Writes out the attribute set.protected void
MinimalHTMLWriter.writeAttributes
(AttributeSet attr) Writes out all the attributes for the following types: StyleConstants.ParagraphConstants, StyleConstants.CharacterConstants, StyleConstants.FontConstants, StyleConstants.ColorConstants.protected void
MinimalHTMLWriter.writeBody()
Iterates over the elements in the document and processes elements based on whether they are branch elements or leaf elements.protected void
MinimalHTMLWriter.writeComponent
(Element elem) Responsible for handling Component Elements; deliberately unimplemented.protected void
MinimalHTMLWriter.writeContent
(Element elem, boolean needsIndenting) Writes out the attribute set in an HTML-compliant manner.protected void
HTMLWriter.writeEmbeddedTags
(AttributeSet attr) Searches for embedded tags in the AttributeSet and writes them out.protected void
MinimalHTMLWriter.writeEndParagraph()
Emits an end tag for a <p> tag.protected void
MinimalHTMLWriter.writeEndTag
(String endTag) Writes out an end tag appropriately indented.protected void
MinimalHTMLWriter.writeHeader()
Writes out the <head> and <style> tags, and then invokes writeStyles() to write out all the named styles as the content of the <style> tag.protected void
MinimalHTMLWriter.writeHTMLTags
(AttributeSet attr) Generates bold <b>, italic <i>, and <u> tags for the text based on its attribute settings.protected void
MinimalHTMLWriter.writeImage
(Element elem) Responsible for handling Icon Elements; deliberately unimplemented.protected void
Responsible for writing out other non-text leaf elements.protected void
HTMLWriter.writeLineSeparator()
Writes the line separator.protected void
MinimalHTMLWriter.writeNonHTMLAttributes
(AttributeSet attr) Writes out the remaining character-level attributes (attributes other than bold, italic, and underline) in an HTML-compliant way.protected void
HTMLWriter.writeOption
(Option option) Writes out the content of the Option form element.protected void
MinimalHTMLWriter.writeStartParagraph
(Element elem) Emits the start tag for a paragraph.protected void
MinimalHTMLWriter.writeStartTag
(String tag) Writes out a start tag appropriately indented.protected void
MinimalHTMLWriter.writeStyles()
Writes out all the named styles as the content of the <style> tag. -
Uses of IOException in javax.swing.text.html.parser
Modifier and TypeMethodDescriptionstatic DTD
Returns a DTD with the specifiedname
.void
DocumentParser.parse
(Reader in, HTMLEditorKit.ParserCallback callback, boolean ignoreCharSet) Parse an HTML stream, given a DTD.void
Parse an HTML stream, given a DTD.void
ParserDelegator.parse
(Reader r, HTMLEditorKit.ParserCallback cb, boolean ignoreCharSet) Parser.parseDTDMarkup()
Parses the Document Type Declaration markup declaration.protected boolean
Parser.parseMarkupDeclarations
(StringBuffer strBuff) Parse markup declarations.void
DTD.read
(DataInputStream in) Recreates a DTD from an archived format. -
Uses of IOException in javax.swing.text.rtf
Modifier and TypeMethodDescriptionvoid
RTFEditorKit.read
(InputStream in, Document doc, int pos) Insert content from the given stream which is expected to be in a format appropriate for this kind of content handler.void
Insert content from the given stream, which will be treated as plain text.void
RTFEditorKit.write
(OutputStream out, Document doc, int pos, int len) Write content from a document to the given stream in a format appropriate for this kind of content handler.void
Write content from a document to the given stream as plain text. -
Uses of IOException in javax.tools
Modifier and TypeMethodDescriptionvoid
ForwardingJavaFileManager.close()
void
JavaFileManager.close()
Releases any resources opened by this file manager directly or indirectly.boolean
ForwardingJavaFileManager.contains
(JavaFileManager.Location location, FileObject fo) default boolean
JavaFileManager.contains
(JavaFileManager.Location location, FileObject fo) Determines whether or not a given file object is "contained in" a specified location.void
ForwardingJavaFileManager.flush()
void
JavaFileManager.flush()
Flushes any resources opened for output by this file manager directly or indirectly.FileObject.getCharContent
(boolean ignoreEncodingErrors) Returns the character content of this file object, if available.ForwardingFileObject.getCharContent
(boolean ignoreEncodingErrors) SimpleJavaFileObject.getCharContent
(boolean ignoreEncodingErrors) This implementation always throws UnsupportedOperationException.ForwardingJavaFileManager.getFileForInput
(JavaFileManager.Location location, String packageName, String relativeName) JavaFileManager.getFileForInput
(JavaFileManager.Location location, String packageName, String relativeName) Returns a file object for input representing the specified relative name in the specified package in the given package-oriented location.ForwardingJavaFileManager.getFileForOutput
(JavaFileManager.Location location, String packageName, String relativeName, FileObject sibling) JavaFileManager.getFileForOutput
(JavaFileManager.Location location, String packageName, String relativeName, FileObject sibling) Returns a file object for output representing the specified relative name in the specified package in the given location.ForwardingJavaFileManager.getJavaFileForInput
(JavaFileManager.Location location, String className, JavaFileObject.Kind kind) JavaFileManager.getJavaFileForInput
(JavaFileManager.Location location, String className, JavaFileObject.Kind kind) Returns a file object for input representing the specified class of the specified kind in the given package-oriented location.ForwardingJavaFileManager.getJavaFileForOutput
(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling) JavaFileManager.getJavaFileForOutput
(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling) Returns a file object for output representing the specified class of the specified kind in the given package-oriented location.ForwardingJavaFileManager.getLocationForModule
(JavaFileManager.Location location, String moduleName) ForwardingJavaFileManager.getLocationForModule
(JavaFileManager.Location location, JavaFileObject fo) default JavaFileManager.Location
JavaFileManager.getLocationForModule
(JavaFileManager.Location location, String moduleName) Gets a location for a named module within a location, which may be either a module-oriented location or an output location.default JavaFileManager.Location
JavaFileManager.getLocationForModule
(JavaFileManager.Location location, JavaFileObject fo) Gets a location for the module containing a specific file to be found within a location, which may be either a module-oriented location or an output location.<S> ServiceLoader<S>
ForwardingJavaFileManager.getServiceLoader
(JavaFileManager.Location location, Class<S> service) default <S> ServiceLoader<S>
JavaFileManager.getServiceLoader
(JavaFileManager.Location location, Class<S> service) Get a service loader for a specific service class from a given location.ForwardingJavaFileManager.inferModuleName
(JavaFileManager.Location location) default String
JavaFileManager.inferModuleName
(JavaFileManager.Location location) Infer the name of the module from its location, as returned bygetLocationForModule
orlistModuleLocations
.ForwardingJavaFileManager.list
(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse) JavaFileManager.list
(JavaFileManager.Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse) Lists all file objects matching the given criteria in the given package-oriented location.ForwardingJavaFileManager.listLocationsForModules
(JavaFileManager.Location location) default Iterable<Set<JavaFileManager.Location>>
JavaFileManager.listLocationsForModules
(JavaFileManager.Location location) Lists the locations for all the modules in a module-oriented location or an output location.FileObject.openInputStream()
Returns an InputStream for this file object.ForwardingFileObject.openInputStream()
SimpleJavaFileObject.openInputStream()
This implementation always throws UnsupportedOperationException.FileObject.openOutputStream()
Returns an OutputStream for this file object.ForwardingFileObject.openOutputStream()
SimpleJavaFileObject.openOutputStream()
This implementation always throws UnsupportedOperationException.FileObject.openReader
(boolean ignoreEncodingErrors) Returns a reader for this object.ForwardingFileObject.openReader
(boolean ignoreEncodingErrors) SimpleJavaFileObject.openReader
(boolean ignoreEncodingErrors) Wraps the result of SimpleJavaFileObject.getCharContent(boolean) in a Reader.FileObject.openWriter()
Returns a Writer for this file object.ForwardingFileObject.openWriter()
SimpleJavaFileObject.openWriter()
Wraps the result of openOutputStream in a Writer.void
StandardJavaFileManager.setLocation
(JavaFileManager.Location location, Iterable<? extends File> files) Associates the given search path with the given location.default void
StandardJavaFileManager.setLocationForModule
(JavaFileManager.Location location, String moduleName, Collection<? extends Path> paths) Associates the given search path with the given module and location, which must be a module-oriented or output location.default void
StandardJavaFileManager.setLocationFromPaths
(JavaFileManager.Location location, Collection<? extends Path> paths) Associates the given search path with the given location. -
Uses of IOException in javax.xml.parsers
Modifier and TypeMethodDescriptionParse the content of the given file as an XML document and return a new DOMDocument
object.DocumentBuilder.parse
(InputStream is) Parse the content of the givenInputStream
as an XML document and return a new DOMDocument
object.DocumentBuilder.parse
(InputStream is, String systemId) Parse the content of the givenInputStream
as an XML document and return a new DOMDocument
object.Parse the content of the given URI as an XML document and return a new DOMDocument
object.abstract Document
DocumentBuilder.parse
(InputSource is) Parse the content of the given input source as an XML document and return a new DOMDocument
object.void
SAXParser.parse
(File f, HandlerBase hb) Parse the content of the file specified as XML using the specifiedHandlerBase
.void
SAXParser.parse
(File f, DefaultHandler dh) Parse the content of the file specified as XML using the specifiedDefaultHandler
.void
SAXParser.parse
(InputStream is, HandlerBase hb) Parse the content of the givenInputStream
instance as XML using the specifiedHandlerBase
.void
SAXParser.parse
(InputStream is, HandlerBase hb, String systemId) Parse the content of the givenInputStream
instance as XML using the specifiedHandlerBase
.void
SAXParser.parse
(InputStream is, DefaultHandler dh) Parse the content of the givenInputStream
instance as XML using the specifiedDefaultHandler
.void
SAXParser.parse
(InputStream is, DefaultHandler dh, String systemId) Parse the content of the givenInputStream
instance as XML using the specifiedDefaultHandler
.void
SAXParser.parse
(String uri, HandlerBase hb) Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specifiedHandlerBase
.void
SAXParser.parse
(String uri, DefaultHandler dh) Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specifiedDefaultHandler
.void
SAXParser.parse
(InputSource is, HandlerBase hb) Parse the content givenInputSource
as XML using the specifiedHandlerBase
.void
SAXParser.parse
(InputSource is, DefaultHandler dh) Parse the content givenInputSource
as XML using the specifiedDefaultHandler
. -
Uses of IOException in javax.xml.validation
-
Uses of IOException in jdk.incubator.foreign
Modifier and TypeMethodDescriptionstatic MemorySegment
MemorySegment.mapFile
(Path path, long bytesOffset, long bytesSize, FileChannel.MapMode mapMode, ResourceScope scope) Creates a new mapped memory segment that models a memory-mapped region of a file from a given path. -
Uses of IOException in jdk.jfr
Modifier and TypeMethodDescriptionstatic Configuration
Reads a configuration from a character stream.static Configuration
Reads a configuration from a file.void
Writes recording data to a file.static Configuration
Configuration.getConfiguration
(String name) Returns a predefined configuration.Creates a data stream for a specified interval.void
Recording.setDestination
(Path destination) Sets a location where data is written on recording stop, ornull
if data is not to be dumped. -
Uses of IOException in jdk.jfr.consumer
Modifier and TypeMethodDescriptionvoid
RecordingFile.close()
Closes this recording file and releases any system resources that are associated with it.void
Writes recording data to a file.static EventStream
Creates an event stream from a file.static EventStream
EventStream.openRepository()
Creates a stream from the repository of the current Java Virtual Machine (JVM).static EventStream
EventStream.openRepository
(Path directory) Creates an event stream from a disk repository.static List<RecordedEvent>
RecordingFile.readAllEvents
(Path path) Returns a list of all events in a file.RecordingFile.readEvent()
Reads the next event in the recording.RecordingFile.readEventTypes()
Returns a list of all event types in this recording. -
Uses of IOException in jdk.jshell.execution
Modifier and TypeMethodDescriptionstatic void
Util.forwardExecutionControlAndIO
(ExecutionControl ec, InputStream inStream, OutputStream outStream, Map<String, Consumer<OutputStream>> outputStreamMap, Map<String, Consumer<InputStream>> inputStreamMap) Forward commands from the input to the specifiedExecutionControl
instance, then responses back on the output.JdiExecutionControlProvider.generate
(ExecutionEnv env, Map<String, String> parameters) static ExecutionControl
Util.remoteInputOutput
(InputStream input, OutputStream output, Map<String, OutputStream> outputStreamMap, Map<String, InputStream> inputStreamMap, BiFunction<ObjectInput, ObjectOutput, ExecutionControl> factory) Creates an ExecutionControl for given packetized input and output. -
Uses of IOException in jdk.management.jfr
Modifier and TypeMethodDescriptionvoid
FlightRecorderMXBean.closeRecording
(long recordingId) Closes the recording with the specified ID and releases any system resources that are associated with the recording.void
FlightRecorderMXBean.closeStream
(long streamId) Closes the recording stream with the specified ID and releases any system resources that are associated with the stream.void
Writes recording data to the specified file.void
Writes recording data to a file.long
FlightRecorderMXBean.openStream
(long recordingId, Map<String, String> streamOptions) Opens a data stream for the recording with the specified ID, or0
to get data irrespective of recording.byte[]
FlightRecorderMXBean.readStream
(long streamId) Reads a portion of data from the stream with the specified ID, or returnsnull
if no more data is available.ModifierConstructorDescriptionRemoteRecordingStream
(MBeanServerConnection connection) Creates an event stream that operates against aMBeanServerConnection
that has a registeredFlightRecorderMXBean
.RemoteRecordingStream
(MBeanServerConnection connection, Path directory) Creates an event stream that operates against aMBeanServerConnection
that has a registeredFlightRecorderMXBean
. -
Uses of IOException in jdk.net
Modifier and TypeMethodDescriptionstatic <T> T
Sockets.getOption
(DatagramSocket s, SocketOption<T> name) Deprecated.useDatagramSocket.getOption(SocketOption)
instead.static <T> T
Sockets.getOption
(ServerSocket s, SocketOption<T> name) Deprecated.useServerSocket.getOption(SocketOption)
instead.static <T> T
Sockets.getOption
(Socket s, SocketOption<T> name) Deprecated.useSocket.getOption(SocketOption)
instead.static <T> void
Sockets.setOption
(DatagramSocket s, SocketOption<T> name, T value) Deprecated.useDatagramSocket.setOption(SocketOption, Object)
instead.static <T> void
Sockets.setOption
(ServerSocket s, SocketOption<T> name, T value) Deprecated.useServerSocket.setOption(SocketOption, Object)
instead.static <T> void
Sockets.setOption
(Socket s, SocketOption<T> name, T value) Deprecated.useSocket.setOption(SocketOption, Object)
instead. -
Uses of IOException in jdk.nio
Modifier and TypeMethodDescriptionvoid
Channels.SelectableChannelCloser.implCloseChannel
(SelectableChannel sc) Closes a selectable channel.void
Channels.SelectableChannelCloser.implReleaseChannel
(SelectableChannel sc) Release the file descriptor and any resources for a selectable channel that closed while registered with one or moreSelector
s. -
Uses of IOException in org.xml.sax
Modifier and TypeMethodDescriptionvoid
Deprecated.Parse an XML document from a system identifier (URI).void
Parser.parse
(InputSource source) Deprecated.Parse an XML document.void
Parse an XML document from a system identifier (URI).void
XMLReader.parse
(InputSource input) Parse an XML document.EntityResolver.resolveEntity
(String publicId, String systemId) Allow the application to resolve external entities. -
Uses of IOException in org.xml.sax.ext
Modifier and TypeMethodDescriptionDefaultHandler2.getExternalSubset
(String name, String baseURI) Tells the parser that if no external subset has been declared in the document text, none should be used.EntityResolver2.getExternalSubset
(String name, String baseURI) Allows applications to provide an external subset for documents that don't explicitly define one.DefaultHandler2.resolveEntity
(String publicId, String systemId) InvokesEntityResolver2.resolveEntity()
with null entity name and base URI.DefaultHandler2.resolveEntity
(String name, String publicId, String baseURI, String systemId) Tells the parser to resolve the systemId against the baseURI and read the entity text from that resulting absolute URI.EntityResolver2.resolveEntity
(String name, String publicId, String baseURI, String systemId) Allows applications to map references to external entities into input sources, or tell the parser it should use conventional URI resolution. -
Uses of IOException in org.xml.sax.helpers
Modifier and TypeMethodDescriptionvoid
Parse an XML document.void
ParserAdapter.parse
(InputSource input) Parse an XML document.void
Parse a document.void
XMLFilterImpl.parse
(InputSource input) Parse a document.void
Parse the document.void
XMLReaderAdapter.parse
(InputSource input) Parse the document.DefaultHandler.resolveEntity
(String publicId, String systemId) Resolve an external entity.XMLFilterImpl.resolveEntity
(String publicId, String systemId) Filter an external entity resolution.
Beans.instantiate(ClassLoader, String, BeanContext)
, because the Applet API is deprecated.