Uses of Class
java.io.IOException
Packages that use IOException
Package
Description
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 JDK extensions 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 classfile parsing, generation, and transformation library.
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.
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.
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.jdi
Methods in com.sun.jdi that throw IOExceptionModifier 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
Subclasses of IOException in com.sun.jdi.connectModifier and TypeClassDescriptionclassThis 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.Methods in com.sun.jdi.connect that throw IOExceptionModifier 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.voidListeningConnector.stopListening(Map<String, ? extends Connector.Argument> arguments) Cancels listening for connections. -
Uses of IOException in com.sun.jdi.connect.spi
Subclasses of IOException in com.sun.jdi.connect.spiModifier and TypeClassDescriptionclassThis exception may be thrown as a result of an asynchronous close of aConnectionwhile an I/O operation is in progress.Methods in com.sun.jdi.connect.spi that throw IOExceptionModifier and TypeMethodDescriptionabstract ConnectionTransportService.accept(TransportService.ListenKey listenKey, long acceptTimeout, long handshakeTimeout) Accept a connection from a target VM.abstract ConnectionAttaches to the specified address.abstract voidConnection.close()Closes this connection.abstract byte[]Connection.readPacket()Reads a packet from the target VM.abstract TransportService.ListenKeyTransportService.startListening()Listens on an address chosen by the transport service.abstract TransportService.ListenKeyTransportService.startListening(String address) Listens on the specified address for inbound connections.abstract voidTransportService.stopListening(TransportService.ListenKey listenKey) Stop listening for inbound connections.abstract voidConnection.writePacket(byte[] pkt) Writes a packet to the target VM. -
Uses of IOException in com.sun.management
Methods in com.sun.management that throw IOExceptionModifier and TypeMethodDescriptionvoidDumps the heap to theoutputFilefile in the same format as the hprof heap dump.default voidHotSpotDiagnosticMXBean.dumpThreads(String outputFile, HotSpotDiagnosticMXBean.ThreadDumpFormat format) Generate a thread dump to the given file in the given format. -
Uses of IOException in com.sun.net.httpserver
Methods in com.sun.net.httpserver that throw IOExceptionModifier and TypeMethodDescriptionabstract voidHttpServer.bind(InetSocketAddress addr, int backlog) Binds a currently unboundHttpServerto the given address and port number.static HttpServerHttpServer.create()Creates aHttpServerinstance which is initially not bound to any local address/port.static HttpServerHttpServer.create(InetSocketAddress addr, int backlog) Create aHttpServerinstance which will bind to the specifiedInetSocketAddress(IP address and port number).static HttpServerHttpServer.create(InetSocketAddress addr, int backlog, String path, HttpHandler handler, Filter... filters) Creates anHttpServerinstance with an initial context.static HttpsServerHttpsServer.create()Creates aHttpsServerinstance which is initially not bound to any local address/port.static HttpsServerHttpsServer.create(InetSocketAddress addr, int backlog) Create aHttpsServerinstance which will bind to the specifiedInetSocketAddress(IP address and port number).static HttpsServerHttpsServer.create(InetSocketAddress addr, int backlog, String path, HttpHandler handler, Filter... filters) Creates anHttpsServerinstance with an initial context.voidFilter.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 voidFilter.doFilter(HttpExchange exchange, Filter.Chain chain) Asks this filter to pre/post-process the given exchange.voidHttpHandler.handle(HttpExchange exchange) Handle the given request and generate an appropriate response.abstract voidHttpExchange.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
Methods in com.sun.net.httpserver.spi that throw IOExceptionModifier and TypeMethodDescriptionabstract HttpServerHttpServerProvider.createHttpServer(InetSocketAddress addr, int backlog) creates a HttpServer from this providerabstract HttpsServerHttpServerProvider.createHttpsServer(InetSocketAddress addr, int backlog) creates a HttpsServer from this provider -
Uses of IOException in com.sun.nio.sctp
Methods in com.sun.nio.sctp that throw IOExceptionModifier and TypeMethodDescriptionabstract SctpChannelSctpServerChannel.accept()Accepts an association on this channel's socket.abstract AssociationSctpChannel.association()Returns the association on this channel's socket.abstract Set<Association> SctpMultiChannel.associations()Returns the open associations on this channel's socket.abstract SctpChannelSctpChannel.bind(SocketAddress local) Binds the channel's socket to a local address.final SctpMultiChannelSctpMultiChannel.bind(SocketAddress local) Binds the channel's socket to a local address and configures the socket to listen for connections.abstract SctpMultiChannelSctpMultiChannel.bind(SocketAddress local, int backlog) Binds the channel's socket to a local address and configures the socket to listen for connections.final SctpServerChannelSctpServerChannel.bind(SocketAddress local) Binds the channel's socket to a local address and configures the socket to listen for associations.abstract SctpServerChannelSctpServerChannel.bind(SocketAddress local, int backlog) Binds the channel's socket to a local address and configures the socket to listen for associations.abstract SctpChannelSctpChannel.bindAddress(InetAddress address) Adds the given address to the bound addresses for the channel's socket.abstract SctpMultiChannelSctpMultiChannel.bindAddress(InetAddress address) Adds the given address to the bound addresses for the channel's socket.abstract SctpServerChannelSctpServerChannel.bindAddress(InetAddress address) Adds the given address to the bound addresses for the channel's socket.abstract SctpChannelSctpMultiChannel.branch(Association association) Branches off an association.abstract booleanSctpChannel.connect(SocketAddress remote) Connects this channel's socket.abstract booleanSctpChannel.connect(SocketAddress remote, int maxOutStreams, int maxInStreams) Connects this channel's socket.abstract booleanSctpChannel.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> TSctpChannel.getOption(SctpSocketOption<T> name) Returns the value of a socket option.abstract <T> TSctpMultiChannel.getOption(SctpSocketOption<T> name, Association association) Returns the value of a socket option.abstract <T> TSctpServerChannel.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 SctpChannelSctpChannel.open()Opens an SCTP channel.static SctpChannelSctpChannel.open(SocketAddress remote, int maxOutStreams, int maxInStreams) Opens an SCTP channel and connects it to a remote address.static SctpMultiChannelSctpMultiChannel.open()Opens an SCTP multi channel.static SctpServerChannelSctpServerChannel.open()Opens an SCTP server channel.abstract <T> MessageInfoSctpChannel.receive(ByteBuffer dst, T attachment, NotificationHandler<T> handler) Receives a message into the given buffer and/or handles a notification.abstract <T> MessageInfoSctpMultiChannel.receive(ByteBuffer buffer, T attachment, NotificationHandler<T> handler) Receives a message and/or handles a notification via this channel.abstract intSctpChannel.send(ByteBuffer src, MessageInfo messageInfo) Sends a message via this channel.abstract intSctpMultiChannel.send(ByteBuffer buffer, MessageInfo messageInfo) Sends a message via this channel.abstract <T> SctpChannelSctpChannel.setOption(SctpSocketOption<T> name, T value) Sets the value of a socket option.abstract <T> SctpMultiChannelSctpMultiChannel.setOption(SctpSocketOption<T> name, T value, Association association) Sets the value of a socket option.abstract <T> SctpServerChannelSctpServerChannel.setOption(SctpSocketOption<T> name, T value) Sets the value of a socket option.abstract SctpChannelSctpChannel.shutdown()Shutdown a connection without closing the channel.abstract SctpMultiChannelSctpMultiChannel.shutdown(Association association) Shutdown an association without closing the channel.abstract SctpChannelSctpChannel.unbindAddress(InetAddress address) Removes the given address from the bound addresses for the channel's socket.abstract SctpMultiChannelSctpMultiChannel.unbindAddress(InetAddress address) Removes the given address from the bound addresses for the channel's socket.abstract SctpServerChannelSctpServerChannel.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
Methods in com.sun.security.auth.callback that throw IOException -
Uses of IOException in com.sun.source.util
Methods in com.sun.source.util that throw IOExceptionModifier and TypeMethodDescriptionJavacTask.analyze()Completes all analysis.abstract Iterable<? extends JavaFileObject> JavacTask.generate()Generates code.abstract DocCommentTreeDocTrees.getDocCommentTree(Element e, String relativePath) Returns the doc comment tree of the given file, which must be of one of the supported file types, and 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
Subclasses of IOException in com.sun.tools.attachModifier and TypeClassDescriptionclassException type to signal that an attach operation failed in the target VM.Methods in com.sun.tools.attach that throw IOExceptionModifier and TypeMethodDescriptionstatic VirtualMachineVirtualMachine.attach(VirtualMachineDescriptor vmd) Attaches to a Java virtual machine.static VirtualMachineAttaches to a Java virtual machine.abstract voidVirtualMachine.detach()Detach from the virtual machine.abstract PropertiesVirtualMachine.getAgentProperties()Returns the current agent properties in the target virtual machine.abstract PropertiesVirtualMachine.getSystemProperties()Returns the current system properties in the target virtual machine.voidLoads an agent.abstract voidLoads an agent.voidVirtualMachine.loadAgentLibrary(String agentLibrary) Loads an agent library.abstract voidVirtualMachine.loadAgentLibrary(String agentLibrary, String options) Loads an agent library.voidVirtualMachine.loadAgentPath(String agentPath) Load a native agent library by full pathname.abstract voidVirtualMachine.loadAgentPath(String agentPath, String options) Load a native agent library by full pathname.abstract StringVirtualMachine.startLocalManagementAgent()Starts the local JMX management agent in the target virtual machine.abstract voidVirtualMachine.startManagementAgent(Properties agentProperties) Starts the JMX management agent in the target virtual machine. -
Uses of IOException in com.sun.tools.attach.spi
Methods in com.sun.tools.attach.spi that throw IOExceptionModifier and TypeMethodDescriptionAttachProvider.attachVirtualMachine(VirtualMachineDescriptor vmd) Attaches to a Java virtual machine.abstract VirtualMachineAttachProvider.attachVirtualMachine(String id) Attaches to a Java virtual machine. -
Uses of IOException in java.applet
Methods in java.applet that throw IOExceptionModifier and TypeMethodDescriptionvoidAppletContext.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
Methods in java.awt that throw IOExceptionModifier and TypeMethodDescriptionvoidLaunches the default browser to display aURI.static FontFont.createFont(int fontFormat, File fontFile) Returns a newFontusing the specified font type and the specified font file.static FontFont.createFont(int fontFormat, InputStream fontStream) Returns a newFontusing the specified font type and input data.static Font[]Font.createFonts(File fontFile) Returns a new array ofFontdecoded from the specified file.static Font[]Font.createFonts(InputStream fontStream) Returns a new array ofFontdecoded from the specified stream.voidLaunches the associated editor application and opens a file for editing.voidDesktop.mail()Launches the mail composing window of the user default mail client.voidLaunches the mail composing window of the user default mail client, filling the message fields specified by amailto:URI.voidLaunches the associated application to open the file.voidPrints a file with the native desktop printing facility, using the associated application's print command.protected static voidAWTEventMulticaster.save(ObjectOutputStream s, String k, EventListener l) Saves a Serializable listener chain to a serialization stream.protected voidAWTEventMulticaster.saveInternal(ObjectOutputStream s, String k) Serialization support.voidSplashScreen.setImageURL(URL imageURL) Changes the splash screen image. -
Uses of IOException in java.awt.color
Methods in java.awt.color that throw IOExceptionModifier and TypeMethodDescriptionstatic ICC_ProfileICC_Profile.getInstance(InputStream s) Constructs anICC_Profilecorresponding to the data in anInputStream.static ICC_ProfileICC_Profile.getInstance(String fileName) Constructs anICC_Profilecorresponding to the data in a file.voidICC_Profile.write(OutputStream s) Write thisICC_Profileto anOutputStream.voidWrite thisICC_Profileto a file. -
Uses of IOException in java.awt.datatransfer
Methods in java.awt.datatransfer that throw IOExceptionModifier 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 requestedDataFlavorif possible.Transferable.getTransferData(DataFlavor flavor) Returns an object which represents the data to be transferred.voidDataFlavor.readExternal(ObjectInput is) Restores thisDataFlavorfrom a Serialized state.voidDataFlavor.writeExternal(ObjectOutput os) Serializes thisDataFlavor. -
Uses of IOException in java.awt.dnd
Methods in java.awt.dnd that throw IOExceptionModifier 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
Methods in java.awt.print that return IOExceptionModifier and TypeMethodDescriptionPrinterIOException.getIOException()Returns theIOExceptionthat terminated the print job.Constructors in java.awt.print with parameters of type IOExceptionModifierConstructorDescriptionPrinterIOException(IOException exception) Constructs a newPrinterIOExceptionwith the string representation of the specifiedIOException. -
Uses of IOException in java.beans
Methods in java.beans that throw IOExceptionModifier and TypeMethodDescriptionstatic ObjectBeans.instantiate(ClassLoader cls, String beanName) Instantiate a JavaBean.static ObjectBeans.instantiate(ClassLoader cls, String beanName, BeanContext beanContext) Deprecated, for removal: This API element is subject to removal in a future version.this method will be removed when java.beans.beancontext is removedstatic ObjectBeans.instantiate(ClassLoader cls, String beanName, BeanContext beanContext, AppletInitializer initializer) Deprecated, for removal: This API element is subject to removal in a future version.It is recommended to useBeans.instantiate(ClassLoader, String, BeanContext), because the Applet API is deprecated. -
Uses of IOException in java.beans.beancontext
Methods in java.beans.beancontext that throw IOExceptionModifier and TypeMethodDescriptionprotected voidBeanContextServicesSupport.bcsPreDeserializationHook(ObjectInputStream ois) Deprecated, for removal: This API element is subject to removal in a future version.called from BeanContextSupport readObject before it deserializes the children ...protected voidBeanContextSupport.bcsPreDeserializationHook(ObjectInputStream ois) Deprecated, for removal: This API element is subject to removal in a future version.called by readObject after defaultReadObject() but prior to deserialization of any children.protected voidBeanContextServicesSupport.bcsPreSerializationHook(ObjectOutputStream oos) Deprecated, for removal: This API element is subject to removal in a future version.called from BeanContextSupport writeObject before it serializes the children ...protected voidBeanContextSupport.bcsPreSerializationHook(ObjectOutputStream oos) Deprecated, for removal: This API element is subject to removal in a future version.called by writeObject after defaultWriteObject() but prior to serialization of currently serializable children.protected final voidBeanContextSupport.deserialize(ObjectInputStream ois, Collection coll) Deprecated, for removal: This API element is subject to removal in a future version.used by readObject to deserialize a collection.BeanContext.instantiateChild(String beanName) Deprecated, for removal: This API element is subject to removal in a future version.Instantiate the javaBean named as a child of thisBeanContext.BeanContextSupport.instantiateChild(String beanName) Deprecated, for removal: This API element is subject to removal in a future version.The instantiateChild method is a convenience hook in BeanContext to simplify the task of instantiating a Bean, nested, into aBeanContext.final voidBeanContextSupport.readChildren(ObjectInputStream ois) Deprecated, for removal: This API element is subject to removal in a future version.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 voidBeanContextSupport.serialize(ObjectOutputStream oos, Collection<?> coll) Deprecated, for removal: This API element is subject to removal in a future version.Used by writeObject to serialize a Collection.final voidBeanContextSupport.writeChildren(ObjectOutputStream oos) Deprecated, for removal: This API element is subject to removal in a future version.Used to serialize all children of thisBeanContext. -
Uses of IOException in java.io
Subclasses of IOException in java.ioModifier and TypeClassDescriptionclassBase class for character conversion exceptions.classSignals that an end of file or end of stream has been reached unexpectedly during input.classSignals that an attempt to open the file denoted by a specified pathname has failed.classSignals that an I/O operation has been interrupted.classThrown when the Serialization runtime detects one of the following problems with a Class.classIndicates that one or more deserialized objects failed validation tests.classThrown when serialization or deserialization is not active.classThrown when an instance is required to have a Serializable interface.classSuperclass of all exceptions specific to Object Stream classes.classException 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.classThrown when control information that was read from an object stream violates internal consistency checks.classSignals that a sync operation has failed.classThe Character Encoding is not supported.classSignals 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.classSignals that one of the ObjectStreamExceptions was thrown during a write operation.Methods in java.io that return IOExceptionModifier and TypeMethodDescriptionUncheckedIOException.getCause()Returns the cause of this exception.Methods in java.io that throw IOExceptionModifier and TypeMethodDescriptionprotected voidObjectOutputStream.annotateClass(Class<?> cl) Subclasses may implement this method to allow class data to be stored in the stream.protected voidObjectOutputStream.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.intBufferedInputStream.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.intFileInputStream.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.intFilterInputStream.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.intInputStream.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.intLineNumberInputStream.available()Deprecated.Returns the number of bytes that can be read from this input stream without blocking.intObjectInput.available()Returns the number of bytes that can be read without blocking.intObjectInputStream.available()Returns the number of bytes that can be read without blocking.intPipedInputStream.available()Returns the number of bytes that can be read from this input stream without blocking.intPushbackInputStream.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.intSequenceInputStream.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.voidBufferedInputStream.close()Closes this input stream and releases any system resources associated with the stream.voidBufferedReader.close()voidBufferedWriter.close()voidByteArrayInputStream.close()Closing aByteArrayInputStreamhas no effect.voidByteArrayOutputStream.close()Closing aByteArrayOutputStreamhas no effect.voidCloseable.close()Closes this stream and releases any system resources associated with it.voidFileInputStream.close()Closes this file input stream and releases any system resources associated with the stream.voidFileOutputStream.close()Closes this file output stream and releases any system resources associated with this stream.voidFilterInputStream.close()Closes this input stream and releases any system resources associated with the stream.voidFilterOutputStream.close()Closes this output stream and releases any system resources associated with the stream.voidFilterReader.close()voidFilterWriter.close()voidInputStream.close()Closes this input stream and releases any system resources associated with the stream.voidInputStreamReader.close()voidObjectInput.close()Closes the input stream.voidObjectInputStream.close()Closes this input stream and releases any system resources associated with the stream.voidObjectOutput.close()Closes the stream.voidObjectOutputStream.close()Closes the stream.voidOutputStream.close()Closes this output stream and releases any system resources associated with this stream.voidOutputStreamWriter.close()voidPipedInputStream.close()Closes this input stream and releases any system resources associated with the stream.voidPipedOutputStream.close()Closes this piped output stream and releases any system resources associated with this stream.voidPipedReader.close()Closes this piped stream and releases any system resources associated with the stream.voidPipedWriter.close()Closes this piped output stream and releases any system resources associated with this stream.voidPushbackInputStream.close()Closes this input stream and releases any system resources associated with the stream.voidPushbackReader.close()Closes the stream and releases any system resources associated with it.voidRandomAccessFile.close()Closes this random access file stream and releases any system resources associated with the stream.abstract voidReader.close()Closes the stream and releases any system resources associated with it.voidSequenceInputStream.close()Closes this input stream and releases any system resources associated with the stream.voidStringWriter.close()Closing aStringWriterhas no effect.abstract voidWriter.close()Closes the stream, flushing it first.voidPipedInputStream.connect(PipedOutputStream src) Causes this piped input stream to be connected to the piped output streamsrc.voidPipedOutputStream.connect(PipedInputStream snk) Connects this piped output stream to a receiver.voidPipedReader.connect(PipedWriter src) Causes this piped reader to be connected to the piped writersrc.voidPipedWriter.connect(PipedReader snk) Connects this piped writer to a receiver.booleanFile.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 FileFile.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 FileFile.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 booleanReturn true if the named field is defaulted and has no value in this stream.voidObjectInputStream.defaultReadObject()Read the non-static and non-transient fields of the current class from this stream.voidObjectOutputStream.defaultWriteObject()Write the non-static and non-transient fields of the current class to this stream.protected voidObjectOutputStream.drain()Drain any buffered data in ObjectOutputStream.voidBufferedOutputStream.flush()Flushes this buffered output stream.voidBufferedWriter.flush()Flushes the stream.voidDataOutputStream.flush()Flushes this data output stream.voidFilterOutputStream.flush()Flushes this output stream and forces any buffered output bytes to be written out to the stream.voidFilterWriter.flush()Flushes the stream.voidFlushable.flush()Flushes this stream by writing any buffered output to the underlying stream.voidObjectOutput.flush()Flushes the stream.voidObjectOutputStream.flush()Flushes the stream.voidOutputStream.flush()Flushes this output stream and forces any buffered output bytes to be written out.voidOutputStreamWriter.flush()Flushes the stream.voidPipedOutputStream.flush()Flushes this output stream and forces any buffered output bytes to be written out.voidPipedWriter.flush()Flushes this output stream and forces any buffered output characters to be written out.abstract voidWriter.flush()Flushes the stream.abstract booleanGet the value of the named boolean field from the persistent field.abstract byteGet the value of the named byte field from the persistent field.abstract charGet the value of the named char field from the persistent field.abstract doubleGet the value of the named double field from the persistent field.abstract floatGet the value of the named float field from the persistent field.abstract intGet the value of the named int field from the persistent field.abstract longGet the value of the named long field from the persistent field.abstract shortGet the value of the named short field from the persistent field.abstract ObjectGet 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 FileDescriptorFileInputStream.getFD()Returns theFileDescriptorobject that represents the connection to the actual file in the file system being used by thisFileInputStream.final FileDescriptorFileOutputStream.getFD()Returns the file descriptor associated with this stream.final FileDescriptorRandomAccessFile.getFD()Returns the opaque file descriptor object associated with this stream.longRandomAccessFile.getFilePointer()Returns the current offset in this file.longRandomAccessFile.length()Returns the length of this file.voidBufferedReader.mark(int readAheadLimit) Marks the present position in the stream.voidCharArrayReader.mark(int readAheadLimit) Marks the present position in the stream.voidFilterReader.mark(int readAheadLimit) Marks the present position in the stream.voidLineNumberReader.mark(int readAheadLimit) Mark the present position in the stream.voidPushbackReader.mark(int readAheadLimit) Marks the present position in the stream.voidReader.mark(int readAheadLimit) Marks the present position in the stream.voidStringReader.mark(int readAheadLimit) Marks the present position in the stream.voidBufferedWriter.newLine()Writes a line separator.intStreamTokenizer.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.intBufferedInputStream.read()See the general contract of thereadmethod ofInputStream.intBufferedInputStream.read(byte[] b, int off, int len) Reads bytes from this byte-input stream into the specified byte array, starting at the given offset.intBufferedReader.read()Reads a single character.intBufferedReader.read(char[] cbuf, int off, int len) Reads characters into a portion of an array.intCharArrayReader.read()Reads a single character.intCharArrayReader.read(char[] cbuf, int off, int len) Reads characters into a portion of an array.final intDataInputStream.read(byte[] b) Reads some number of bytes from the contained input stream and stores them into the buffer arrayb.final intDataInputStream.read(byte[] b, int off, int len) Reads up tolenbytes of data from the contained input stream into an array of bytes.intFileInputStream.read()Reads a byte of data from this input stream.intFileInputStream.read(byte[] b) Reads up tob.lengthbytes of data from this input stream into an array of bytes.intFileInputStream.read(byte[] b, int off, int len) Reads up tolenbytes of data from this input stream into an array of bytes.intFilterInputStream.read()Reads the next byte of data from the input stream.intFilterInputStream.read(byte[] b) Reads up tob.lengthbytes of data from this input stream into an array of bytes.intFilterInputStream.read(byte[] b, int off, int len) Reads up tolenbytes of data from this input stream into an array of bytes.intFilterReader.read()Reads a single character.intFilterReader.read(char[] cbuf, int off, int len) Reads characters into a portion of an array.abstract intInputStream.read()Reads the next byte of data from the input stream.intInputStream.read(byte[] b) Reads some number of bytes from the input stream and stores them into the buffer arrayb.intInputStream.read(byte[] b, int off, int len) Reads up tolenbytes of data from the input stream into an array of bytes.intInputStreamReader.read()Reads a single character.intInputStreamReader.read(char[] cbuf, int off, int len) Reads characters into a portion of an array.intLineNumberInputStream.read()Deprecated.Reads the next byte of data from this input stream.intLineNumberInputStream.read(byte[] b, int off, int len) Deprecated.Reads up tolenbytes of data from this input stream into an array of bytes.intLineNumberReader.read()Read a single character.intLineNumberReader.read(char[] cbuf, int off, int len) Reads characters into a portion of an array.intObjectInput.read()Reads a byte of data.intObjectInput.read(byte[] b) Reads into an array of bytes.intObjectInput.read(byte[] b, int off, int len) Reads into an array of bytes.intObjectInputStream.read()Reads a byte of data.intObjectInputStream.read(byte[] buf, int off, int len) Reads into an array of bytes.intPipedInputStream.read()Reads the next byte of data from this piped input stream.intPipedInputStream.read(byte[] b, int off, int len) Reads up tolenbytes of data from this piped input stream into an array of bytes.intPipedReader.read()Reads the next character of data from this piped stream.intPipedReader.read(char[] cbuf, int off, int len) Reads characters into a portion of an array.intPushbackInputStream.read()Reads the next byte of data from this input stream.intPushbackInputStream.read(byte[] b, int off, int len) Reads up tolenbytes of data from this input stream into an array of bytes.intPushbackReader.read()Reads a single character.intRandomAccessFile.read()Reads a byte of data from this file.intRandomAccessFile.read(byte[] b) Reads up tob.lengthbytes of data from this file into an array of bytes.intRandomAccessFile.read(byte[] b, int off, int len) Reads up tolenbytes of data from this file into an array of bytes.intReader.read()Reads a single character.intReader.read(char[] cbuf) Reads characters into an array.abstract intReader.read(char[] cbuf, int off, int len) Reads characters into a portion of an array.intReader.read(CharBuffer target) Attempts to read characters into the specified character buffer.intSequenceInputStream.read()Reads the next byte of data from the input stream.intSequenceInputStream.read(byte[] b, int off, int len) Reads up tolenbytes of data from this input stream into an array of bytes.intStringReader.read()Reads a single character.intStringReader.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.booleanDataInput.readBoolean()Reads one input byte and returnstrueif that byte is nonzero,falseif that byte is zero.final booleanDataInputStream.readBoolean()See the general contract of thereadBooleanmethod ofDataInput.booleanObjectInputStream.readBoolean()Reads in a boolean.final booleanRandomAccessFile.readBoolean()Reads abooleanfrom this file.byteDataInput.readByte()Reads and returns one input byte.final byteDataInputStream.readByte()See the general contract of thereadBytemethod ofDataInput.byteObjectInputStream.readByte()Reads an 8-bit byte.final byteRandomAccessFile.readByte()Reads a signed eight-bit value from this file.charDataInput.readChar()Reads two input bytes and returns acharvalue.final charDataInputStream.readChar()See the general contract of thereadCharmethod ofDataInput.charObjectInputStream.readChar()Reads a 16-bit char.final charRandomAccessFile.readChar()Reads a character from this file.protected ObjectStreamClassObjectInputStream.readClassDescriptor()Read a class descriptor from the serialization stream.doubleDataInput.readDouble()Reads eight input bytes and returns adoublevalue.final doubleDataInputStream.readDouble()See the general contract of thereadDoublemethod ofDataInput.doubleObjectInputStream.readDouble()Reads a 64-bit double.final doubleRandomAccessFile.readDouble()Reads adoublefrom this file.voidExternalizable.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.floatDataInput.readFloat()Reads four input bytes and returns afloatvalue.final floatDataInputStream.readFloat()See the general contract of thereadFloatmethod ofDataInput.floatObjectInputStream.readFloat()Reads a 32-bit float.final floatRandomAccessFile.readFloat()Reads afloatfrom this file.voidDataInput.readFully(byte[] b) Reads some bytes from an input stream and stores them into the buffer arrayb.voidDataInput.readFully(byte[] b, int off, int len) Readslenbytes from an input stream.final voidDataInputStream.readFully(byte[] b) See the general contract of thereadFullymethod ofDataInput.final voidDataInputStream.readFully(byte[] b, int off, int len) See the general contract of thereadFullymethod ofDataInput.voidObjectInputStream.readFully(byte[] buf) Reads bytes, blocking until all bytes are read.voidObjectInputStream.readFully(byte[] buf, int off, int len) Reads bytes, blocking until all bytes are read.final voidRandomAccessFile.readFully(byte[] b) Readsb.lengthbytes from this file into the byte array, starting at the current file pointer.final voidRandomAccessFile.readFully(byte[] b, int off, int len) Reads exactlylenbytes from this file into the byte array, starting at the current file pointer.intDataInput.readInt()Reads four input bytes and returns anintvalue.final intDataInputStream.readInt()See the general contract of thereadIntmethod ofDataInput.intObjectInputStream.readInt()Reads a 32-bit int.final intRandomAccessFile.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 StringDataInputStream.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 StringRandomAccessFile.readLine()Reads the next line of text from this file.longDataInput.readLong()Reads eight input bytes and returns alongvalue.final longDataInputStream.readLong()See the general contract of thereadLongmethod ofDataInput.longObjectInputStream.readLong()Reads a 64-bit long.final longRandomAccessFile.readLong()Reads a signed 64-bit integer from this file.byte[]FileInputStream.readNBytes(int len) intInputStream.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 ObjectObjectInputStream.readObject()Read an object from the ObjectInputStream.protected ObjectObjectInputStream.readObjectOverride()This method is called by trusted subclasses of ObjectInputStream that constructed ObjectInputStream using the protected no-arg constructor.shortDataInput.readShort()Reads two input bytes and returns ashortvalue.final shortDataInputStream.readShort()See the general contract of thereadShortmethod ofDataInput.shortObjectInputStream.readShort()Reads a 16-bit short.final shortRandomAccessFile.readShort()Reads a signed 16-bit number from this file.protected voidObjectInputStream.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.intDataInput.readUnsignedByte()Reads one input byte, zero-extends it to typeint, and returns the result, which is therefore in the range0through255.final intDataInputStream.readUnsignedByte()See the general contract of thereadUnsignedBytemethod ofDataInput.intObjectInputStream.readUnsignedByte()Reads an unsigned 8-bit byte.final intRandomAccessFile.readUnsignedByte()Reads an unsigned eight-bit number from this file.intDataInput.readUnsignedShort()Reads two input bytes and returns anintvalue in the range0through65535.final intDataInputStream.readUnsignedShort()See the general contract of thereadUnsignedShortmethod ofDataInput.intObjectInputStream.readUnsignedShort()Reads an unsigned 16-bit short.final intRandomAccessFile.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 StringDataInputStream.readUTF()See the general contract of thereadUTFmethod ofDataInput.static final StringReads from the streamina 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 StringRandomAccessFile.readUTF()Reads in a string from this file.booleanBufferedReader.ready()Tells whether this stream is ready to be read.booleanCharArrayReader.ready()Tells whether this stream is ready to be read.booleanFilterReader.ready()Tells whether this stream is ready to be read.booleanInputStreamReader.ready()Tells whether this stream is ready to be read.booleanPipedReader.ready()Tell whether this stream is ready to be read.booleanPushbackReader.ready()Tells whether this stream is ready to be read.booleanReader.ready()Tells whether this stream is ready to be read.booleanStringReader.ready()Tells whether this stream is ready to be read.protected voidPipedInputStream.receive(int b) Receives a byte of data.protected ObjectObjectOutputStream.replaceObject(Object obj) This method will allow trusted subclasses of ObjectOutputStream to substitute one object for another during serialization.voidBufferedInputStream.reset()See the general contract of theresetmethod ofInputStream.voidBufferedReader.reset()Resets the stream to the most recent mark.voidCharArrayReader.reset()Resets the stream to the most recent mark, or to the beginning if it has never been marked.voidFilterInputStream.reset()Repositions this stream to the position at the time themarkmethod was last called on this input stream.voidFilterReader.reset()Resets the stream.voidInputStream.reset()Repositions this stream to the position at the time themarkmethod was last called on this input stream.voidLineNumberInputStream.reset()Deprecated.Repositions this stream to the position at the time themarkmethod was last called on this input stream.voidLineNumberReader.reset()Reset the stream to the most recent mark.voidObjectOutputStream.reset()Reset will disregard the state of any objects already written to the stream.voidPushbackInputStream.reset()Repositions this stream to the position at the time themarkmethod was last called on this input stream.voidPushbackReader.reset()Resets the stream.voidReader.reset()Resets the stream.voidStringReader.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 ObjectObjectInputStream.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.voidRandomAccessFile.seek(long pos) Sets the file-pointer offset, measured from the beginning of this file, at which the next read or write occurs.voidRandomAccessFile.setLength(long newLength) Sets the length of this file.longBufferedInputStream.skip(long n) See the general contract of theskipmethod ofInputStream.longCharArrayReader.skip(long n) Skips characters.longFileInputStream.skip(long n) Skips over and discardsnbytes of data from the input stream.longFilterInputStream.skip(long n) Skips over and discardsnbytes of data from the input stream.longFilterReader.skip(long n) Skips characters.longInputStream.skip(long n) Skips over and discardsnbytes of data from this input stream.longLineNumberInputStream.skip(long n) Deprecated.Skips over and discardsnbytes of data from this input stream.longObjectInput.skip(long n) Skips n bytes of input.longPushbackInputStream.skip(long n) Skips over and discardsnbytes of data from this input stream.longReader.skip(long n) Skips characters.longStringReader.skip(long n) Skips characters.intDataInput.skipBytes(int n) Makes an attempt to skip overnbytes of data from the input stream, discarding the skipped bytes.final intDataInputStream.skipBytes(int n) See the general contract of theskipBytesmethod ofDataInput.intObjectInputStream.skipBytes(int len) Skips bytes.intRandomAccessFile.skipBytes(int n) Attempts to skip overnbytes of input discarding the skipped bytes.voidInputStream.skipNBytes(long n) Skips over and discards exactlynbytes of data from this input stream.longInputStream.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.longReader.transferTo(Writer out) Reads all characters from this reader and writes the characters to the given writer in the order that they are read.voidPushbackInputStream.unread(byte[] b) Pushes back an array of bytes by copying it to the front of the pushback buffer.voidPushbackInputStream.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.voidPushbackInputStream.unread(int b) Pushes back a byte by copying it to the front of the pushback buffer.voidPushbackReader.unread(char[] cbuf) Pushes back an array of characters by copying it to the front of the pushback buffer.voidPushbackReader.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.voidPushbackReader.unread(int c) Pushes back a single character by copying it to the front of the pushback buffer.voidObjectOutputStream.useProtocolVersion(int version) Specify stream protocol version to use when writing the stream.voidBufferedOutputStream.write(byte[] b, int off, int len) Writeslenbytes from the specified byte array starting at offsetoffto this buffered output stream.voidBufferedOutputStream.write(int b) Writes the specified byte to this buffered output stream.voidBufferedWriter.write(char[] cbuf, int off, int len) Writes a portion of an array of characters.voidBufferedWriter.write(int c) Writes a single character.voidWrites a portion of a String.voidDataOutput.write(byte[] b) Writes to the output stream all the bytes in arrayb.voidDataOutput.write(byte[] b, int off, int len) Writeslenbytes from arrayb, in order, to the output stream.voidDataOutput.write(int b) Writes to the output stream the eight low-order bits of the argumentb.voidDataOutputStream.write(byte[] b, int off, int len) Writeslenbytes from the specified byte array starting at offsetoffto the underlying output stream.voidDataOutputStream.write(int b) Writes the specified byte (the low eight bits of the argumentb) to the underlying output stream.voidFileOutputStream.write(byte[] b) Writesb.lengthbytes from the specified byte array to this file output stream.voidFileOutputStream.write(byte[] b, int off, int len) Writeslenbytes from the specified byte array starting at offsetoffto this file output stream.voidFileOutputStream.write(int b) Writes the specified byte to this file output stream.voidFilterOutputStream.write(byte[] b) Writesb.lengthbytes to this output stream.voidFilterOutputStream.write(byte[] b, int off, int len) Writeslenbytes from the specifiedbytearray starting at offsetoffto this output stream.voidFilterOutputStream.write(int b) Writes the specifiedbyteto this output stream.voidFilterWriter.write(char[] cbuf, int off, int len) Writes a portion of an array of characters.voidFilterWriter.write(int c) Writes a single character.voidWrites a portion of a string.voidObjectOutput.write(byte[] b) Writes an array of bytes.voidObjectOutput.write(byte[] b, int off, int len) Writes a sub array of bytes.voidObjectOutput.write(int b) Writes a byte.abstract voidObjectOutputStream.PutField.write(ObjectOutput out) Deprecated, for removal: This API element is subject to removal in a future version.This method does not write the values contained by thisPutFieldobject in a proper format, and may result in corruption of the serialization stream.voidObjectOutputStream.write(byte[] buf) Writes an array of bytes.voidObjectOutputStream.write(byte[] buf, int off, int len) Writes a sub array of bytes.voidObjectOutputStream.write(int val) Writes a byte.voidOutputStream.write(byte[] b) Writesb.lengthbytes from the specified byte array to this output stream.voidOutputStream.write(byte[] b, int off, int len) Writeslenbytes from the specified byte array starting at offsetoffto this output stream.abstract voidOutputStream.write(int b) Writes the specified byte to this output stream.voidOutputStreamWriter.write(char[] cbuf, int off, int len) Writes a portion of an array of characters.voidOutputStreamWriter.write(int c) Writes a single character.voidWrites a portion of a string.voidPipedOutputStream.write(byte[] b, int off, int len) Writeslenbytes from the specified byte array starting at offsetoffto this piped output stream.voidPipedOutputStream.write(int b) Writes the specifiedbyteto the piped output stream.voidPipedWriter.write(char[] cbuf, int off, int len) Writeslencharacters from the specified character array starting at offsetoffto this piped output stream.voidPipedWriter.write(int c) Writes the specifiedcharto the piped output stream.voidPrintStream.write(byte[] buf) Writes all bytes from the specified byte array to this stream.voidRandomAccessFile.write(byte[] b) Writesb.lengthbytes from the specified byte array to this file, starting at the current file pointer.voidRandomAccessFile.write(byte[] b, int off, int len) Writeslenbytes from the specified byte array starting at offsetoffto this file.voidRandomAccessFile.write(int b) Writes the specified byte to this file.voidWriter.write(char[] cbuf) Writes an array of characters.abstract voidWriter.write(char[] cbuf, int off, int len) Writes a portion of an array of characters.voidWriter.write(int c) Writes a single character.voidWrites a string.voidWrites a portion of a string.voidDataOutput.writeBoolean(boolean v) Writes abooleanvalue to this output stream.final voidDataOutputStream.writeBoolean(boolean v) Writes abooleanto the underlying output stream as a 1-byte value.voidObjectOutputStream.writeBoolean(boolean val) Writes a boolean.final voidRandomAccessFile.writeBoolean(boolean v) Writes abooleanto the file as a one-byte value.voidDataOutput.writeByte(int v) Writes to the output stream the eight low-order bits of the argumentv.final voidDataOutputStream.writeByte(int v) Writes out abyteto the underlying output stream as a 1-byte value.voidObjectOutputStream.writeByte(int val) Writes an 8-bit byte.final voidRandomAccessFile.writeByte(int v) Writes abyteto the file as a one-byte value.voidDataOutput.writeBytes(String s) Writes a string to the output stream.final voidDataOutputStream.writeBytes(String s) Writes out the string to the underlying output stream as a sequence of bytes.voidObjectOutputStream.writeBytes(String str) Writes a String as a sequence of bytes.final voidRandomAccessFile.writeBytes(String s) Writes the string to the file as a sequence of bytes.voidDataOutput.writeChar(int v) Writes acharvalue, which is comprised of two bytes, to the output stream.final voidDataOutputStream.writeChar(int v) Writes acharto the underlying output stream as a 2-byte value, high byte first.voidObjectOutputStream.writeChar(int val) Writes a 16-bit char.final voidRandomAccessFile.writeChar(int v) Writes acharto the file as a two-byte value, high byte first.voidDataOutput.writeChars(String s) Writes every character in the strings, to the output stream, in order, two bytes per character.final voidDataOutputStream.writeChars(String s) Writes a string to the underlying output stream as a sequence of characters.voidObjectOutputStream.writeChars(String str) Writes a String as a sequence of chars.final voidRandomAccessFile.writeChars(String s) Writes a string to the file as a sequence of characters.protected voidObjectOutputStream.writeClassDescriptor(ObjectStreamClass desc) Write the specified class descriptor to the ObjectOutputStream.voidDataOutput.writeDouble(double v) Writes adoublevalue, which is comprised of eight bytes, to the output stream.final voidDataOutputStream.writeDouble(double v) Converts the double argument to alongusing thedoubleToLongBitsmethod in classDouble, and then writes thatlongvalue to the underlying output stream as an 8-byte quantity, high byte first.voidObjectOutputStream.writeDouble(double val) Writes a 64-bit double.final voidRandomAccessFile.writeDouble(double v) Converts the double argument to alongusing thedoubleToLongBitsmethod in classDouble, and then writes thatlongvalue to the file as an eight-byte quantity, high byte first.voidExternalizable.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.voidObjectOutputStream.writeFields()Write the buffered fields to the stream.voidDataOutput.writeFloat(float v) Writes afloatvalue, which is comprised of four bytes, to the output stream.final voidDataOutputStream.writeFloat(float v) Converts the float argument to anintusing thefloatToIntBitsmethod in classFloat, and then writes thatintvalue to the underlying output stream as a 4-byte quantity, high byte first.voidObjectOutputStream.writeFloat(float val) Writes a 32-bit float.final voidRandomAccessFile.writeFloat(float v) Converts the float argument to anintusing thefloatToIntBitsmethod in classFloat, and then writes thatintvalue to the file as a four-byte quantity, high byte first.voidDataOutput.writeInt(int v) Writes anintvalue, which is comprised of four bytes, to the output stream.final voidDataOutputStream.writeInt(int v) Writes anintto the underlying output stream as four bytes, high byte first.voidObjectOutputStream.writeInt(int val) Writes a 32-bit int.final voidRandomAccessFile.writeInt(int v) Writes anintto the file as four bytes, high byte first.voidDataOutput.writeLong(long v) Writes alongvalue, which is comprised of eight bytes, to the output stream.final voidDataOutputStream.writeLong(long v) Writes alongto the underlying output stream as eight bytes, high byte first.voidObjectOutputStream.writeLong(long val) Writes a 64-bit long.final voidRandomAccessFile.writeLong(long v) Writes alongto the file as eight bytes, high byte first.voidObjectOutput.writeObject(Object obj) Write an object to the underlying storage or stream.final voidObjectOutputStream.writeObject(Object obj) Write the specified object to the ObjectOutputStream.protected voidObjectOutputStream.writeObjectOverride(Object obj) Method used by subclasses to override the default writeObject method.voidDataOutput.writeShort(int v) Writes two bytes to the output stream to represent the value of the argument.final voidDataOutputStream.writeShort(int v) Writes ashortto the underlying output stream as two bytes, high byte first.voidObjectOutputStream.writeShort(int val) Writes a 16-bit short.final voidRandomAccessFile.writeShort(int v) Writes ashortto the file as two bytes, high byte first.protected voidObjectOutputStream.writeStreamHeader()The writeStreamHeader method is provided so subclasses can append or prepend their own header to the stream.voidByteArrayOutputStream.writeTo(OutputStream out) Writes the complete contents of thisByteArrayOutputStreamto the specified output stream argument, as if by calling the output stream's write method usingout.write(buf, 0, count).voidWrites the contents of the buffer to another character stream.voidObjectOutputStream.writeUnshared(Object obj) Writes an "unshared" object to the ObjectOutputStream.voidWrites two bytes of length information to the output stream, followed by the modified UTF-8 representation of every character in the strings.final voidWrites a string to the underlying output stream using modified UTF-8 encoding in a machine-independent manner.voidPrimitive data write of this String in modified UTF-8 format.final voidWrites a string to the file using modified UTF-8 encoding in a machine-independent manner.Constructors in java.io with parameters of type IOExceptionModifierConstructorDescriptionUncheckedIOException(IOException cause) Constructs an instance of this class.UncheckedIOException(String message, IOException cause) Constructs an instance of this class.Constructors in java.io that throw IOExceptionModifierConstructorDescriptionFileReader(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 aFileWritergiven theFileto write and a boolean indicating whether to append the data written, using the default charset.FileWriter(File file, Charset charset) FileWriter(File file, Charset charset, boolean append) Constructs aFileWritergiven theFileto write, charset and a boolean indicating whether to append the data written.FileWriter(String fileName) Constructs aFileWritergiven a file name, using the default charsetFileWriter(String fileName, boolean append) Constructs aFileWritergiven a file name and a boolean indicating whether to append the data written, using the default charset.FileWriter(String fileName, Charset charset) Constructs aFileWritergiven a file name and charset.FileWriter(String fileName, Charset charset, boolean append) Constructs aFileWritergiven a file name, charset and a boolean indicating whether to append the data written.protectedProvide 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.protectedProvide 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 aPipedInputStreamso that it is connected to the piped output streamsrc.PipedInputStream(PipedOutputStream src, int pipeSize) Creates aPipedInputStreamso that it is connected to the piped output streamsrcand 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 aPipedReaderso that it is connected to the piped writersrc.PipedReader(PipedWriter src, int pipeSize) Creates aPipedReaderso that it is connected to the piped writersrcand 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
Methods in java.lang that throw IOExceptionModifier 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.Deprecated.This method is error-prone and should not be used, the corresponding methodRuntime.exec(String[])orProcessBuildershould be used instead.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.Deprecated.This method is error-prone and should not be used, the corresponding methodRuntime.exec(String[], String[])orProcessBuildershould be used instead.Deprecated.This method is error-prone and should not be used, the corresponding methodRuntime.exec(String[], String[], File)orProcessBuildershould be used instead.protected URLClassLoader.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 ofURLobjects 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 ChannelSystem.inheritedChannel()Returns the channel inherited from the entity that created this Java virtual machine.intReadable.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.classfile
Methods in java.lang.classfile that throw IOExceptionModifier and TypeMethodDescriptiondefault voidClassFile.buildModuleTo(Path path, ModuleAttribute moduleAttribute) Builds a module descriptor into a file in a file system.default voidClassFile.buildModuleTo(Path path, ModuleAttribute moduleAttribute, Consumer<? super ClassBuilder> handler) Builds a module descriptor into a file in a file system.default voidClassFile.buildTo(Path path, ClassEntry thisClassEntry, ConstantPoolBuilder constantPool, Consumer<? super ClassBuilder> handler) Builds aclassfile into a file in a file system using the provided constant pool builder.default voidClassFile.buildTo(Path path, ClassDesc thisClass, Consumer<ClassBuilder> handler) Builds aclassfile into a file in a file system.default ClassModelParses aclassinto aClassModel.default List<VerifyError> Verify aclassfile. -
Uses of IOException in java.lang.management
Methods in java.lang.management that throw IOExceptionModifier and TypeMethodDescriptionstatic <T extends PlatformManagedObject>
TManagementFactory.getPlatformMXBean(MBeanServerConnection connection, Class<T> mxbeanInterface) Returns the platform MXBean proxy formxbeanInterfacewhich 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 themxbeanInterfacethrough the givenMBeanServerConnection.static <T> TManagementFactory.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
Methods in java.lang.module that throw IOExceptionModifier and TypeMethodDescriptionvoidModuleReader.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 ModuleReaderModuleReference.open()Opens the module content for reading.static ModuleDescriptorModuleDescriptor.read(InputStream in) Reads the binary form of a module declaration from an input stream as a module descriptor.static ModuleDescriptorModuleDescriptor.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
Subclasses of IOException in java.netModifier and TypeClassDescriptionclassSignals that an error occurred while attempting to bind a socket to a local address and port.classSignals that an error occurred while attempting to connect a socket to a remote address and port.classThrown to indicate that a HTTP request needs to be retried but cannot be retried automatically, due to streaming mode being enabled.classThrown to indicate that a malformed URL has occurred.classSignals that an error occurred while attempting to connect a socket to a remote address and port.classSignals that an ICMP Port Unreachable message has been received on a connected datagram.classThrown to indicate that there is an error in the underlying protocol, such as a TCP error.classThrown to indicate that there is an error creating or accessing a Socket.classSignals that a timeout has occurred on a socket read or accept.classThrown to indicate that the IP address of a host could not be determined.classThrown to indicate that an unknown service exception has occurred.Methods in java.net with parameters of type IOExceptionModifier and TypeMethodDescriptionabstract voidProxySelector.connectFailed(URI uri, SocketAddress sa, IOException ioe) Called to indicate that a connection could not be established to a proxy/socks server.Methods in java.net that throw IOExceptionModifier and TypeMethodDescriptionServerSocket.accept()Listens for a connection to be made to this socket and accepts it.protected abstract voidSocketImpl.accept(SocketImpl s) Accepts a connection.protected abstract intSocketImpl.available()Returns the number of bytes that can be read from this socket without blocking.voidServerSocket.bind(SocketAddress endpoint) Binds theServerSocketto a specific address (IP address and port number).voidServerSocket.bind(SocketAddress endpoint, int backlog) Binds theServerSocketto a specific address (IP address and port number).voidSocket.bind(SocketAddress bindpoint) Binds the socket to a local address.protected abstract voidSocketImpl.bind(InetAddress host, int port) Binds this socket to the specified local IP address and port number.voidServerSocket.close()Closes this socket.voidSocket.close()Closes this socket.protected abstract voidSocketImpl.close()Closes this socket.voidURLClassLoader.close()Closes this URLClassLoader, so that it can no longer be used to load new classes or resources that are defined by this loader.voidSocket.connect(SocketAddress endpoint) Connects this socket to the server.voidSocket.connect(SocketAddress endpoint, int timeout) Connects this socket to the server with a specified timeout value.protected abstract voidConnects this socket to the specified port on the named host.protected abstract voidSocketImpl.connect(InetAddress address, int port) Connects this socket to the specified port number on the specified host.protected abstract voidSocketImpl.connect(SocketAddress address, int timeout) Connects this socket to the specified port number on the specified host.abstract voidURLConnection.connect()Opens a communications link to the resource referenced by this URL, if such a connection has not already been established.protected abstract voidSocketImpl.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 CacheResponseRetrieve 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 OutputStreamCacheRequest.getBody()Returns an OutputStream to which the response body can be written.abstract InputStreamCacheResponse.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 ObjectContentHandler.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 ObjectURL.getContent()Gets the contents of this URL.final ObjectURL.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 InputStreamSocketImpl.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 JarFileJarURLConnection.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> TDatagramSocket.getOption(SocketOption<T> name) Returns the value of a socket option.protected <T> TDatagramSocketImpl.getOption(SocketOption<T> name) Called to get a socket option.<T> TServerSocket.getOption(SocketOption<T> name) Returns the value of a socket option.<T> TSocket.getOption(SocketOption<T> name) Returns the value of a socket option.protected <T> TSocketImpl.getOption(SocketOption<T> name) Called to get a socket option.Socket.getOutputStream()Returns an output stream for this socket.protected abstract OutputStreamSocketImpl.getOutputStream()Returns an output stream for this socket.URLConnection.getOutputStream()Returns an output stream that writes to this connection.HttpURLConnection.getPermission()Returns aSocketPermissionobject 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.intHttpURLConnection.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.intServerSocket.getSoTimeout()Retrieve setting forSO_TIMEOUT. 0 returns implies that the option is disabled (i.e., timeout of infinity).protected abstract intDatagramSocketImpl.getTimeToLive()Retrieve the TTL (time-to-live) option.intMulticastSocket.getTimeToLive()Get the default time-to-live for multicast packets sent out on the socket.protected abstract byteDatagramSocketImpl.getTTL()Deprecated, for removal: This API element is subject to removal in a future version.use getTimeToLive instead.byteMulticastSocket.getTTL()Deprecated, for removal: This API element is subject to removal in a future version.use theMulticastSocket.getTimeToLive()method instead, which returns an int instead of a byte.static StringURLConnection.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 voidServerSocket.implAccept(Socket s) Subclasses of ServerSocket use this method to override accept() to return their own subclass of socket.booleanInetAddress.isReachable(int timeout) Test whether that address is reachable.booleanInetAddress.isReachable(NetworkInterface netif, int ttl, int timeout) Test whether that address is reachable.protected abstract voidDatagramSocketImpl.join(InetAddress inetaddr) Join the multicast group.voidDatagramSocket.joinGroup(SocketAddress mcastaddr, NetworkInterface netIf) Joins a multicast group.protected abstract voidDatagramSocketImpl.joinGroup(SocketAddress mcastaddr, NetworkInterface netIf) Join the multicast group.voidMulticastSocket.joinGroup(InetAddress mcastaddr) Deprecated.This method does not accept the network interface on which to join the multicast group.voidMulticastSocket.joinGroup(SocketAddress mcastaddr, NetworkInterface netIf) Joins a multicast group.protected abstract voidDatagramSocketImpl.leave(InetAddress inetaddr) Leave the multicast group.voidDatagramSocket.leaveGroup(SocketAddress mcastaddr, NetworkInterface netIf) Leave a multicast group on a specified local interface.protected abstract voidDatagramSocketImpl.leaveGroup(SocketAddress mcastaddr, NetworkInterface netIf) Leave the multicast group.voidMulticastSocket.leaveGroup(InetAddress mcastaddr) Deprecated.This method does not accept the network interface on which to leave the multicast group.voidMulticastSocket.leaveGroup(SocketAddress mcastaddr, NetworkInterface netIf) Leave a multicast group on a specified local interface.protected abstract voidSocketImpl.listen(int backlog) Sets the maximum queue length for incoming connection indications (a request to connect) to thecountargument.URL.openConnection()Returns aURLConnectioninstance 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 URLConnectionURLStreamHandler.openConnection(URL u) Opens a connection to the object referenced by theURLargument.protected URLConnectionURLStreamHandler.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 InputStreamURL.openStream()Opens a connection to thisURLand returns anInputStreamfor reading from that connection.protected abstract intDatagramSocketImpl.peek(InetAddress i) Peek at the packet to see who it is from.protected abstract intDatagramSocketImpl.peekData(DatagramPacket p) Peek at the packet to see who it is from.abstract voidSets all the applicable cookies, examples are response header fields that are named Set-Cookie2, present in the response headers into a cookie cache.voidabstract CacheRequestResponseCache.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.voidDatagramSocket.receive(DatagramPacket p) Receives a datagram packet from this socket.protected abstract voidDatagramSocketImpl.receive(DatagramPacket p) Receive the datagram packet.voidDatagramSocket.send(DatagramPacket p) Sends a datagram packet from this socket.protected abstract voidDatagramSocketImpl.send(DatagramPacket p) Sends a datagram packet.voidMulticastSocket.send(DatagramPacket p, byte ttl) Deprecated, for removal: This API element is subject to removal in a future version.Use the following code or its equivalent instead:voidSocket.sendUrgentData(int data) Send one byte of urgent data on the socket.protected abstract voidSocketImpl.sendUrgentData(int data) Send one byte of urgent data on the socket.static voidDatagramSocket.setDatagramSocketImplFactory(DatagramSocketImplFactory fac) Deprecated.UseDatagramChannel, or subclassDatagramSocketdirectly.<T> DatagramSocketDatagramSocket.setOption(SocketOption<T> name, T value) Sets the value of a socket option.protected <T> voidDatagramSocketImpl.setOption(SocketOption<T> name, T value) Called to set a socket option.<T> ServerSocketServerSocket.setOption(SocketOption<T> name, T value) Sets the value of a socket option.<T> SocketSocket.setOption(SocketOption<T> name, T value) Sets the value of a socket option.protected <T> voidSocketImpl.setOption(SocketOption<T> name, T value) Called to set a socket option.static voidServerSocket.setSocketFactory(SocketImplFactory fac) Deprecated.Use aServerSocketFactoryand subclassServerSocketdirectly.static voidSocket.setSocketImplFactory(SocketImplFactory fac) Deprecated.Use aSocketFactoryand subclassSocketdirectly.protected abstract voidDatagramSocketImpl.setTimeToLive(int ttl) Set the TTL (time-to-live) option.voidMulticastSocket.setTimeToLive(int ttl) Set the default time-to-live for multicast packets sent out on thisMulticastSocketin order to control the scope of the multicasts.protected abstract voidDatagramSocketImpl.setTTL(byte ttl) Deprecated, for removal: This API element is subject to removal in a future version.use setTimeToLive instead.voidMulticastSocket.setTTL(byte ttl) Deprecated, for removal: This API element is subject to removal in a future version.use theMulticastSocket.setTimeToLive(int)method instead, which uses int instead of byte as the type for ttl.voidSocket.shutdownInput()Places the input stream for this socket at "end of stream".protected voidSocketImpl.shutdownInput()Places the input stream for this socket at "end of stream".voidSocket.shutdownOutput()Disables the output stream for this socket.protected voidSocketImpl.shutdownOutput()Disables the output stream for this socket.Constructors in java.net that throw IOExceptionModifierConstructorDescriptionConstructs 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, for removal: This API element is subject to removal in a future version.UseDatagramSocketinstead 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, for removal: This API element is subject to removal in a future version.UseDatagramSocketinstead 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
Subclasses of IOException in java.net.httpModifier and TypeClassDescriptionclassThrown when a connection, over which anHttpRequestis intended to be sent, is not successfully established within a specified time period.classThrown when a response is not received within a specified time period.final classThrown when the opening handshake has failed.Methods in java.net.http that throw IOExceptionModifier 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
Methods in java.nio that throw IOExceptionModifier and TypeMethodDescriptionintCharBuffer.read(CharBuffer target) Attempts to read characters into the specified character buffer. -
Uses of IOException in java.nio.channels
Subclasses of IOException in java.nio.channelsModifier and TypeClassDescriptionclassChecked 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.classChecked exception received by a thread when another thread interrupts it while it is blocked in an I/O operation upon a channel.classChecked 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.classChecked exception received by a thread when another thread interrupts it while it is waiting to acquire a file lock.classChecked exception received by a thread when a timeout elapses before an asynchronous operation completes.Methods in java.nio.channels that throw IOExceptionModifier and TypeMethodDescriptionabstract SocketChannelServerSocketChannel.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 AsynchronousServerSocketChannelAsynchronousServerSocketChannel.bind(SocketAddress local, int backlog) Binds the channel's socket to a local address and configures the socket to listen for connections.abstract AsynchronousSocketChannelAsynchronousSocketChannel.bind(SocketAddress local) abstract DatagramChannelDatagramChannel.bind(SocketAddress local) NetworkChannel.bind(SocketAddress local) Binds the channel's socket to a local address.final ServerSocketChannelServerSocketChannel.bind(SocketAddress local) Binds the channel's socket to a local address and configures the socket to listen for connections.abstract ServerSocketChannelServerSocketChannel.bind(SocketAddress local, int backlog) Binds the channel's socket to a local address and configures the socket to listen for connections.abstract SocketChannelSocketChannel.bind(SocketAddress local) Binds the channel's socket to a local address.abstract MembershipKeyMembershipKey.block(InetAddress source) Block multicast datagrams from the given source address.voidAsynchronousChannel.close()Closes this channel.voidChannel.close()Closes this channel.final voidFileLock.close()This method invokes theFileLock.release()method.voidInterruptibleChannel.close()Closes this channel.voidMulticastChannel.close()Closes this channel.abstract voidSelector.close()Closes this selector.abstract SelectableChannelSelectableChannel.configureBlocking(boolean block) Adjusts this channel's blocking mode.abstract DatagramChannelDatagramChannel.connect(SocketAddress remote) Connects this channel's socket.abstract booleanSocketChannel.connect(SocketAddress remote) Connects this channel's socket.abstract DatagramChannelDatagramChannel.disconnect()Disconnects this channel's socket.abstract booleanSocketChannel.finishConnect()Finishes the process of connecting a socket channel.abstract voidAsynchronousFileChannel.force(boolean metaData) Forces any updates to this channel's file to be written to the storage device that contains it.abstract voidFileChannel.force(boolean metaData) Forces any updates to this channel's file to be written to the storage device that contains it.abstract SocketAddressAsynchronousServerSocketChannel.getLocalAddress()Returns the socket address that this channel's socket is bound to.abstract SocketAddressAsynchronousSocketChannel.getLocalAddress()Returns the socket address that this channel's socket is bound to.abstract SocketAddressDatagramChannel.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 SocketAddressServerSocketChannel.getLocalAddress()Returns the socket address that this channel's socket is bound to.abstract SocketAddressSocketChannel.getLocalAddress()Returns the socket address that this channel's socket is bound to.<T> TNetworkChannel.getOption(SocketOption<T> name) Returns the value of a socket option.abstract SocketAddressAsynchronousSocketChannel.getRemoteAddress()Returns the remote address to which this channel's socket is connected.abstract SocketAddressDatagramChannel.getRemoteAddress()Returns the remote address to which this channel's socket is connected.abstract SocketAddressSocketChannel.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 FileLockFileChannel.lock()Acquires an exclusive lock on this channel's file.abstract FileLockFileChannel.lock(long position, long size, boolean shared) Acquires a lock on the given region of this channel's file.abstract MappedByteBufferFileChannel.map(FileChannel.MapMode mode, long position, long size) Maps a region of this channel's file directly into memory.FileChannel.map(FileChannel.MapMode mode, long offset, long size, Arena arena) Maps a region of this channel's file into a new mapped memory segment, with the given offset, size and arena.static AsynchronousFileChannelAsynchronousFileChannel.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 AsynchronousFileChannelAsynchronousFileChannel.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 AsynchronousSocketChannelAsynchronousSocketChannel.open()Opens an asynchronous socket channel.static AsynchronousSocketChannelAsynchronousSocketChannel.open(AsynchronousChannelGroup group) Opens an asynchronous socket channel.static DatagramChannelDatagramChannel.open()Opens a datagram channel.static DatagramChannelDatagramChannel.open(ProtocolFamily family) Opens a datagram channel.static FileChannelFileChannel.open(Path path, OpenOption... options) Opens or creates a file, returning a file channel to access the file.static FileChannelFileChannel.open(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) Opens or creates a file, returning a file channel to access the file.static PipePipe.open()Opens a pipe.static SelectorSelector.open()Opens a selector.static ServerSocketChannelServerSocketChannel.open()Opens a server-socket channel for an Internet protocol socket.static ServerSocketChannelServerSocketChannel.open(ProtocolFamily family) Opens a server-socket channel.static SocketChannelSocketChannel.open()Opens a socket channel for an Internet protocol socket.static SocketChannelSocketChannel.open(ProtocolFamily family) Opens a socket channel.static SocketChannelSocketChannel.open(SocketAddress remote) Opens a socket channel and connects it to a remote address.abstract longFileChannel.position()Returns this channel's file position.abstract FileChannelFileChannel.position(long newPosition) Sets this channel's file position.longSeekableByteChannel.position()Returns this channel's position.SeekableByteChannel.position(long newPosition) Sets this channel's position.abstract intDatagramChannel.read(ByteBuffer dst) Reads a datagram from this channel.final longDatagramChannel.read(ByteBuffer[] dsts) Reads a datagram from this channel.abstract longDatagramChannel.read(ByteBuffer[] dsts, int offset, int length) Reads a datagram from this channel.abstract intFileChannel.read(ByteBuffer dst) Reads a sequence of bytes from this channel into the given buffer.final longFileChannel.read(ByteBuffer[] dsts) Reads a sequence of bytes from this channel into the given buffers.abstract longFileChannel.read(ByteBuffer[] dsts, int offset, int length) Reads a sequence of bytes from this channel into a subsequence of the given buffers.abstract intFileChannel.read(ByteBuffer dst, long position) Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.intReadableByteChannel.read(ByteBuffer dst) Reads a sequence of bytes from this channel into the given buffer.longScatteringByteChannel.read(ByteBuffer[] dsts) Reads a sequence of bytes from this channel into the given buffers.longScatteringByteChannel.read(ByteBuffer[] dsts, int offset, int length) Reads a sequence of bytes from this channel into a subsequence of the given buffers.intSeekableByteChannel.read(ByteBuffer dst) Reads a sequence of bytes from this channel into the given buffer.abstract intSocketChannel.read(ByteBuffer dst) final longSocketChannel.read(ByteBuffer[] dsts) abstract longSocketChannel.read(ByteBuffer[] dsts, int offset, int length) abstract SocketAddressDatagramChannel.receive(ByteBuffer dst) Receives a datagram via this channel.abstract voidFileLock.release()Releases this lock.abstract intSelector.select()Selects a set of keys whose corresponding channels are ready for I/O operations.abstract intSelector.select(long timeout) Selects a set of keys whose corresponding channels are ready for I/O operations.intSelector.select(Consumer<SelectionKey> action) Selects and performs an action on the keys whose corresponding channels are ready for I/O operations.intSelector.select(Consumer<SelectionKey> action, long timeout) Selects and performs an action on the keys whose corresponding channels are ready for I/O operations.abstract intSelector.selectNow()Selects a set of keys whose corresponding channels are ready for I/O operations.intSelector.selectNow(Consumer<SelectionKey> action) Selects and performs an action on the keys whose corresponding channels are ready for I/O operations.abstract intDatagramChannel.send(ByteBuffer src, SocketAddress target) Sends a datagram via this channel.abstract <T> AsynchronousServerSocketChannelAsynchronousServerSocketChannel.setOption(SocketOption<T> name, T value) abstract <T> AsynchronousSocketChannelAsynchronousSocketChannel.setOption(SocketOption<T> name, T value) abstract <T> DatagramChannelDatagramChannel.setOption(SocketOption<T> name, T value) <T> NetworkChannelNetworkChannel.setOption(SocketOption<T> name, T value) Sets the value of a socket option.abstract <T> ServerSocketChannelServerSocketChannel.setOption(SocketOption<T> name, T value) abstract <T> SocketChannelSocketChannel.setOption(SocketOption<T> name, T value) abstract AsynchronousSocketChannelAsynchronousSocketChannel.shutdownInput()Shutdown the connection for reading without closing the channel.abstract SocketChannelSocketChannel.shutdownInput()Shutdown the connection for reading without closing the channel.abstract voidAsynchronousChannelGroup.shutdownNow()Shuts down the group and closes all open channels in the group.abstract AsynchronousSocketChannelAsynchronousSocketChannel.shutdownOutput()Shutdown the connection for writing without closing the channel.abstract SocketChannelSocketChannel.shutdownOutput()Shutdown the connection for writing without closing the channel.abstract longAsynchronousFileChannel.size()Returns the current size of this channel's file.abstract longFileChannel.size()Returns the current size of this channel's file.longSeekableByteChannel.size()Returns the current size of entity to which this channel is connected.abstract longFileChannel.transferFrom(ReadableByteChannel src, long position, long count) Transfers bytes into this channel's file from the given readable byte channel.abstract longFileChannel.transferTo(long position, long count, WritableByteChannel target) Transfers bytes from this channel's file to the given writable byte channel.abstract AsynchronousFileChannelAsynchronousFileChannel.truncate(long size) Truncates this channel's file to the given size.abstract FileChannelFileChannel.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 FileLockAsynchronousFileChannel.tryLock()Attempts to acquire an exclusive lock on this channel's file.abstract FileLockAsynchronousFileChannel.tryLock(long position, long size, boolean shared) Attempts to acquire a lock on the given region of this channel's file.final FileLockFileChannel.tryLock()Attempts to acquire an exclusive lock on this channel's file.abstract FileLockFileChannel.tryLock(long position, long size, boolean shared) Attempts to acquire a lock on the given region of this channel's file.static AsynchronousChannelGroupAsynchronousChannelGroup.withCachedThreadPool(ExecutorService executor, int initialSize) Creates an asynchronous channel group with a given thread pool that creates new threads as needed.static AsynchronousChannelGroupAsynchronousChannelGroup.withFixedThreadPool(int nThreads, ThreadFactory threadFactory) Creates an asynchronous channel group with a fixed thread pool.static AsynchronousChannelGroupAsynchronousChannelGroup.withThreadPool(ExecutorService executor) Creates an asynchronous channel group with a given thread pool.abstract intDatagramChannel.write(ByteBuffer src) Writes a datagram to this channel.final longDatagramChannel.write(ByteBuffer[] srcs) Writes a datagram to this channel.abstract longDatagramChannel.write(ByteBuffer[] srcs, int offset, int length) Writes a datagram to this channel.abstract intFileChannel.write(ByteBuffer src) Writes a sequence of bytes to this channel from the given buffer.final longFileChannel.write(ByteBuffer[] srcs) Writes a sequence of bytes to this channel from the given buffers.abstract longFileChannel.write(ByteBuffer[] srcs, int offset, int length) Writes a sequence of bytes to this channel from a subsequence of the given buffers.abstract intFileChannel.write(ByteBuffer src, long position) Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.longGatheringByteChannel.write(ByteBuffer[] srcs) Writes a sequence of bytes to this channel from the given buffers.longGatheringByteChannel.write(ByteBuffer[] srcs, int offset, int length) Writes a sequence of bytes to this channel from a subsequence of the given buffers.intSeekableByteChannel.write(ByteBuffer src) Writes a sequence of bytes to this channel from the given buffer.abstract intSocketChannel.write(ByteBuffer src) final longSocketChannel.write(ByteBuffer[] srcs) abstract longSocketChannel.write(ByteBuffer[] srcs, int offset, int length) intWritableByteChannel.write(ByteBuffer src) Writes a sequence of bytes to this channel from the given buffer. -
Uses of IOException in java.nio.channels.spi
Methods in java.nio.channels.spi that throw IOExceptionModifier and TypeMethodDescriptionfinal voidAbstractInterruptibleChannel.close()Closes this channel.final voidAbstractSelector.close()Closes this selector.final SelectableChannelAbstractSelectableChannel.configureBlocking(boolean block) Adjusts this channel's blocking mode.protected abstract voidAbstractInterruptibleChannel.implCloseChannel()Closes this channel.protected final voidAbstractSelectableChannel.implCloseChannel()Closes this channel.protected abstract voidAbstractSelectableChannel.implCloseSelectableChannel()Closes this selectable channel.protected abstract voidAbstractSelector.implCloseSelector()Closes this selector.protected abstract voidAbstractSelectableChannel.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 AsynchronousChannelGroupAsynchronousChannelProvider.openAsynchronousChannelGroup(int nThreads, ThreadFactory threadFactory) Constructs a new asynchronous channel group with a fixed thread pool.abstract AsynchronousChannelGroupAsynchronousChannelProvider.openAsynchronousChannelGroup(ExecutorService executor, int initialSize) Constructs a new asynchronous channel group with the given thread pool.abstract AsynchronousServerSocketChannelAsynchronousChannelProvider.openAsynchronousServerSocketChannel(AsynchronousChannelGroup group) Opens an asynchronous server-socket channel.abstract AsynchronousSocketChannelAsynchronousChannelProvider.openAsynchronousSocketChannel(AsynchronousChannelGroup group) Opens an asynchronous socket channel.abstract DatagramChannelSelectorProvider.openDatagramChannel()Opens a datagram channel.abstract DatagramChannelSelectorProvider.openDatagramChannel(ProtocolFamily family) Opens a datagram channel.abstract PipeSelectorProvider.openPipe()Opens a pipe.abstract AbstractSelectorSelectorProvider.openSelector()Opens a selector.abstract ServerSocketChannelSelectorProvider.openServerSocketChannel()Opens a server-socket channel.SelectorProvider.openServerSocketChannel(ProtocolFamily family) Opens a server-socket channel.abstract SocketChannelSelectorProvider.openSocketChannel()Opens a socket channel.SelectorProvider.openSocketChannel(ProtocolFamily family) Opens a socket channel. -
Uses of IOException in java.nio.charset
Subclasses of IOException in java.nio.charsetModifier and TypeClassDescriptionclassChecked exception thrown when a character encoding or decoding error occurs.classChecked 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.classChecked 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
Subclasses of IOException in java.nio.fileModifier and TypeClassDescriptionclassChecked exception thrown when a file system operation is denied, typically due to a file permission or other access check.classChecked exception thrown when a file cannot be moved as an atomic file system operation.classChecked exception thrown when a file system operation fails because a directory is not empty.classChecked exception thrown when an attempt is made to create a file or directory and a file of that name already exists.classThrown when a file system operation fails on one or two files.classChecked exception thrown when a file system loop, or cycle, is encountered.classChecked exception thrown when an attempt is made to access a file that does not exist.classChecked exception thrown when a file system operation, intended for a directory, fails because the file is not a directory.classChecked exception thrown when a file system operation fails because a file is not a symbolic link.Methods in java.nio.file that return IOExceptionModifier and TypeMethodDescriptionDirectoryIteratorException.getCause()Returns the cause of this exception.Methods in java.nio.file with parameters of type IOExceptionModifier 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.Methods in java.nio.file that throw IOExceptionModifier and TypeMethodDescriptionbooleanDecides if the given directory entry should be accepted or filtered.abstract voidFileSystem.close()Closes this file system.voidWatchService.close()Closes this watch service.static longFiles.copy(InputStream in, Path target, CopyOption... options) Copies all bytes from an input stream to a file.static longFiles.copy(Path source, OutputStream out) Copies all bytes from a file to an output stream.static PathFiles.copy(Path source, Path target, CopyOption... options) Copy a file to a target file.static PathFiles.createDirectories(Path dir, FileAttribute<?>... attrs) Creates a directory by creating all nonexistent parent directories first.static PathFiles.createDirectory(Path dir, FileAttribute<?>... attrs) Creates a new directory.static PathFiles.createFile(Path path, FileAttribute<?>... attrs) Creates a new and empty file, failing if the file already exists.static PathFiles.createLink(Path link, Path existing) Creates a new link (directory entry) for an existing file (optional operation).static PathFiles.createSymbolicLink(Path link, Path target, FileAttribute<?>... attrs) Creates a symbolic link to a target (optional operation).static PathFiles.createTempDirectory(String prefix, FileAttribute<?>... attrs) Creates a new directory in the default temporary-file directory, using the given prefix to generate its name.static PathFiles.createTempDirectory(Path dir, String prefix, FileAttribute<?>... attrs) Creates a new directory in the specified directory, using the given prefix to generate its name.static PathFiles.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 PathFiles.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 voidDeletes a file.voidSecureDirectoryStream.deleteDirectory(T path) Deletes a directory.voidSecureDirectoryStream.deleteFile(T path) Deletes a file.static booleanFiles.deleteIfExists(Path path) Deletes a file if it exists.Files.find(Path start, int maxDepth, BiPredicate<Path, BasicFileAttributes> matcher, FileVisitOption... options) Returns aStreamthat is lazily populated withPathby searching for files in a file tree rooted at a given starting file.static ObjectFiles.getAttribute(Path path, String attribute, LinkOption... options) Reads the value of a file attribute.abstract ObjectFileStore.getAttribute(String attribute) Reads the value of a file store attribute.longFileStore.getBlockSize()Returns the number of bytes per block in this file store.static FileStoreFiles.getFileStore(Path path) Returns theFileStorerepresenting the file store where a file is located.static FileTimeFiles.getLastModifiedTime(Path path, LinkOption... options) Returns a file's last modified time.static UserPrincipalFiles.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 longFileStore.getTotalSpace()Returns the size, in bytes, of the file store.abstract longFileStore.getUnallocatedSpace()Returns the number of unallocated bytes in the file store.abstract longFileStore.getUsableSpace()Returns the number of bytes available to this Java virtual machine on the file store.static booleanTells whether or not a file is considered hidden.static booleanFiles.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.Returns a lazily populatedStream, the elements of which are the entries in the directory.static longFinds and returns the position of the first mismatched byte in the content of two files, or-1Lif there is no mismatch.static PathFiles.move(Path source, Path target, CopyOption... options) Move or rename a file to a target file.voidSecureDirectoryStream.move(T srcpath, SecureDirectoryStream<T> targetdir, T targetpath) Move a file from this directory to another directory.static BufferedReaderFiles.newBufferedReader(Path path) Opens a file for reading, returning aBufferedReaderto read text from the file in an efficient manner.static BufferedReaderFiles.newBufferedReader(Path path, Charset cs) Opens a file for reading, returning aBufferedReaderthat may be used to read text from the file in an efficient manner.static BufferedWriterFiles.newBufferedWriter(Path path, Charset cs, OpenOption... options) Opens or creates a file for writing, returning aBufferedWriterthat may be used to write text to the file in an efficient manner.static BufferedWriterFiles.newBufferedWriter(Path path, OpenOption... options) Opens or creates a file for writing, returning aBufferedWriterto write text to the file in an efficient manner.static SeekableByteChannelFiles.newByteChannel(Path path, OpenOption... options) Opens or creates a file, returning a seekable byte channel to access the file.static SeekableByteChannelFiles.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 aDirectoryStreamto iterate over all entries in the directory.static DirectoryStream<Path> Files.newDirectoryStream(Path dir, String glob) Opens a directory, returning aDirectoryStreamto iterate over the entries in the directory.static DirectoryStream<Path> Files.newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) Opens a directory, returning aDirectoryStreamto iterate over the entries in the directory.SecureDirectoryStream.newDirectoryStream(T path, LinkOption... options) Opens the directory identified by the given path, returning aSecureDirectoryStreamto iterate over the entries in the directory.static FileSystemFileSystems.newFileSystem(URI uri, Map<String, ?> env) Constructs a new file system that is identified by aURIstatic FileSystemFileSystems.newFileSystem(URI uri, Map<String, ?> env, ClassLoader loader) Constructs a new file system that is identified by aURIstatic FileSystemFileSystems.newFileSystem(Path path) Constructs a newFileSystemto access the contents of a file as a file system.static FileSystemFileSystems.newFileSystem(Path path, ClassLoader loader) Constructs a newFileSystemto access the contents of a file as a file system.static FileSystemFileSystems.newFileSystem(Path path, Map<String, ?> env) Constructs a newFileSystemto access the contents of a file as a file system.static FileSystemFileSystems.newFileSystem(Path path, Map<String, ?> env, ClassLoader loader) Constructs a newFileSystemto access the contents of a file as a file system.static InputStreamFiles.newInputStream(Path path, OpenOption... options) Opens a file, returning an input stream to read from the file.static OutputStreamFiles.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 WatchServiceFileSystem.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 StringFiles.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 StringFiles.readString(Path path) static StringFiles.readString(Path path, Charset cs) Reads all characters from a file into a string, decoding from bytes to characters using the specified charset.static PathFiles.readSymbolicLink(Path link) Reads the target of a symbolic link (optional operation).default WatchKeyPath.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 PathFiles.setAttribute(Path path, String attribute, Object value, LinkOption... options) Sets the value of a file attribute.static PathFiles.setLastModifiedTime(Path path, FileTime time) Updates a file's last modified time attribute.static PathFiles.setOwner(Path path, UserPrincipal owner) Updates the file owner.static PathFiles.setPosixFilePermissions(Path path, Set<PosixFilePermission> perms) Sets a file's POSIX permissions.static longReturns 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) Returns aStreamthat is lazily populated withPathby walking the file tree rooted at a given starting file.Files.walk(Path start, FileVisitOption... options) Returns aStreamthat is lazily populated withPathby walking the file tree rooted at a given starting file.static PathFiles.walkFileTree(Path start, FileVisitor<? super Path> visitor) Walks a file tree.static PathFiles.walkFileTree(Path start, Set<FileVisitOption> options, int maxDepth, FileVisitor<? super Path> visitor) Walks a file tree.static PathFiles.write(Path path, byte[] bytes, OpenOption... options) Writes bytes to a file.static PathFiles.write(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options) Write lines of text to a file.static PathFiles.write(Path path, Iterable<? extends CharSequence> lines, OpenOption... options) Write lines of text to a file.static PathFiles.writeString(Path path, CharSequence csq, Charset cs, OpenOption... options) Write a CharSequence to a file.static PathFiles.writeString(Path path, CharSequence csq, OpenOption... options) Write a CharSequence to a file.Constructors in java.nio.file with parameters of type IOExceptionModifierConstructorDescriptionConstructs an instance of this class. -
Uses of IOException in java.nio.file.attribute
Subclasses of IOException in java.nio.file.attributeModifier and TypeClassDescriptionclassChecked exception thrown when a lookup ofUserPrincipalfails because the principal does not exist.Methods in java.nio.file.attribute that throw IOExceptionModifier and TypeMethodDescriptionvoidDeletes 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 GroupPrincipalUserPrincipalLookupService.lookupPrincipalByGroupName(String group) Lookup a group principal by group name.abstract UserPrincipalUserPrincipalLookupService.lookupPrincipalByName(String name) Lookup a user principal by name.intUserDefinedFileAttributeView.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()voidUpdates (replace) the access control list.voidDosFileAttributeView.setArchive(boolean value) Updates the value of the archive attribute.voidPosixFileAttributeView.setGroup(GroupPrincipal group) Updates the file group-owner.voidDosFileAttributeView.setHidden(boolean value) Updates the value of the hidden attribute.voidFileOwnerAttributeView.setOwner(UserPrincipal owner) Updates the file owner.voidPosixFileAttributeView.setPermissions(Set<PosixFilePermission> perms) Updates the file permissions.voidDosFileAttributeView.setReadOnly(boolean value) Updates the value of the read-only attribute.voidDosFileAttributeView.setSystem(boolean value) Updates the value of the system attribute.voidBasicFileAttributeView.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.intReturns the size of the value of a user-defined attribute.intUserDefinedFileAttributeView.write(String name, ByteBuffer src) Writes the value of a user-defined attribute from a buffer. -
Uses of IOException in java.nio.file.spi
Methods in java.nio.file.spi that throw IOExceptionModifier and TypeMethodDescriptionabstract voidFileSystemProvider.checkAccess(Path path, AccessMode... modes) Checks the existence, and optionally the accessibility, of a file.abstract voidFileSystemProvider.copy(Path source, Path target, CopyOption... options) Copy a file to a target file.abstract voidFileSystemProvider.createDirectory(Path dir, FileAttribute<?>... attrs) Creates a new directory.voidFileSystemProvider.createLink(Path link, Path existing) Creates a new link (directory entry) for an existing file.voidFileSystemProvider.createSymbolicLink(Path link, Path target, FileAttribute<?>... attrs) Creates a symbolic link to a target.abstract voidDeletes a file.booleanFileSystemProvider.deleteIfExists(Path path) Deletes a file if it exists.abstract FileStoreFileSystemProvider.getFileStore(Path path) Returns theFileStorerepresenting the file store where a file is located.abstract booleanTells whether or not a file is considered hidden.abstract booleanFileSystemProvider.isSameFile(Path path, Path path2) Tests if two paths locate the same file.abstract voidFileSystemProvider.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 SeekableByteChannelFileSystemProvider.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 aDirectoryStreamto 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 FileSystemFileSystemProvider.newFileSystem(URI uri, Map<String, ?> env) Constructs a newFileSystemobject identified by a URI.FileSystemProvider.newFileSystem(Path path, Map<String, ?> env) Constructs a newFileSystemto 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 StringFileTypeDetector.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.<A extends BasicFileAttributes>
AFileSystemProvider.readAttributesIfExists(Path path, Class<A> type, LinkOption... options) Reads a file's attributes as a bulk operation if it exists.FileSystemProvider.readSymbolicLink(Path link) Reads the target of a symbolic link.abstract voidFileSystemProvider.setAttribute(Path path, String attribute, Object value, LinkOption... options) Sets the value of a file attribute. -
Uses of IOException in java.rmi
Subclasses of IOException in java.rmiModifier and TypeClassDescriptionclassAnAccessExceptionis thrown by certain methods of thejava.rmi.Namingclass (specificallybind,rebind, andunbind) to indicate that the caller does not have permission to perform the action requested by the method call.classAConnectExceptionis thrown if a connection is refused to the remote host for a remote method call.classAConnectIOExceptionis thrown if anIOExceptionoccurs while making a connection to the remote host for a remote method call.classAMarshalExceptionis thrown if ajava.io.IOExceptionoccurs while marshalling the remote call header, arguments or return value for a remote method call.classANoSuchObjectExceptionis thrown if an attempt is made to invoke a method on an object that no longer exists in the remote virtual machine.classARemoteExceptionis the common superclass for a number of communication-related exceptions that may occur during the execution of a remote method call.classAServerErroris thrown as a result of a remote method invocation when anErroris thrown while processing the invocation on the server, either while unmarshalling the arguments, executing the remote method itself, or marshalling the return value.classAServerExceptionis thrown as a result of a remote method invocation when aRemoteExceptionis thrown while processing the invocation on the server, either while unmarshalling the arguments or executing the remote method itself.classDeprecated.no replacementclassAStubNotFoundExceptionis thrown if a valid stub class could not be found for a remote object when it is exported.classAnUnexpectedExceptionis 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 thethrowsclause of the method in the remote interface.classAnUnknownHostExceptionis thrown if ajava.net.UnknownHostExceptionoccurs while creating a connection to the remote host for a remote method call.classAnUnmarshalExceptioncan 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.IOExceptionoccurs unmarshalling parameters (on the server side) or the return value (on the client side).Methods in java.rmi that throw IOExceptionModifier and TypeMethodDescriptionMarshalledObject.get()Returns a new copy of the contained marshalledobject.Constructors in java.rmi that throw IOExceptionModifierConstructorDescriptionMarshalledObject(T obj) Creates a newMarshalledObjectthat contains the serialized representation of the current state of the supplied object. -
Uses of IOException in java.rmi.server
Subclasses of IOException in java.rmi.serverModifier and TypeClassDescriptionclassAnExportExceptionis aRemoteExceptionthrown if an attempt to export a remote object fails.classDeprecated.no replacement.classDeprecated.no replacement.classDeprecated.This class is obsolete.Methods in java.rmi.server that throw IOExceptionModifier and TypeMethodDescriptionRMIServerSocketFactory.createServerSocket(int port) Create a server socket on the specified port (port 0 indicates an anonymous port).abstract ServerSocketRMISocketFactory.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 SocketRMISocketFactory.createSocket(String host, int port) Creates a client socket connected to the specified host and port.voidRemoteCall.done()Deprecated.no replacementRemoteCall.getInputStream()Deprecated.no replacementRemoteCall.getOutputStream()Deprecated.no replacementRemoteCall.getResultStream(boolean success) Deprecated.no replacementstatic ObjIDObjID.read(ObjectInput in) Constructs and returns a newObjIDinstance by unmarshalling a binary representation from anObjectInputinstance.static UIDConstructs and returns a newUIDinstance by unmarshalling a binary representation from anDataInputinstance.voidRemoteCall.releaseInputStream()Deprecated.no replacementvoidRemoteCall.releaseOutputStream()Deprecated.no replacementstatic voidRMISocketFactory.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).voidObjID.write(ObjectOutput out) Marshals a binary representation of thisObjIDto anObjectOutputinstance.voidUID.write(DataOutput out) Marshals a binary representation of thisUIDto aDataOutputinstance. -
Uses of IOException in java.security
Methods in java.security that throw IOExceptionModifier and TypeMethodDescriptionvoidCertificate.decode(InputStream stream) Deprecated, for removal: This API element is subject to removal in a future version.Decodes a certificate from an input stream.voidCertificate.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 thedecodemethod.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 voidAlgorithmParametersSpi.engineInit(byte[] params) Imports the specified parameters and decodes them according to the primary decoding format for parameters.protected abstract voidAlgorithmParametersSpi.engineInit(byte[] params, String format) Imports the parameters fromparamsand decodes them according to the specified decoding format.abstract voidKeyStoreSpi.engineLoad(InputStream stream, char[] password) Loads the keystore from the given input stream.voidKeyStoreSpi.engineLoad(KeyStore.LoadStoreParameter param) Loads the keystore using the givenKeyStore.LoadStoreParameter.booleanKeyStoreSpi.engineProbe(InputStream stream) Probes the specified input stream to determine whether it contains a keystore that is supported by this implementation, or not.abstract voidKeyStoreSpi.engineStore(OutputStream stream, char[] password) Stores this keystore to the given output stream, and protects its integrity with the given password.voidKeyStoreSpi.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 KeyStoreKeyStore.getInstance(File file, char[] password) Returns a loaded keystore object of the appropriate keystore type.static final KeyStoreKeyStore.getInstance(File file, KeyStore.LoadStoreParameter param) Returns a loaded keystore object of the appropriate keystore type.SignedObject.getObject()Retrieves the encapsulated object.final voidAlgorithmParameters.init(byte[] params) Imports the specified parameters and decodes them according to the primary decoding format for parameters.final voidImports the parameters fromparamsand decodes them according to the specified decoding scheme.final voidKeyStore.load(InputStream stream, char[] password) Loads this keystore from the given input stream.final voidKeyStore.load(KeyStore.LoadStoreParameter param) Loads this keystore using the givenLoadStoreParameter.voidProvider.load(InputStream inStream) Reads a property list (key and element pairs) from the input stream.intDigestInputStream.read()Reads a byte, and updates the message digest (if the digest function is on).intDigestInputStream.read(byte[] b, int off, int len) Reads into a byte array, and updates the message digest (if the digest function is on).final voidKeyStore.store(OutputStream stream, char[] password) Stores this keystore to the given output stream, and protects its integrity with the given password.final voidKeyStore.store(KeyStore.LoadStoreParameter param) Stores this keystore using the givenLoadStoreParameter.voidDigestOutputStream.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.voidDigestOutputStream.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.Constructors in java.security that throw IOExceptionModifierConstructorDescriptionSignedObject(Serializable object, PrivateKey signingKey, Signature signingEngine) Constructs aSignedObjectfrom any Serializable object. -
Uses of IOException in java.security.cert
Methods in java.security.cert that throw IOExceptionModifier and TypeMethodDescriptionvoidX509CRLSelector.addIssuerName(byte[] name) Adds a name to the issuerNames criterion.voidX509CRLSelector.addIssuerName(String name) Deprecated.voidX509CertSelector.addPathToName(int type, byte[] name) Adds a name to the pathToNames criterion.voidX509CertSelector.addPathToName(int type, String name) Adds a name to the pathToNames criterion.voidX509CertSelector.addSubjectAlternativeName(int type, byte[] name) Adds a name to the subjectAlternativeNames criterion.voidX509CertSelector.addSubjectAlternativeName(int type, String name) Adds a name to the subjectAlternativeNames criterion.voidExtension.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.voidX509CertSelector.setExtendedKeyUsage(Set<String> keyPurposeSet) Sets the extendedKeyUsage criterion.voidX509CertSelector.setIssuer(byte[] issuerDN) Sets the issuer criterion.voidDeprecated.voidX509CRLSelector.setIssuerNames(Collection<?> names) Note: use X509CRLSelector.setIssuers(Collection) instead or only specify the byte array form of distinguished names when using this method.voidX509CertSelector.setNameConstraints(byte[] bytes) Sets the name constraints criterion.voidX509CertSelector.setPathToNames(Collection<List<?>> names) Sets the pathToNames criterion.voidSets the policy constraint.voidX509CertSelector.setSubject(byte[] subjectDN) Sets the subject criterion.voidX509CertSelector.setSubject(String subjectDN) Deprecated.voidX509CertSelector.setSubjectAlternativeNames(Collection<List<?>> names) Sets the subjectAlternativeNames criterion.voidX509CertSelector.setSubjectPublicKey(byte[] key) Sets the subjectPublicKey criterion.voidX509CertSelector.setSubjectPublicKeyAlgID(String oid) Sets the subjectPublicKeyAlgID criterion.Constructors in java.security.cert that throw IOExceptionModifierConstructorDescriptionPolicyQualifierInfo(byte[] encoded) Creates an instance ofPolicyQualifierInfofrom the encoded bytes. -
Uses of IOException in java.util
Subclasses of IOException in java.utilModifier and TypeClassDescriptionclassThrown 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 thePropertiesspecification.Methods in java.util that return IOExceptionModifier and TypeMethodDescriptionFormatter.ioException()Returns theIOExceptionlast thrown by this formatter'sAppendable.Scanner.ioException()Returns theIOExceptionlast thrown by thisScanner's underlyingReadable.Methods in java.util that throw IOExceptionModifier and TypeMethodDescriptionvoidProperties.load(InputStream inStream) Reads a property list (key and element pairs) from the input byte stream.voidReads a property list (key and element pairs) from the input character stream in a simple line-oriented format.voidProperties.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.voidProperties.store(OutputStream out, String comments) Writes this property list (key and element pairs) in thisPropertiestable to the output stream in a format suitable for loading into aPropertiestable using theload(InputStream)method.voidWrites this property list (key and element pairs) in thisPropertiestable to the output character stream in a format suitable for using theload(Reader)method.voidProperties.storeToXML(OutputStream os, String comment) Emits an XML document representing all of the properties contained in this table.voidProperties.storeToXML(OutputStream os, String comment, String encoding) Emits an XML document representing all of the properties contained in this table, using the specified encoding.voidProperties.storeToXML(OutputStream os, String comment, Charset charset) Emits an XML document representing all of the properties contained in this table, using the specified encoding.Constructors in java.util that throw IOExceptionModifierConstructorDescriptionConstructs 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 newScannerthat produces values scanned from the specified file.Constructs a newScannerthat produces values scanned from the specified file.Constructs a newScannerthat produces values scanned from the specified file.Constructs a newScannerthat produces values scanned from the specified file. -
Uses of IOException in java.util.jar
Subclasses of IOException in java.util.jarModifier and TypeClassDescriptionclassSignals that an error of some sort has occurred while reading from or writing to a JAR file.Methods in java.util.jar that throw IOExceptionModifier and TypeMethodDescriptionJarEntry.getAttributes()Returns theManifestAttributesfor this entry, ornullif 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, ornullif 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.voidJarOutputStream.putNextEntry(ZipEntry ze) Begins writing a new JAR file entry and positions the stream to the start of the entry data.intJarInputStream.read(byte[] b, int off, int len) Reads from the current JAR entry into an array of bytes, returning the number of inflated bytes.voidManifest.read(InputStream is) Reads the Manifest from the specified InputStream.voidManifest.write(OutputStream out) Writes the Manifest to the specified OutputStream.Constructors in java.util.jar that throw IOExceptionModifierConstructorDescriptionCreates a newJarFileto read from the specifiedFileobject.Creates a newJarFileto read from the specifiedFileobject.Creates a newJarFileto read from the specifiedFileobject in the specified mode.JarFile(File file, boolean verify, int mode, Runtime.Version version) Creates a newJarFileto read from the specifiedFileobject in the specified mode.Creates a newJarFileto read from the specified filename.Creates a newJarFileto read from the specified filename.Creates a newJarInputStreamand reads the optional manifest.JarInputStream(InputStream in, boolean verify) Creates a newJarInputStreamand reads the optional manifest.Creates a newJarOutputStreamwith no manifest.JarOutputStream(OutputStream out, Manifest man) Creates a newJarOutputStreamwith the specifiedManifest.Manifest(InputStream is) Constructs a new Manifest from the specified input stream. -
Uses of IOException in java.util.logging
Methods in java.util.logging that throw IOExceptionModifier and TypeMethodDescriptionvoidLogManager.readConfiguration()Reads and initializes the logging configuration.voidLogManager.readConfiguration(InputStream ins) Reads and initializes the logging configuration from the given input stream.voidLogManager.updateConfiguration(InputStream ins, Function<String, BiFunction<String, String, String>> mapper) Updates the logging configuration.voidLogManager.updateConfiguration(Function<String, BiFunction<String, String, String>> mapper) Updates the logging configuration.Constructors in java.util.logging that throw IOExceptionModifierConstructorDescriptionConstruct a defaultFileHandler.FileHandler(String pattern) Initialize aFileHandlerto write to the given filename.FileHandler(String pattern, boolean append) Initialize aFileHandlerto write to the given filename, with optional append.FileHandler(String pattern, int limit, int count) Initialize aFileHandlerto write to a set of files.FileHandler(String pattern, int limit, int count, boolean append) Initialize aFileHandlerto write to a set of files with optional append.FileHandler(String pattern, long limit, int count, boolean append) Initialize aFileHandlerto write to a set of files with optional append.Create aSocketHandler, using onlyLogManagerproperties (or their defaults).SocketHandler(String host, int port) Construct aSocketHandlerusing a specified host and port. -
Uses of IOException in java.util.prefs
Methods in java.util.prefs that throw IOExceptionModifier and TypeMethodDescriptionvoidAbstractPreferences.exportNode(OutputStream os) Implements theexportNodemethod as per the specification inPreferences.exportNode(OutputStream).abstract voidPreferences.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).voidAbstractPreferences.exportSubtree(OutputStream os) Implements theexportSubtreemethod as per the specification inPreferences.exportSubtree(OutputStream).abstract voidPreferences.exportSubtree(OutputStream os) Emits an XML document representing all of the preferences contained in this node and all of its descendants.static voidPreferences.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
Subclasses of IOException in java.util.zipModifier and TypeClassDescriptionclassSignals that a ZIP exception of some sort has occurred.Methods in java.util.zip that throw IOExceptionModifier and TypeMethodDescriptionintDeflaterInputStream.available()Returns 0 after EOF has been reached, otherwise always return 1.intInflaterInputStream.available()Returns 0 after EOF has been reached, otherwise always return 1.intZipInputStream.available()Returns 0 when end of stream is detected for the current ZIP entry orZipInputStream.closeEntry()has been called on the current ZIP entry, otherwise returns 1.voidDeflaterInputStream.close()Closes this input stream and its underlying input stream, discarding any pending uncompressed data.voidDeflaterOutputStream.close()Writes remaining compressed data to the output stream and closes the underlying stream.voidGZIPInputStream.close()Closes this input stream and releases any system resources associated with the stream.voidInflaterInputStream.close()Closes this input stream and releases any system resources associated with the stream.voidInflaterOutputStream.close()Writes any remaining uncompressed data to the output stream and closes the underlying output stream.voidZipFile.close()Closes the ZIP file.voidZipInputStream.close()Closes this input stream and releases any system resources associated with the stream.voidZipOutputStream.close()Closes the underlying stream and the stream being filtered after the contents of the ZIP output stream are fully written.voidZipInputStream.closeEntry()Closes the current ZIP entry and positions the stream for reading the next entry.voidZipOutputStream.closeEntry()Closes the current ZIP entry and positions the stream for writing the next entry.protected voidDeflaterOutputStream.deflate()Writes next block of compressed data to the output stream.protected voidInflaterInputStream.fill()Fills input buffer with more data to decompress.voidDeflaterOutputStream.finish()Finishes writing compressed data to the output stream without closing the underlying stream.voidGZIPOutputStream.finish()Finishes writing compressed data to the output stream without closing the underlying stream.voidInflaterOutputStream.finish()Finishes writing uncompressed data to the output stream without closing the underlying stream.voidZipOutputStream.finish()Finishes writing the contents of the ZIP output stream without closing the underlying stream.voidDeflaterOutputStream.flush()Flushes the compressed output stream.voidInflaterOutputStream.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.voidZipOutputStream.putNextEntry(ZipEntry e) Begins writing a new ZIP file entry and positions the stream to the start of the entry data.intCheckedInputStream.read()Reads a byte.intCheckedInputStream.read(byte[] buf, int off, int len) Reads into an array of bytes.intDeflaterInputStream.read()Reads a single byte of compressed data from the input stream.intDeflaterInputStream.read(byte[] b, int off, int len) Reads compressed data into a byte array.intGZIPInputStream.read(byte[] buf, int off, int len) Reads uncompressed data into an array of bytes, returning the number of inflated bytes.intInflaterInputStream.read()Reads a byte of uncompressed data.intInflaterInputStream.read(byte[] b, int off, int len) Reads uncompressed data into an array of bytes, returning the number of inflated bytes.intZipInputStream.read()Reads the next byte of data from the input stream for the current ZIP entry.intZipInputStream.read(byte[] b, int off, int len) Reads the requested number of bytes from the input stream into the given byte array for the current ZIP entry returning the number of inflated bytes.byte[]ZipInputStream.readAllBytes()Reads all remaining bytes from the input stream for the current ZIP entry.intZipInputStream.readNBytes(byte[] b, int off, int len) Reads the requested number of bytes from the input stream into the given byte array for the current ZIP entry returning the number of inflated bytes.byte[]ZipInputStream.readNBytes(int len) Reads up to a specified number of bytes from the input stream for the current ZIP entry.voidDeflaterInputStream.reset()This operation is not supported.voidInflaterInputStream.reset()Repositions this stream to the position at the time themarkmethod was last called on this input stream.longCheckedInputStream.skip(long n) Skips specified number of bytes of input.longDeflaterInputStream.skip(long n) Skips over and discards data from the input stream.longInflaterInputStream.skip(long n) Skips specified number of bytes of uncompressed data.longZipInputStream.skip(long n) Skips over and discardsnbytes of data from this input stream for the current ZIP entry.voidZipInputStream.skipNBytes(long n) Skips over and discards exactlynbytes of data from this input stream for the current ZIP entry.longZipInputStream.transferTo(OutputStream out) Reads all bytes from this input stream for the current ZIP entry and writes the bytes to the given output stream in the order that they are read.voidCheckedOutputStream.write(byte[] b, int off, int len) Writes an array of bytes.voidCheckedOutputStream.write(int b) Writes a byte.voidDeflaterOutputStream.write(byte[] b, int off, int len) Writes an array of bytes to the compressed output stream.voidDeflaterOutputStream.write(int b) Writes a byte to the compressed output stream.voidGZIPOutputStream.write(byte[] buf, int off, int len) Writes array of bytes to the compressed output stream.voidInflaterOutputStream.write(byte[] b, int off, int len) Writes an array of bytes to the uncompressed output stream.voidInflaterOutputStream.write(int b) Writes a byte to the uncompressed output stream.voidZipOutputStream.write(byte[] b, int off, int len) Writes an array of bytes to the current ZIP entry data.Constructors in java.util.zip that throw IOExceptionModifierConstructorDescriptionCreates 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 newZipFileto read from the specifiedFileobject in the specified mode.Opens a newZipFileto read from the specifiedFileobject 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
Subclasses of IOException in javax.annotation.processingModifier and TypeClassDescriptionclassIndicates aFilerdetected an attempt to open a file that would violate the guarantees provided by theFiler.Methods in javax.annotation.processing that throw IOExceptionModifier 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
Methods in javax.crypto that throw IOExceptionModifier and TypeMethodDescriptionintCipherInputStream.available()Returns the number of bytes that can be read from this input stream without blocking.voidCipherInputStream.close()Closes this input stream and releases any system resources associated with the stream.voidCipherOutputStream.close()Closes this output stream and releases any system resources associated with this stream.voidCipherOutputStream.flush()Flushes this output stream by forcing any buffered output bytes that have already been processed by the encapsulatedCipherobject to be written out.byte[]EncryptedPrivateKeyInfo.getEncoded()Returns the ASN.1 encoding of this object.final ObjectRetrieves the original (encapsulated) object.final ObjectRetrieves the original (encapsulated) object.final ObjectRetrieves the original (encapsulated) object.intCipherInputStream.read()Reads the next byte of data from this input stream.intCipherInputStream.read(byte[] b) Reads up tob.lengthbytes of data from this input stream into an array of bytes.intCipherInputStream.read(byte[] b, int off, int len) Reads up tolenbytes of data from this input stream into an array of bytes.longCipherInputStream.skip(long n) Skipsnbytes of input from the bytes that can be read from this input stream without blocking.voidCipherOutputStream.write(byte[] b) Writesb.lengthbytes from the specified byte array to this output stream.voidCipherOutputStream.write(byte[] b, int off, int len) Writeslenbytes from the specified byte array starting at offsetoffto this output stream.voidCipherOutputStream.write(int b) Writes the specified byte to this output stream.Constructors in javax.crypto that throw IOExceptionModifierConstructorDescriptionEncryptedPrivateKeyInfo(byte[] encoded) Constructs (i.e., parses) anEncryptedPrivateKeyInfofrom its ASN.1 encoding.SealedObject(Serializable object, Cipher c) Constructs aSealedObjectfrom anySerializableobject. -
Uses of IOException in javax.imageio
Subclasses of IOException in javax.imageioModifier and TypeClassDescriptionclassAn exception class used for signaling run-time failure of reading and writing operations.Methods in javax.imageio that throw IOExceptionModifier and TypeMethodDescriptionbooleanImageWriter.canInsertEmpty(int imageIndex) Returnstrueif the writer supports the insertion of a new, empty image at the given index.booleanImageWriter.canInsertImage(int imageIndex) Returnstrueif the writer supports the insertion of a new image at the given index.booleanImageWriter.canRemoveImage(int imageIndex) Returnstrueif the writer supports the removal of an existing image at the given index.booleanImageWriter.canReplaceImageMetadata(int imageIndex) Returnstrueif it is possible to replace the image metadata associated with an existing image with indeximageIndex.booleanImageWriter.canReplacePixels(int imageIndex) Returnstrueif the writer allows pixels of the given image to be replaced using thereplacePixelsmethods.booleanImageWriter.canReplaceStreamMetadata()Returnstrueif it is possible to replace the stream metadata already present in the output.booleanImageWriter.canWriteEmpty()Returnstrueif 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 ImageInputStreamImageIO.createImageInputStream(Object input) Returns anImageInputStreamthat will take its input from the givenObject.static ImageOutputStreamImageIO.createImageOutputStream(Object output) Returns anImageOutputStreamthat will send its output to the givenObject.voidImageWriter.endInsertEmpty()Completes the insertion of a new image that was begun with a prior call toprepareInsertEmpty.voidImageWriter.endReplacePixels()Terminates a sequence of calls toreplacePixels.voidImageWriter.endWriteEmpty()Completes the writing of a new image that was begun with a prior call toprepareWriteEmpty.voidImageWriter.endWriteSequence()Completes the writing of a sequence of images begun withprepareWriteSequence.floatImageReader.getAspectRatio(int imageIndex) Returns the aspect ratio of the given image (that is, its width divided by its height) as afloat.ImageReader.getFormatName()Returns aStringidentifying the format of the input source.abstract intImageReader.getHeight(int imageIndex) Returns the height in pixels of the given image within the input source.abstract IIOMetadataImageReader.getImageMetadata(int imageIndex) Returns anIIOMetadataobject containing metadata associated with the given image, ornullif 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 anIIOMetadataobject representing the metadata associated with the given image, ornullif the reader does not support reading metadata or none is available.abstract Iterator<ImageTypeSpecifier> ImageReader.getImageTypes(int imageIndex) Returns anIteratorcontaining possible image types to which the given image may be decoded, in the form ofImageTypeSpecifierss.abstract intImageReader.getNumImages(boolean allowSearch) Returns the number of images, not including thumbnails, available from the current input source.intImageReader.getNumThumbnails(int imageIndex) Returns the number of thumbnail preview images associated with the given image.ImageReader.getRawImageType(int imageIndex) Returns anImageTypeSpecifierindicating theSampleModelandColorModelwhich most closely represents the "raw" internal format of the image.abstract IIOMetadataImageReader.getStreamMetadata()Returns anIIOMetadataobject representing the metadata associated with the input source as a whole (i.e., not associated with any particular image), ornullif 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 anIIOMetadataobject representing the metadata associated with the input source as a whole (i.e., not associated with any particular image).intImageReader.getThumbnailHeight(int imageIndex, int thumbnailIndex) Returns the height of the thumbnail preview image indexed bythumbnailIndex, associated with the image indexed byImageIndex.intImageReader.getThumbnailWidth(int imageIndex, int thumbnailIndex) Returns the width of the thumbnail preview image indexed bythumbnailIndex, associated with the image indexed byImageIndex.intImageReader.getTileGridXOffset(int imageIndex) Returns the X coordinate of the upper-left corner of tile (0, 0) in the given image.intImageReader.getTileGridYOffset(int imageIndex) Returns the Y coordinate of the upper-left corner of tile (0, 0) in the given image.intImageReader.getTileHeight(int imageIndex) Returns the height of a tile in the given image.intImageReader.getTileWidth(int imageIndex) Returns the width of a tile in the given image.abstract intImageReader.getWidth(int imageIndex) Returns the width in pixels of the given image within the input source.booleanImageReader.hasThumbnails(int imageIndex) Returnstrueif the given image has thumbnail preview images associated with it.booleanImageReader.isImageTiled(int imageIndex) Returnstrueif the image is organized into tiles, that is, equal-sized non-overlapping rectangles.booleanImageReader.isRandomAccessEasy(int imageIndex) Returnstrueif the storage format of the given image places no inherent impediment on random access to pixels.voidImageWriter.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.voidImageWriter.prepareReplacePixels(int imageIndex, Rectangle region) Prepares the writer to handle a series of calls to thereplacePixelsmethods.voidImageWriter.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.voidImageWriter.prepareWriteSequence(IIOMetadata streamMetadata) Prepares a stream to accept a series of subsequentwriteToSequencecalls, using the provided stream metadata object.static BufferedImageReturns aBufferedImageas the result of decoding a suppliedFilewith anImageReaderchosen automatically from among those currently registered.static BufferedImageImageIO.read(InputStream input) Returns aBufferedImageas the result of decoding a suppliedInputStreamwith anImageReaderchosen automatically from among those currently registered.static BufferedImageReturns aBufferedImageas the result of decoding a suppliedURLwith anImageReaderchosen automatically from among those currently registered.static BufferedImageImageIO.read(ImageInputStream stream) Returns aBufferedImageas the result of decoding a suppliedImageInputStreamwith anImageReaderchosen automatically from among those currently registered.ImageReader.read(int imageIndex) Reads the image indexed byimageIndexand returns it as a completeBufferedImage, using a defaultImageReadParam.abstract BufferedImageImageReader.read(int imageIndex, ImageReadParam param) Reads the image indexed byimageIndexand returns it as a completeBufferedImage, using a suppliedImageReadParam.ImageReader.readAll(int imageIndex, ImageReadParam param) Reads the image indexed byimageIndexand returns anIIOImagecontaining the image, thumbnails, and associated image metadata, using a suppliedImageReadParam.ImageReader.readAll(Iterator<? extends ImageReadParam> params) Returns anIteratorcontaining all the images, thumbnails, and metadata, starting at the index given bygetMinIndex, from the input source in the form ofIIOImageobjects.ImageReader.readAsRenderedImage(int imageIndex, ImageReadParam param) Returns aRenderedImageobject that contains the contents of the image indexed byimageIndex.ImageReader.readRaster(int imageIndex, ImageReadParam param) Returns a newRasterobject 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 byImageIndexas aBufferedImage.ImageReader.readTile(int imageIndex, int tileX, int tileY) Reads the tile indicated by thetileXandtileYarguments, returning it as aBufferedImage.ImageReader.readTileRaster(int imageIndex, int tileX, int tileY) Returns a newRasterobject containing the raw pixel data from the tile, without any color conversion applied.voidImageWriter.removeImage(int imageIndex) Removes an image from the stream.voidImageWriter.replaceImageMetadata(int imageIndex, IIOMetadata imageMetadata) Replaces the image metadata associated with an existing image.voidImageWriter.replacePixels(Raster raster, ImageWriteParam param) Replaces a portion of an image already present in the output with a portion of the givenRaster.voidImageWriter.replacePixels(RenderedImage image, ImageWriteParam param) Replaces a portion of an image already present in the output with a portion of the given image.voidImageWriter.replaceStreamMetadata(IIOMetadata streamMetadata) Replaces the stream metadata in the output with new information.static booleanImageIO.write(RenderedImage im, String formatName, File output) Writes an image using an arbitraryImageWriterthat supports the given format to aFile.static booleanImageIO.write(RenderedImage im, String formatName, OutputStream output) Writes an image using an arbitraryImageWriterthat supports the given format to anOutputStream.static booleanImageIO.write(RenderedImage im, String formatName, ImageOutputStream output) Writes an image using an arbitraryImageWriterthat supports the given format to anImageOutputStream.voidImageWriter.write(RenderedImage image) Appends a complete image stream consisting of a single image with default metadata and thumbnails to the output.voidAppends a complete image stream containing a single image with default metadata and thumbnails to the output.abstract voidImageWriter.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.voidImageWriter.writeInsert(int imageIndex, IIOImage image, ImageWriteParam param) Inserts a new image into an existing image stream.voidImageWriter.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
Subclasses of IOException in javax.imageio.metadataModifier and TypeClassDescriptionclassAnIIOInvalidTreeExceptionis thrown when an attempt by anIIOMetadataobject to parse a tree ofIIOMetadataNodes fails. -
Uses of IOException in javax.imageio.spi
Methods in javax.imageio.spi that throw IOExceptionModifier and TypeMethodDescriptionabstract booleanImageReaderSpi.canDecodeInput(Object source) Returnstrueif the supplied source object appears to be of the format supported by this reader.ImageInputStreamSpi.createInputStreamInstance(Object input) Returns an instance of theImageInputStreamimplementation associated with this service provider.abstract ImageInputStreamImageInputStreamSpi.createInputStreamInstance(Object input, boolean useCache, File cacheDir) Returns an instance of theImageInputStreamimplementation associated with this service provider.ImageOutputStreamSpi.createOutputStreamInstance(Object output) Returns an instance of theImageOutputStreamimplementation associated with this service provider.abstract ImageOutputStreamImageOutputStreamSpi.createOutputStreamInstance(Object output, boolean useCache, File cacheDir) Returns an instance of theImageOutputStreamimplementation associated with this service provider.ImageReaderSpi.createReaderInstance()Returns an instance of theImageReaderimplementation associated with this service provider.abstract ImageReaderImageReaderSpi.createReaderInstance(Object extension) Returns an instance of theImageReaderimplementation associated with this service provider.ImageWriterSpi.createWriterInstance()Returns an instance of theImageWriterimplementation associated with this service provider.abstract ImageWriterImageWriterSpi.createWriterInstance(Object extension) Returns an instance of theImageWriterimplementation associated with this service provider. -
Uses of IOException in javax.imageio.stream
Methods in javax.imageio.stream that throw IOExceptionModifier and TypeMethodDescriptionprotected final voidImageInputStreamImpl.checkClosed()Throws anIOExceptionif the stream has been closed.voidFileCacheImageInputStream.close()Closes thisFileCacheImageInputStream, closing and removing the cache file.voidFileCacheImageOutputStream.close()Closes thisFileCacheImageOutputStream.voidFileImageOutputStream.close()voidImageInputStream.close()Closes the stream.voidImageInputStreamImpl.close()voidMemoryCacheImageInputStream.close()Closes thisMemoryCacheImageInputStream, freeing the cache.voidMemoryCacheImageOutputStream.close()Closes thisMemoryCacheImageOutputStream.voidImageInputStream.flush()Discards the initial position of the stream prior to the current stream position.voidImageInputStreamImpl.flush()voidFileCacheImageOutputStream.flushBefore(long pos) Flushes all data prior to the given position to the underlying destination, such as anOutputStreamorFile.voidImageInputStream.flushBefore(long pos) Discards the initial portion of the stream prior to the indicated position.voidImageInputStreamImpl.flushBefore(long pos) voidImageOutputStream.flushBefore(long pos) Flushes all data prior to the given position to the underlying destination, such as anOutputStreamorFile.voidMemoryCacheImageOutputStream.flushBefore(long pos) Flushes all data prior to the given position to the underlying destination, such as anOutputStreamorFile.protected final voidImageOutputStreamImpl.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.intImageInputStream.getBitOffset()Returns the current bit offset, as an integer between 0 and 7, inclusive.intImageInputStreamImpl.getBitOffset()longImageInputStream.getStreamPosition()Returns the current byte position of the stream.longImageInputStreamImpl.getStreamPosition()longImageInputStream.length()Returns the total length of the stream, if known.intFileCacheImageInputStream.read()intFileCacheImageInputStream.read(byte[] b, int off, int len) intFileCacheImageOutputStream.read()intFileCacheImageOutputStream.read(byte[] b, int off, int len) intFileImageInputStream.read()intFileImageInputStream.read(byte[] b, int off, int len) intFileImageOutputStream.read()intFileImageOutputStream.read(byte[] b, int off, int len) intImageInputStream.read()Reads a single byte from the stream and returns it as an integer between 0 and 255.intImageInputStream.read(byte[] b) Reads up tob.lengthbytes from the stream, and stores them intobstarting at index 0.intImageInputStream.read(byte[] b, int off, int len) Reads up tolenbytes from the stream, and stores them intobstarting at indexoff.abstract intImageInputStreamImpl.read()Reads a single byte from the stream and returns it as anintbetween 0 and 255.intImageInputStreamImpl.read(byte[] b) A convenience method that callsread(b, 0, b.length).abstract intImageInputStreamImpl.read(byte[] b, int off, int len) Reads up tolenbytes from the stream, and stores them intobstarting at indexoff.intMemoryCacheImageInputStream.read()intMemoryCacheImageInputStream.read(byte[] b, int off, int len) intMemoryCacheImageOutputStream.read()intMemoryCacheImageOutputStream.read(byte[] b, int off, int len) intImageInputStream.readBit()Reads a single bit from the stream and returns it as anintwith the value0or1.intImageInputStreamImpl.readBit()longImageInputStream.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.longImageInputStreamImpl.readBits(int numBits) booleanImageInputStream.readBoolean()Reads a byte from the stream and returns abooleanvalue oftrueif it is nonzero,falseif it is zero.booleanImageInputStreamImpl.readBoolean()byteImageInputStream.readByte()Reads a byte from the stream and returns it as abytevalue.byteImageInputStreamImpl.readByte()voidImageInputStream.readBytes(IIOByteBuffer buf, int len) Reads up tolenbytes from the stream, and modifies the suppliedIIOByteBufferto indicate the byte array, offset, and length where the data may be found.voidImageInputStreamImpl.readBytes(IIOByteBuffer buf, int len) charImageInputStream.readChar()Equivalent toreadUnsignedShort, except that the result is returned using thechardatatype.charImageInputStreamImpl.readChar()doubleImageInputStream.readDouble()Reads 8 bytes from the stream, and (conceptually) concatenates them according to the current byte order and returns the result as adouble.doubleImageInputStreamImpl.readDouble()floatImageInputStream.readFloat()Reads 4 bytes from the stream, and (conceptually) concatenates them according to the current byte order and returns the result as afloat.floatImageInputStreamImpl.readFloat()voidImageInputStream.readFully(byte[] b) Readsb.lengthbytes from the stream, and stores them intobstarting at index0.voidImageInputStream.readFully(byte[] b, int off, int len) Readslenbytes from the stream, and stores them intobstarting at indexoff.voidImageInputStream.readFully(char[] c, int off, int len) Readslenchars (unsigned 16-bit integers) from the stream according to the current byte order, and stores them intocstarting at indexoff.voidImageInputStream.readFully(double[] d, int off, int len) Readslendoubles (64-bit IEEE double-precision floats) from the stream according to the current byte order, and stores them intodstarting at indexoff.voidImageInputStream.readFully(float[] f, int off, int len) Readslenfloats (32-bit IEEE single-precision floats) from the stream according to the current byte order, and stores them intofstarting at indexoff.voidImageInputStream.readFully(int[] i, int off, int len) Readslenints (signed 32-bit integers) from the stream according to the current byte order, and stores them intoistarting at indexoff.voidImageInputStream.readFully(long[] l, int off, int len) Readslenlongs (signed 64-bit integers) from the stream according to the current byte order, and stores them intolstarting at indexoff.voidImageInputStream.readFully(short[] s, int off, int len) Readslenshorts (signed 16-bit integers) from the stream according to the current byte order, and stores them intosstarting at indexoff.voidImageInputStreamImpl.readFully(byte[] b) voidImageInputStreamImpl.readFully(byte[] b, int off, int len) voidImageInputStreamImpl.readFully(char[] c, int off, int len) voidImageInputStreamImpl.readFully(double[] d, int off, int len) voidImageInputStreamImpl.readFully(float[] f, int off, int len) voidImageInputStreamImpl.readFully(int[] i, int off, int len) voidImageInputStreamImpl.readFully(long[] l, int off, int len) voidImageInputStreamImpl.readFully(short[] s, int off, int len) intImageInputStream.readInt()Reads 4 bytes from the stream, and (conceptually) concatenates them according to the current byte order and returns the result as anint.intImageInputStreamImpl.readInt()ImageInputStream.readLine()Reads the next line of text from the input stream.ImageInputStreamImpl.readLine()longImageInputStream.readLong()Reads 8 bytes from the stream, and (conceptually) concatenates them according to the current byte order and returns the result as along.longImageInputStreamImpl.readLong()shortImageInputStream.readShort()Reads two bytes from the stream, and (conceptually) concatenates them according to the current byte order, and returns the result as ashortvalue.shortImageInputStreamImpl.readShort()intImageInputStream.readUnsignedByte()Reads a byte from the stream, and (conceptually) converts it to an int, masks it with0xffin order to strip off any sign-extension bits, and returns it as abytevalue.intImageInputStreamImpl.readUnsignedByte()longImageInputStream.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 with0xffffffffLin order to strip off any sign-extension bits, and returns the result as an unsignedlongvalue.longImageInputStreamImpl.readUnsignedInt()intImageInputStream.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 with0xffffin order to strip off any sign-extension buts, and returns the result as an unsignedintvalue.intImageInputStreamImpl.readUnsignedShort()ImageInputStream.readUTF()Reads in a string that has been encoded using a modified UTF-8 format.ImageInputStreamImpl.readUTF()voidImageInputStream.reset()Returns the stream pointer to its previous position, including the bit offset, at the time of the most recent unmatched call tomark.voidImageInputStreamImpl.reset()Resets the current stream byte and bit positions from the stack of marked positions.voidFileCacheImageOutputStream.seek(long pos) Sets the current stream position and resets the bit offset to 0.voidFileImageOutputStream.seek(long pos) Sets the current stream position and resets the bit offset to 0.voidImageInputStream.seek(long pos) Sets the current stream position to the desired location.voidImageInputStreamImpl.seek(long pos) voidImageInputStream.setBitOffset(int bitOffset) Sets the bit offset to an integer between 0 and 7, inclusive.voidImageInputStreamImpl.setBitOffset(int bitOffset) intImageInputStream.skipBytes(int n) Moves the stream position forward by a given number of bytes.longImageInputStream.skipBytes(long n) Moves the stream position forward by a given number of bytes.intImageInputStreamImpl.skipBytes(int n) Advances the current stream position by callingseek(getStreamPosition() + n).longImageInputStreamImpl.skipBytes(long n) Advances the current stream position by callingseek(getStreamPosition() + n).voidFileCacheImageOutputStream.write(byte[] b, int off, int len) voidFileCacheImageOutputStream.write(int b) voidFileImageOutputStream.write(byte[] b, int off, int len) voidFileImageOutputStream.write(int b) voidImageOutputStream.write(byte[] b) Writes a sequence of bytes to the stream at the current position.voidImageOutputStream.write(byte[] b, int off, int len) Writes a sequence of bytes to the stream at the current position.voidImageOutputStream.write(int b) Writes a single byte to the stream at the current position.voidImageOutputStreamImpl.write(byte[] b) voidMemoryCacheImageOutputStream.write(byte[] b, int off, int len) voidMemoryCacheImageOutputStream.write(int b) voidImageOutputStream.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.voidImageOutputStreamImpl.writeBit(int bit) voidImageOutputStream.writeBits(long bits, int numBits) Writes a sequence of bits, given by thenumBitsleast significant bits of thebitsargument in left-to-right order, to the stream at the current bit offset within the current byte position.voidImageOutputStreamImpl.writeBits(long bits, int numBits) voidImageOutputStream.writeBoolean(boolean v) Writes abooleanvalue to the stream.voidImageOutputStreamImpl.writeBoolean(boolean v) voidImageOutputStream.writeByte(int v) Writes the 8 low-order bits ofvto the stream.voidImageOutputStreamImpl.writeByte(int v) voidImageOutputStream.writeBytes(String s) Writes a string to the output stream.voidImageOutputStreamImpl.writeBytes(String s) voidImageOutputStream.writeChar(int v) This method is a synonym forwriteShort.voidImageOutputStreamImpl.writeChar(int v) voidImageOutputStream.writeChars(char[] c, int off, int len) Writes a sequence of chars to the stream at the current position.voidImageOutputStream.writeChars(String s) Writes a string to the output stream.voidImageOutputStreamImpl.writeChars(char[] c, int off, int len) voidImageOutputStreamImpl.writeChars(String s) voidImageOutputStream.writeDouble(double v) Writes adoublevalue, which is comprised of four bytes, to the output stream.voidImageOutputStreamImpl.writeDouble(double v) voidImageOutputStream.writeDoubles(double[] d, int off, int len) Writes a sequence of doubles to the stream at the current position.voidImageOutputStreamImpl.writeDoubles(double[] d, int off, int len) voidImageOutputStream.writeFloat(float v) Writes afloatvalue, which is comprised of four bytes, to the output stream.voidImageOutputStreamImpl.writeFloat(float v) voidImageOutputStream.writeFloats(float[] f, int off, int len) Writes a sequence of floats to the stream at the current position.voidImageOutputStreamImpl.writeFloats(float[] f, int off, int len) voidImageOutputStream.writeInt(int v) Writes the 32 bits ofvto the stream.voidImageOutputStreamImpl.writeInt(int v) voidImageOutputStream.writeInts(int[] i, int off, int len) Writes a sequence of ints to the stream at the current position.voidImageOutputStreamImpl.writeInts(int[] i, int off, int len) voidImageOutputStream.writeLong(long v) Writes the 64 bits ofvto the stream.voidImageOutputStreamImpl.writeLong(long v) voidImageOutputStream.writeLongs(long[] l, int off, int len) Writes a sequence of longs to the stream at the current position.voidImageOutputStreamImpl.writeLongs(long[] l, int off, int len) voidImageOutputStream.writeShort(int v) Writes the 16 low-order bits ofvto the stream.voidImageOutputStreamImpl.writeShort(int v) voidImageOutputStream.writeShorts(short[] s, int off, int len) Writes a sequence of shorts to the stream at the current position.voidImageOutputStreamImpl.writeShorts(short[] s, int off, int len) voidWrites 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.voidConstructors in javax.imageio.stream that throw IOExceptionModifierConstructorDescriptionFileCacheImageInputStream(InputStream stream, File cacheDir) Constructs aFileCacheImageInputStreamthat will read from a givenInputStream.FileCacheImageOutputStream(OutputStream stream, File cacheDir) Constructs aFileCacheImageOutputStreamthat will write to a givenoutputStream.Constructs aFileImageInputStreamthat will read from a givenFile.Constructs aFileImageOutputStreamthat will write to a givenFile. -
Uses of IOException in javax.management
Methods in javax.management that throw IOExceptionModifier and TypeMethodDescriptionvoidMBeanServerConnection.addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) Adds a listener to a registered MBean.voidMBeanServerConnection.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 theObjectInstancefor a given MBean registered with the MBean server.MBeanServerConnection.invoke(ObjectName name, String operationName, Object[] params, String[] signature) Invokes an operation on an MBean.booleanMBeanServerConnection.isInstanceOf(ObjectName name, String className) Returns true if the MBean specified is an instance of the specified class, false otherwise.booleanMBeanServerConnection.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.voidMBeanServerConnection.removeNotificationListener(ObjectName name, NotificationListener listener) Removes a listener from a registered MBean.voidMBeanServerConnection.removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) Removes a listener from a registered MBean.voidMBeanServerConnection.removeNotificationListener(ObjectName name, ObjectName listener) Removes a listener from a registered MBean.voidMBeanServerConnection.removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) Removes a listener from a registered MBean.voidMBeanServerConnection.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.voidMBeanServerConnection.unregisterMBean(ObjectName name) Unregisters an MBean from the MBean server. -
Uses of IOException in javax.management.remote
Subclasses of IOException in javax.management.remoteModifier and TypeClassDescriptionclassException thrown byJMXConnectorFactoryandJMXConnectorServerFactorywhen a provider exists for the required protocol but cannot be used for some reason.classException thrown as the result of a remoteMBeanServermethod invocation when anErroris thrown while processing the invocation in the remote MBean server.Methods in javax.management.remote that throw IOExceptionModifier and TypeMethodDescriptionvoidJMXConnector.close()Closes the client connection to its server.voidJMXConnector.connect()Establishes the connection to the connector server.voidEstablishes the connection to the connector server.static JMXConnectorJMXConnectorFactory.connect(JMXServiceURL serviceURL) Creates a connection to the connector server at the given address.static JMXConnectorJMXConnectorFactory.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 anMBeanServerConnectionobject representing a remote MBean server.default MBeanServerConnectionJMXConnector.getMBeanServerConnection(Subject delegationSubject) Deprecated, for removal: This API element is subject to removal in a future version.This method supported the legacy Subject Delegation feature, which has been removed.static JMXConnectorJMXConnectorFactory.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 JMXConnectorServerJMXConnectorServerFactory.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.voidJMXConnectorServerMBean.start()Activates the connector server, that is, starts listening for client connections.voidJMXConnectorServerMBean.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
Methods in javax.management.remote.rmi that throw IOExceptionModifier and TypeMethodDescriptionvoidRMIConnection.addNotificationListener(ObjectName name, ObjectName listener, MarshalledObject filter, MarshalledObject handback, Subject delegationSubject) voidRMIConnectionImpl_Stub.addNotificationListener(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, MarshalledObject $param_MarshalledObject_4, Subject $param_Subject_5) voidRMIConnectionImpl.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 voidRMIServerImpl.clientClosed(RMIConnection client) Method called when a client connection created bymakeClientis closed.voidRMIConnection.close()Closes this connection.voidRMIConnectionImpl_Stub.close()voidRMIConnectionImpl.close()voidRMIConnector.close()voidRMIServerImpl.close()Closes this connection server.protected voidRMIJRMPServerImpl.closeClient(RMIConnection client) protected abstract voidRMIServerImpl.closeClient(RMIConnection client) Closes a client connection made bymakeClient.protected voidRMIJRMPServerImpl.closeServer()Called byRMIServerImpl.close()to close the connector server by unexporting this object.protected abstract voidRMIServerImpl.closeServer()Called byRMIServerImpl.close()to close the connector server.voidRMIConnector.connect()voidRMIConnection.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 voidRMIJRMPServerImpl.export()protected abstract voidRMIServerImpl.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()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) booleanRMIConnection.isInstanceOf(ObjectName name, String className, Subject delegationSubject) Handles the methodMBeanServerConnection.isInstanceOf(ObjectName, String).booleanRMIConnectionImpl_Stub.isInstanceOf(ObjectName $param_ObjectName_1, String $param_String_2, Subject $param_Subject_3) booleanRMIConnectionImpl.isInstanceOf(ObjectName name, String className, Subject delegationSubject) booleanRMIConnection.isRegistered(ObjectName name, Subject delegationSubject) Handles the methodMBeanServerConnection.isRegistered(ObjectName).booleanRMIConnectionImpl_Stub.isRegistered(ObjectName $param_ObjectName_1, Subject $param_Subject_2) booleanRMIConnectionImpl.isRegistered(ObjectName name, Subject delegationSubject) protected RMIConnectionRMIJRMPServerImpl.makeClient(String connectionId, Subject subject) Creates a new client connection as an RMI object exported through JRMP.protected abstract RMIConnectionRMIServerImpl.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) voidRMIConnection.removeNotificationListener(ObjectName name, ObjectName listener, MarshalledObject filter, MarshalledObject handback, Subject delegationSubject) voidRMIConnection.removeNotificationListener(ObjectName name, ObjectName listener, Subject delegationSubject) Handles the methodMBeanServerConnection.removeNotificationListener(ObjectName, ObjectName).voidRMIConnectionImpl_Stub.removeNotificationListener(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, MarshalledObject $param_MarshalledObject_4, Subject $param_Subject_5) voidRMIConnectionImpl_Stub.removeNotificationListener(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, Subject $param_Subject_3) voidRMIConnectionImpl.removeNotificationListener(ObjectName name, ObjectName listener, MarshalledObject filter, MarshalledObject handback, Subject delegationSubject) voidRMIConnectionImpl.removeNotificationListener(ObjectName name, ObjectName listener, Subject delegationSubject) voidRMIConnection.removeNotificationListeners(ObjectName name, Integer[] listenerIDs, Subject delegationSubject) voidRMIConnectionImpl_Stub.removeNotificationListeners(ObjectName $param_ObjectName_1, Integer[] $param_arrayOf_Integer_2, Subject $param_Subject_3) voidRMIConnectionImpl.removeNotificationListeners(ObjectName name, Integer[] listenerIDs, Subject delegationSubject) voidRMIConnection.setAttribute(ObjectName name, MarshalledObject attribute, Subject delegationSubject) Handles the methodMBeanServerConnection.setAttribute(ObjectName, Attribute).voidRMIConnectionImpl_Stub.setAttribute(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3) voidRMIConnectionImpl.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) voidRMIConnectorServer.start()Activates the connector server, that is starts listening for client connections.voidRMIConnectorServer.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.RMIJRMPServerImpl.toStub()Returns a serializable stub for thisRMIServerobject.abstract RemoteRMIServerImpl.toStub()Returns a remotable stub for this server object.voidRMIConnection.unregisterMBean(ObjectName name, Subject delegationSubject) Handles the methodMBeanServerConnection.unregisterMBean(ObjectName).voidRMIConnectionImpl_Stub.unregisterMBean(ObjectName $param_ObjectName_1, Subject $param_Subject_2) voidRMIConnectionImpl.unregisterMBean(ObjectName name, Subject delegationSubject) Constructors in javax.management.remote.rmi that throw IOExceptionModifierConstructorDescriptionRMIConnectorServer(JMXServiceURL url, Map<String, ?> environment) Makes anRMIConnectorServer.RMIConnectorServer(JMXServiceURL url, Map<String, ?> environment, MBeanServer mbeanServer) Makes anRMIConnectorServerfor the given MBean server.RMIConnectorServer(JMXServiceURL url, Map<String, ?> environment, RMIServerImpl rmiServerImpl, MBeanServer mbeanServer) Makes anRMIConnectorServerfor the given MBean server.RMIJRMPServerImpl(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf, Map<String, ?> env) Creates a newRMIServerobject that will be exported on the given port using the given socket factories. -
Uses of IOException in javax.naming.ldap
Methods in javax.naming.ldap that throw IOExceptionModifier and TypeMethodDescriptionabstract voidStartTlsResponse.close()Closes the TLS connection gracefully and reverts back to the underlying connection.abstract SSLSessionStartTlsResponse.negotiate()Negotiates a TLS session using the default SSL socket factory.abstract SSLSessionStartTlsResponse.negotiate(SSLSocketFactory factory) Negotiates a TLS session using an SSL socket factory.Constructors in javax.naming.ldap that throw IOExceptionModifierConstructorDescriptionPagedResultsControl(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
Methods in javax.net that throw IOExceptionModifier and TypeMethodDescriptionServerSocketFactory.createServerSocket()Returns an unbound server socket.abstract ServerSocketServerSocketFactory.createServerSocket(int port) Returns a server socket bound to the specified port.abstract ServerSocketServerSocketFactory.createServerSocket(int port, int backlog) Returns a server socket bound to the specified port, and uses the specified connection backlog.abstract ServerSocketServerSocketFactory.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 SocketSocketFactory.createSocket(String host, int port) Creates a socket and connects it to the specified remote host at the specified remote port.abstract SocketSocketFactory.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 SocketSocketFactory.createSocket(InetAddress host, int port) Creates a socket and connects it to the specified port number at the specified address.abstract SocketSocketFactory.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
Subclasses of IOException in javax.net.sslModifier and TypeClassDescriptionclassIndicates some kind of error detected by an SSL subsystem.classIndicates that the client and server could not negotiate the desired level of security.classReports a bad SSL key.classIndicates that the peer's identity has not been verified.classReports an error in the operation of the SSL protocol.Methods in javax.net.ssl that throw IOExceptionModifier and TypeMethodDescriptionSSLSocketFactory.createSocket(Socket s, InputStream consumed, boolean autoClose) Creates a server modeSocketlayered over an existing connected socket, and is able to read data which has already been consumed/removed from theSocket's underlyingInputStream.abstract SocketSSLSocketFactory.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 voidSSLSocket.startHandshake()Starts an SSL handshake on this connection.Constructors in javax.net.ssl that throw IOExceptionModifierConstructorDescriptionprotectedUsed only by subclasses.protectedSSLServerSocket(int port) Used only by subclasses.protectedSSLServerSocket(int port, int backlog) Used only by subclasses.protectedSSLServerSocket(int port, int backlog, InetAddress address) Used only by subclasses.protectedUsed only by subclasses.protectedSSLSocket(String host, int port, InetAddress clientAddress, int clientPort) Used only by subclasses.protectedSSLSocket(InetAddress address, int port) Used only by subclasses.protectedSSLSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) Used only by subclasses. -
Uses of IOException in javax.print
Methods in javax.print that throw IOExceptionModifier 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
Methods in javax.rmi.ssl that throw IOExceptionModifier 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
Methods in javax.security.auth.callback that throw IOException -
Uses of IOException in javax.security.sasl
Subclasses of IOException in javax.security.saslModifier and TypeClassDescriptionclassThis 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.classThis class represents an error that has occurred when using SASL. -
Uses of IOException in javax.sound.midi
Methods in javax.sound.midi that throw IOExceptionModifier and TypeMethodDescriptionstatic MidiFileFormatMidiSystem.getMidiFileFormat(File file) Obtains the MIDI file format of the specifiedFile.static MidiFileFormatMidiSystem.getMidiFileFormat(InputStream stream) Obtains the MIDI file format of the data in the specified input stream.static MidiFileFormatMidiSystem.getMidiFileFormat(URL url) Obtains the MIDI file format of the data in the specified URL.static SequenceMidiSystem.getSequence(File file) Obtains a MIDI sequence from the specifiedFile.static SequenceMidiSystem.getSequence(InputStream stream) Obtains a MIDI sequence from the specified input stream.static SequenceMidiSystem.getSequence(URL url) Obtains a MIDI sequence from the specified URL.static SoundbankMidiSystem.getSoundbank(File file) Constructs aSoundbankby reading it from the specifiedFile.static SoundbankMidiSystem.getSoundbank(InputStream stream) Constructs a MIDI sound bank by reading it from the specified stream.static SoundbankMidiSystem.getSoundbank(URL url) Constructs aSoundbankby reading it from the specified URL.voidSequencer.setSequence(InputStream stream) Sets the current sequence on which the sequencer operates.static intWrites a stream of bytes representing a file of the MIDI file type indicated to the external file provided.static intMidiSystem.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
Methods in javax.sound.midi.spi that throw IOExceptionModifier and TypeMethodDescriptionabstract MidiFileFormatMidiFileReader.getMidiFileFormat(File file) Obtains the MIDI file format of theFileprovided.abstract MidiFileFormatMidiFileReader.getMidiFileFormat(InputStream stream) Obtains the MIDI file format of the input stream provided.abstract MidiFileFormatMidiFileReader.getMidiFileFormat(URL url) Obtains the MIDI file format of theURLprovided.abstract SequenceMidiFileReader.getSequence(File file) Obtains a MIDI sequence from theFileprovided.abstract SequenceMidiFileReader.getSequence(InputStream stream) Obtains a MIDI sequence from the input stream provided.abstract SequenceMidiFileReader.getSequence(URL url) Obtains a MIDI sequence from theURLprovided.abstract SoundbankSoundbankReader.getSoundbank(File file) Obtains a soundbank object from theFileprovided.abstract SoundbankSoundbankReader.getSoundbank(InputStream stream) Obtains a soundbank object from theInputStreamprovided.abstract SoundbankSoundbankReader.getSoundbank(URL url) Obtains a soundbank object from theURLprovided.abstract intWrites a stream of bytes representing a MIDI file of the file type indicated to the external file provided.abstract intMidiFileWriter.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
Methods in javax.sound.sampled that throw IOExceptionModifier and TypeMethodDescriptionintAudioInputStream.available()Returns the maximum number of bytes that can be read (or skipped over) from this audio input stream without blocking.voidAudioInputStream.close()Closes this audio input stream and releases any system resources associated with the stream.static AudioFileFormatAudioSystem.getAudioFileFormat(File file) Obtains the audio file format of the specifiedFile.static AudioFileFormatAudioSystem.getAudioFileFormat(InputStream stream) Obtains the audio file format of the provided input stream.static AudioFileFormatAudioSystem.getAudioFileFormat(URL url) Obtains the audio file format of the specifiedURL.static AudioInputStreamAudioSystem.getAudioInputStream(File file) Obtains an audio input stream from the providedFile.static AudioInputStreamAudioSystem.getAudioInputStream(InputStream stream) Obtains an audio input stream from the provided input stream.static AudioInputStreamAudioSystem.getAudioInputStream(URL url) Obtains an audio input stream from theURLprovided.voidClip.open(AudioInputStream stream) Opens the clip with the format and audio data present in the provided audio input stream.intAudioInputStream.read()Reads the next byte of data from the audio input stream.intAudioInputStream.read(byte[] b) Reads some number of bytes from the audio input stream and stores them into the buffer arrayb.intAudioInputStream.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.voidAudioInputStream.reset()Repositions this audio input stream to the position it had at the time itsmarkmethod was last invoked.longAudioInputStream.skip(long n) Skips over and discards a specified number of bytes from this audio input stream.static intAudioSystem.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 intAudioSystem.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
Methods in javax.sound.sampled.spi that throw IOExceptionModifier and TypeMethodDescriptionabstract AudioFileFormatAudioFileReader.getAudioFileFormat(File file) Obtains the audio file format of theFileprovided.abstract AudioFileFormatAudioFileReader.getAudioFileFormat(InputStream stream) Obtains the audio file format of the input stream provided.abstract AudioFileFormatAudioFileReader.getAudioFileFormat(URL url) Obtains the audio file format of theURLprovided.abstract AudioInputStreamAudioFileReader.getAudioInputStream(File file) Obtains an audio input stream from theFileprovided.abstract AudioInputStreamAudioFileReader.getAudioInputStream(InputStream stream) Obtains an audio input stream from the input stream provided.abstract AudioInputStreamAudioFileReader.getAudioInputStream(URL url) Obtains an audio input stream from theURLprovided.abstract intAudioFileWriter.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 intAudioFileWriter.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
Methods in javax.sql.rowset that throw IOExceptionModifier and TypeMethodDescriptionvoidWebRowSet.readXml(InputStream iStream) Reads a stream based XML input to populate thisWebRowSetobject.voidWebRowSet.writeXml(OutputStream oStream) Writes the data, properties, and metadata for thisWebRowSetobject to the givenOutputStreamobject in XML format.voidWebRowSet.writeXml(ResultSet rs, OutputStream oStream) Populates thisWebRowSetobject with the contents of the givenResultSetobject and writes its data, properties, and metadata to the givenOutputStreamobject in XML format. -
Uses of IOException in javax.swing
Methods in javax.swing that throw IOExceptionModifier and TypeMethodDescriptionvoidProgressMonitorInputStream.close()OverridesFilterInputStream.closeto close the progress monitor as well as the stream.protected InputStreamFetches a stream for the given URL, which is about to be loaded by thesetPagemethod.voidJEditorPane.read(InputStream in, Object desc) This method initializes from a stream.intProgressMonitorInputStream.read()OverridesFilterInputStream.readto update the progress monitor after the read.intProgressMonitorInputStream.read(byte[] b) OverridesFilterInputStream.readto update the progress monitor after the read.intProgressMonitorInputStream.read(byte[] b, int off, int len) OverridesFilterInputStream.readto update the progress monitor after the read.voidProgressMonitorInputStream.reset()OverridesFilterInputStream.resetto reset the progress monitor as well as the stream.voidSets the current URL being displayed.voidSets the current URL being displayed.longProgressMonitorInputStream.skip(long n) OverridesFilterInputStream.skipto update the progress monitor after the skip.Constructors in javax.swing that throw IOExceptionModifierConstructorDescriptionJEditorPane(String url) Creates aJEditorPanebased on a string containing a URL specification.JEditorPane(URL initialPage) Creates aJEditorPanebased on a specified URL for input. -
Uses of IOException in javax.swing.filechooser
Methods in javax.swing.filechooser that throw IOExceptionModifier and TypeMethodDescriptionabstract FileFileSystemView.createNewFolder(File containingDir) Creates a new folder with a default folder name. -
Uses of IOException in javax.swing.plaf.synth
Methods in javax.swing.plaf.synth that throw IOExceptionModifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version. -
Uses of IOException in javax.swing.text
Subclasses of IOException in javax.swing.textModifier and TypeClassDescriptionclassChangedCharSetException as the name indicates is an exception thrown when the charset is changed.Methods in javax.swing.text that throw IOExceptionModifier and TypeMethodDescriptionprotected voidAbstractWriter.indent()Does indentation.protected voidAbstractWriter.output(char[] content, int start, int length) The last stop in writing out content.voidDefaultEditorKit.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.voidInserts content from the given stream, which will be treated as plain text.abstract voidEditorKit.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 voidInserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.voidInitializes from a stream.voidStyleContext.readAttributes(ObjectInputStream in, MutableAttributeSet a) Context-specific handling of reading in attributesstatic voidStyleContext.readAttributeSet(ObjectInputStream in, MutableAttributeSet a) Reads a set of attributes from the given object input stream that have been previously written out withwriteAttributeSet.protected voidWrites out text.protected abstract voidAbstractWriter.write()This abstract method needs to be implemented by subclasses.protected voidAbstractWriter.write(char ch) Writes out a character.protected voidAbstractWriter.write(char[] chars, int startIndex, int length) All write methods call into this one.protected voidWrites out a string.voidDefaultEditorKit.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.voidWrites content from a document to the given stream as plain text.abstract voidEditorKit.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 voidWrites content from a document to the given stream in a format appropriate for this kind of content handler.voidStores the contents of the model into the given stream.protected voidAbstractWriter.writeAttributes(AttributeSet attr) Writes out the set of attributes as " <name>=<value>" pairs.voidStyleContext.writeAttributes(ObjectOutputStream out, AttributeSet a) Context-specific handling of writing out attributesstatic voidStyleContext.writeAttributeSet(ObjectOutputStream out, AttributeSet a) Writes a set of attributes to the given object stream for the purpose of serialization.protected voidAbstractWriter.writeLineSeparator()Writes the line separator. -
Uses of IOException in javax.swing.text.html
Methods in javax.swing.text.html that throw IOExceptionModifier and TypeMethodDescriptionprotected voidHTMLWriter.closeOutUnwantedEmbeddedTags(AttributeSet attr) Searches the attribute set and for each tag that is stored in the tag vector.protected voidWrites out comments.protected voidWrites out all empty elements (all tags that have no corresponding end tag).protected voidMinimalHTMLWriter.endFontTag()This is no longer used, instead <span> will be written out.protected voidWrites out an end tag for the element.voidHTMLDocument.insertAfterEnd(Element elem, String htmlText) Inserts the HTML specified as a string after the end of the given element.voidHTMLDocument.insertAfterStart(Element elem, String htmlText) Inserts the HTML specified as a string at the start of the element.voidHTMLDocument.insertBeforeEnd(Element elem, String htmlText) Inserts the HTML specified as a string at the end of the element.voidHTMLDocument.insertBeforeStart(Element elem, String htmlText) Inserts the HTML specified as a string before the start of the given element.voidHTMLEditorKit.insertHTML(HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag insertTag) Inserts HTML into an existing document.voidLoads a set of rules that have been specified in terms of CSS1 grammar.protected voidHTMLWriter.output(char[] chars, int start, int length) This method is overridden to map any character entities, such as < to <.abstract voidHTMLEditorKit.Parser.parse(Reader r, HTMLEditorKit.ParserCallback cb, boolean ignoreCharSet) Parse the given stream and drive the given callback with the results of the parse.voidInserts content from the given stream.protected voidHTMLWriter.selectContent(AttributeSet attr) Writes out the content of the SELECT form element.voidHTMLDocument.setInnerHTML(Element elem, String htmlText) Replaces the children of the given element with the contents specified as an HTML string.voidHTMLDocument.setOuterHTML(Element elem, String htmlText) Replaces the given element in the parent with the contents specified as an HTML string.protected voidMinimalHTMLWriter.startFontTag(String style) This is no longer used, instead <span> will be written out.protected voidWrites out a start tag for the element.protected voidWrites out text.protected voidWrites out text.protected voidHTMLWriter.textAreaContent(AttributeSet attr) Writes out text that is contained in a TEXTAREA form element.voidWrite content from a document to the given stream in a format appropriate for this kind of content handler.voidHTMLWriter.write()Iterates over the Element tree and controls the writing out of all the tags and its attributes.voidMinimalHTMLWriter.write()Generates HTML output from a StyledDocument.protected voidHTMLWriter.writeAttributes(AttributeSet attr) Writes out the attribute set.protected voidMinimalHTMLWriter.writeAttributes(AttributeSet attr) Writes out all the attributes for the following types: StyleConstants.ParagraphConstants, StyleConstants.CharacterConstants, StyleConstants.FontConstants, StyleConstants.ColorConstants.protected voidMinimalHTMLWriter.writeBody()Iterates over the elements in the document and processes elements based on whether they are branch elements or leaf elements.protected voidMinimalHTMLWriter.writeComponent(Element elem) Responsible for handling Component Elements; deliberately unimplemented.protected voidMinimalHTMLWriter.writeContent(Element elem, boolean needsIndenting) Writes out the attribute set in an HTML-compliant manner.protected voidHTMLWriter.writeEmbeddedTags(AttributeSet attr) Searches for embedded tags in the AttributeSet and writes them out.protected voidMinimalHTMLWriter.writeEndParagraph()Emits an end tag for a <p> tag.protected voidMinimalHTMLWriter.writeEndTag(String endTag) Writes out an end tag appropriately indented.protected voidMinimalHTMLWriter.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 voidMinimalHTMLWriter.writeHTMLTags(AttributeSet attr) Generates bold <b>, italic <i>, and <u> tags for the text based on its attribute settings.protected voidMinimalHTMLWriter.writeImage(Element elem) Responsible for handling Icon Elements; deliberately unimplemented.protected voidResponsible for writing out other non-text leaf elements.protected voidHTMLWriter.writeLineSeparator()Writes the line separator.protected voidMinimalHTMLWriter.writeNonHTMLAttributes(AttributeSet attr) Writes out the remaining character-level attributes (attributes other than bold, italic, and underline) in an HTML-compliant way.protected voidHTMLWriter.writeOption(Option option) Writes out the content of the Option form element.protected voidMinimalHTMLWriter.writeStartParagraph(Element elem) Emits the start tag for a paragraph.protected voidMinimalHTMLWriter.writeStartTag(String tag) Writes out a start tag appropriately indented.protected voidMinimalHTMLWriter.writeStyles()Writes out all the named styles as the content of the <style> tag. -
Uses of IOException in javax.swing.text.html.parser
Methods in javax.swing.text.html.parser that throw IOExceptionModifier and TypeMethodDescriptionstatic DTDReturns a DTD with the specifiedname.voidDocumentParser.parse(Reader in, HTMLEditorKit.ParserCallback callback, boolean ignoreCharSet) Parse an HTML stream, given a DTD.voidParse an HTML stream, given a DTD.voidParserDelegator.parse(Reader r, HTMLEditorKit.ParserCallback cb, boolean ignoreCharSet) Parser.parseDTDMarkup()Parses the Document Type Declaration markup declaration.protected booleanParser.parseMarkupDeclarations(StringBuffer strBuff) Parse markup declarations.voidDTD.read(DataInputStream in) Recreates a DTD from an archived format. -
Uses of IOException in javax.swing.text.rtf
Methods in javax.swing.text.rtf that throw IOExceptionModifier and TypeMethodDescriptionvoidRTFEditorKit.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.voidInsert content from the given stream, which will be treated as plain text.voidRTFEditorKit.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.voidWrite content from a document to the given stream as plain text. -
Uses of IOException in javax.tools
Methods in javax.tools that throw IOExceptionModifier and TypeMethodDescriptionvoidForwardingJavaFileManager.close()voidJavaFileManager.close()Releases any resources opened by this file manager directly or indirectly.booleanForwardingJavaFileManager.contains(JavaFileManager.Location location, FileObject fo) default booleanJavaFileManager.contains(JavaFileManager.Location location, FileObject fo) Determines whether or not a given file object is "contained in" a specified location.voidForwardingJavaFileManager.flush()voidJavaFileManager.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) Returns the character content of this file object, if available.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.getFileForOutputForOriginatingFiles(JavaFileManager.Location location, String packageName, String relativeName, FileObject... originatingFiles) Returns a file object for output representing the specified relative name in the specified package in the given location.default FileObjectJavaFileManager.getFileForOutputForOriginatingFiles(JavaFileManager.Location location, String packageName, String relativeName, FileObject... originatingFiles) 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.getJavaFileForOutputForOriginatingFiles(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject... originatingFiles) Returns a file object for output representing the specified class of the specified kind in the given package-oriented location.default JavaFileObjectJavaFileManager.getJavaFileForOutputForOriginatingFiles(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject... originatingFiles) 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.LocationJavaFileManager.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.LocationJavaFileManager.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 StringJavaFileManager.inferModuleName(JavaFileManager.Location location) Infer the name of the module from its location, as returned bygetLocationForModuleorlistModuleLocations.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()Returns an InputStream for this file object.FileObject.openOutputStream()Returns an OutputStream for this file object.ForwardingFileObject.openOutputStream()SimpleJavaFileObject.openOutputStream()Returns an OutputStream for this file object.FileObject.openReader(boolean ignoreEncodingErrors) Returns a reader for this object.ForwardingFileObject.openReader(boolean ignoreEncodingErrors) SimpleJavaFileObject.openReader(boolean ignoreEncodingErrors) Returns a reader for this object.FileObject.openWriter()Returns a Writer for this file object.ForwardingFileObject.openWriter()SimpleJavaFileObject.openWriter()Returns a Writer for this file object.voidStandardJavaFileManager.setLocation(JavaFileManager.Location location, Iterable<? extends File> files) Associates the given search path with the given location.default voidStandardJavaFileManager.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 voidStandardJavaFileManager.setLocationFromPaths(JavaFileManager.Location location, Collection<? extends Path> paths) Associates the given search path with the given location. -
Uses of IOException in javax.xml.parsers
Methods in javax.xml.parsers that throw IOExceptionModifier and TypeMethodDescriptionParse the content of the given file as an XML document and return a new DOMDocumentobject.DocumentBuilder.parse(InputStream is) Parse the content of the givenInputStreamas an XML document and return a new DOMDocumentobject.DocumentBuilder.parse(InputStream is, String systemId) Parse the content of the givenInputStreamas an XML document and return a new DOMDocumentobject.Parse the content of the given URI as an XML document and return a new DOMDocumentobject.abstract DocumentDocumentBuilder.parse(InputSource is) Parse the content of the given input source as an XML document and return a new DOMDocumentobject.voidSAXParser.parse(File f, HandlerBase hb) Parse the content of the file specified as XML using the specifiedHandlerBase.voidSAXParser.parse(File f, DefaultHandler dh) Parse the content of the file specified as XML using the specifiedDefaultHandler.voidSAXParser.parse(InputStream is, HandlerBase hb) Parse the content of the givenInputStreaminstance as XML using the specifiedHandlerBase.voidSAXParser.parse(InputStream is, HandlerBase hb, String systemId) Parse the content of the givenInputStreaminstance as XML using the specifiedHandlerBase.voidSAXParser.parse(InputStream is, DefaultHandler dh) Parse the content of the givenInputStreaminstance as XML using the specifiedDefaultHandler.voidSAXParser.parse(InputStream is, DefaultHandler dh, String systemId) Parse the content of the givenInputStreaminstance as XML using the specifiedDefaultHandler.voidSAXParser.parse(String uri, HandlerBase hb) Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specifiedHandlerBase.voidSAXParser.parse(String uri, DefaultHandler dh) Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specifiedDefaultHandler.voidSAXParser.parse(InputSource is, HandlerBase hb) Parse the content givenInputSourceas XML using the specifiedHandlerBase.voidSAXParser.parse(InputSource is, DefaultHandler dh) Parse the content givenInputSourceas XML using the specifiedDefaultHandler. -
Uses of IOException in javax.xml.validation
Methods in javax.xml.validation that throw IOException -
Uses of IOException in jdk.jfr
Methods in jdk.jfr that throw IOExceptionModifier and TypeMethodDescriptionstatic ConfigurationReads a configuration from a character stream.static ConfigurationReads a configuration from a file.voidWrites recording data to a file.static ConfigurationConfiguration.getConfiguration(String name) Returns a predefined configuration.Creates a data stream for a specified interval.voidRecording.setDestination(Path destination) Sets a location where data is written on recording stop, ornullif data is not to be dumped. -
Uses of IOException in jdk.jfr.consumer
Methods in jdk.jfr.consumer that throw IOExceptionModifier and TypeMethodDescriptionvoidRecordingFile.close()Closes this recording file and releases any system resources that are associated with it.voidWrites recording data to a file.static EventStreamCreates an event stream from a file.static EventStreamEventStream.openRepository()Creates a stream from the repository of the current Java Virtual Machine (JVM).static EventStreamEventStream.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.voidRecordingFile.write(Path destination, Predicate<RecordedEvent> filter) Filter out events and write them to a new file.Constructors in jdk.jfr.consumer that throw IOException -
Uses of IOException in jdk.jshell.execution
Methods in jdk.jshell.execution that throw IOExceptionModifier and TypeMethodDescriptionstatic voidUtil.forwardExecutionControlAndIO(ExecutionControl ec, InputStream inStream, OutputStream outStream, Map<String, Consumer<OutputStream>> outputStreamMap, Map<String, Consumer<InputStream>> inputStreamMap) Forward commands from the input to the specifiedExecutionControlinstance, then responses back on the output.JdiExecutionControlProvider.generate(ExecutionEnv env, Map<String, String> parameters) static ExecutionControlUtil.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
Methods in jdk.management.jfr that throw IOExceptionModifier and TypeMethodDescriptionvoidFlightRecorderMXBean.closeRecording(long recordingId) Closes the recording with the specified ID and releases any system resources that are associated with the recording.voidFlightRecorderMXBean.closeStream(long streamId) Closes the recording stream with the specified ID and releases any system resources that are associated with the stream.voidWrites recording data to the specified file.voidWrites recording data to a file.longFlightRecorderMXBean.openStream(long recordingId, Map<String, String> streamOptions) Opens a data stream for the recording with the specified ID, or0to get data irrespective of recording.byte[]FlightRecorderMXBean.readStream(long streamId) Reads a portion of data from the stream with the specified ID, or returnsnullif no more data is available.Constructors in jdk.management.jfr that throw IOExceptionModifierConstructorDescriptionRemoteRecordingStream(MBeanServerConnection connection) Creates an event stream that operates against aMBeanServerConnectionthat has a registeredFlightRecorderMXBean.RemoteRecordingStream(MBeanServerConnection connection, Path directory) Creates an event stream that operates against aMBeanServerConnectionthat has a registeredFlightRecorderMXBean. -
Uses of IOException in jdk.net
Methods in jdk.net that throw IOExceptionModifier and TypeMethodDescriptionstatic <T> TSockets.getOption(DatagramSocket s, SocketOption<T> name) Deprecated.useDatagramSocket.getOption(SocketOption)instead.static <T> TSockets.getOption(ServerSocket s, SocketOption<T> name) Deprecated.useServerSocket.getOption(SocketOption)instead.static <T> TSockets.getOption(Socket s, SocketOption<T> name) Deprecated.useSocket.getOption(SocketOption)instead.static <T> voidSockets.setOption(DatagramSocket s, SocketOption<T> name, T value) Deprecated.useDatagramSocket.setOption(SocketOption, Object)instead.static <T> voidSockets.setOption(ServerSocket s, SocketOption<T> name, T value) Deprecated.useServerSocket.setOption(SocketOption, Object)instead.static <T> voidSockets.setOption(Socket s, SocketOption<T> name, T value) Deprecated.useSocket.setOption(SocketOption, Object)instead. -
Uses of IOException in jdk.nio
Methods in jdk.nio that throw IOExceptionModifier and TypeMethodDescriptionvoidChannels.SelectableChannelCloser.implCloseChannel(SelectableChannel sc) Closes a selectable channel.voidChannels.SelectableChannelCloser.implReleaseChannel(SelectableChannel sc) Release the file descriptor and any resources for a selectable channel that closed while registered with one or moreSelectors. -
Uses of IOException in org.xml.sax
Methods in org.xml.sax that throw IOExceptionModifier and TypeMethodDescriptionvoidDeprecated.Parse an XML document from a system identifier (URI).voidParser.parse(InputSource source) Deprecated.Parse an XML document.voidParse an XML document from a system identifier (URI).voidXMLReader.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
Methods in org.xml.sax.ext that throw IOExceptionModifier 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
Methods in org.xml.sax.helpers that throw IOExceptionModifier and TypeMethodDescriptionvoidParse an XML document.voidParserAdapter.parse(InputSource input) Parse an XML document.voidParse a document.voidXMLFilterImpl.parse(InputSource input) Parse a document.voidParse the document.voidXMLReaderAdapter.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.