|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Package | Description |
|---|---|
| java.applet | Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context. |
| java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images. |
| java.awt.color | Provides classes for color spaces. |
| java.awt.datatransfer | Provides interfaces and classes for transferring data between and within applications. |
| java.awt.dnd | 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. |
| java.awt.print | Provides classes and interfaces for a general printing API. |
| java.beans | Contains classes related to developing beans -- components based on the JavaBeansTM architecture. |
| java.beans.beancontext | Provides classes and interfaces relating to bean context. |
| java.io | Provides for system input and output through data streams, serialization and the file system. |
| java.lang | Provides classes that are fundamental to the design of the Java programming language. |
| java.lang.management | Provides the management interface for monitoring and management of the Java virtual machine as well as the operating system on which the Java virtual machine is running. |
| java.net | Provides the classes for implementing networking applications. |
| java.nio | Defines buffers, which are containers for data, and provides an overview of the other NIO packages. |
| java.nio.channels | 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. |
| java.nio.channels.spi | Service-provider classes for the java.nio.channels package. |
| java.nio.charset | Defines charsets, decoders, and encoders, for translating between bytes and Unicode characters. |
| java.nio.file | Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems. |
| java.nio.file.attribute | Interfaces and classes providing access to file and file system attributes. |
| java.nio.file.spi | Service-provider classes for the java.nio.file package. |
| java.rmi | Provides the RMI package. |
| java.rmi.activation | Provides support for RMI Object Activation. |
| java.rmi.server | Provides classes and interfaces for supporting the server side of RMI. |
| java.security | Provides the classes and interfaces for the security framework. |
| java.security.cert | Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths. |
| java.util | Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). |
| java.util.jar | 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. |
| java.util.logging | Provides the classes and interfaces of the JavaTM 2 platform's core logging facilities. |
| java.util.prefs | This package allows applications to store and retrieve user and system preference and configuration data. |
| java.util.zip | Provides classes for reading and writing the standard ZIP and GZIP file formats. |
| javax.activation | |
| javax.activity | Contains Activity service related exceptions thrown by the ORB machinery during unmarshalling. |
| javax.annotation.processing | Facilities for declaring annotation processors and for allowing annotation processors to communicate with an annotation processing tool environment. |
| javax.crypto | Provides the classes and interfaces for cryptographic operations. |
| javax.imageio | The main package of the Java Image I/O API. |
| javax.imageio.metadata | A package of the Java Image I/O API dealing with reading and writing metadata. |
| javax.imageio.spi | A package of the Java Image I/O API containing the plug-in interfaces for readers, writers, transcoders, and streams, and a runtime registry. |
| javax.imageio.stream | A package of the Java Image I/O API dealing with low-level I/O from files and streams. |
| javax.management | Provides the core classes for the Java Management Extensions. |
| javax.management.event | Defines the Event Service, which provides extended support for JMX notifications. |
| javax.management.loading | Provides the classes which implement advanced dynamic loading. |
| javax.management.namespace | The javax.management.namespace package makes it possible
to federate MBeanServers into a hierarchical name space. |
| javax.management.remote | Interfaces for remote access to JMX MBean servers. |
| javax.management.remote.rmi | The RMI connector is a connector for the JMX Remote API that uses RMI to transmit client requests to a remote MBean server. |
| javax.naming.ldap | Provides support for LDAPv3 extended operations and controls. |
| javax.net | Provides classes for networking applications. |
| javax.net.ssl | Provides classes for the secure socket package. |
| javax.print | Provides the principal classes and interfaces for the JavaTM Print Service API. |
| javax.rmi.CORBA | Contains portability APIs for RMI-IIOP. |
| javax.rmi.ssl | Provides implementations of RMIClientSocketFactory
and RMIServerSocketFactory over
the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocols. |
| javax.security.auth.callback | 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). |
| javax.security.sasl | Contains class and interfaces for supporting SASL. |
| javax.sound.midi | Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI (Musical Instrument Digital Interface) data. |
| javax.sound.midi.spi | Supplies interfaces for service providers to implement when offering new MIDI devices, MIDI file readers and writers, or sound bank readers. |
| javax.sound.sampled | Provides interfaces and classes for capture, processing, and playback of sampled audio data. |
| javax.sound.sampled.spi | Supplies abstract classes for service providers to subclass when offering new audio devices, sound file readers and writers, or audio format converters. |
| javax.sql.rowset | Standard interfaces and base classes for JDBC RowSet
implementations. |
| javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. |
| javax.swing.filechooser | Contains classes and interfaces used by the JFileChooser component. |
| javax.swing.plaf.synth | Synth is a skinnable look and feel in which all painting is delegated. |
| javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components. |
| javax.swing.text.html | Provides the class HTMLEditorKit and supporting classes
for creating HTML text editors. |
| javax.swing.text.html.parser | Provides the default HTML parser, along with support classes. |
| javax.swing.text.rtf | Provides a class (RTFEditorKit) for creating Rich-Text-Format
text editors. |
| javax.tools | Provides interfaces for tools which can be invoked from a program, for example, compilers. |
| javax.transaction | Contains three exceptions thrown by the ORB machinery during unmarshalling. |
| javax.xml.bind | Provides a runtime binding framework for client applications including unmarshalling, marshalling, and validation capabilities. |
| javax.xml.parsers | Provides classes allowing the processing of XML documents. |
| javax.xml.soap | Provides the API for creating and building SOAP messages. |
| javax.xml.validation | This package provides an API for validation of XML documents. |
| org.omg.CORBA.portable | Provides a portability layer, that is, a set of ORB APIs that makes it possible for code generated by one vendor to run on another vendor's ORB. |
| org.xml.sax | This package provides the core SAX APIs. |
| org.xml.sax.ext | This package contains interfaces to SAX2 facilities that conformant SAX drivers won't necessarily support. |
| org.xml.sax.helpers | This package contains "helper" classes, including support for bootstrapping SAX-based applications. |
| Uses of IOException in java.applet |
|---|
| Modifier and Type | Method and Description |
|---|---|
void |
AppletContext.setStream(String key,
InputStream stream)
Associates the specified stream with the specified key in this applet context. |
| Uses of IOException in java.awt |
|---|
| Modifier and Type | Method and Description |
|---|---|
void |
Desktop.browse(URI uri)
Launches the default browser to display a URI. |
static Font |
Font.createFont(int fontFormat,
File fontFile)
Returns a new Font using the specified font type
and the specified font file. |
static Font |
Font.createFont(int fontFormat,
InputStream fontStream)
Returns a new Font using the specified font type
and input data. |
void |
Desktop.edit(File file)
Launches the associated editor application and opens a file for editing. |
void |
Desktop.mail()
Launches the mail composing window of the user default mail client. |
void |
Desktop.mail(URI mailtoURI)
Launches the mail composing window of the user default mail client, filling the message fields specified by a mailto: URI. |
void |
Desktop.open(File file)
Launches the associated application to open the file. |
void |
Desktop.print(File file)
Prints a file with the native desktop printing facility, using the associated application's print command. |
protected static void |
AWTEventMulticaster.save(ObjectOutputStream s,
String k,
EventListener l)
|
protected void |
AWTEventMulticaster.saveInternal(ObjectOutputStream s,
String k)
|
void |
SplashScreen.setImageURL(URL imageURL)
Changes the splash screen image. |
| Uses of IOException in java.awt.color |
|---|
| Modifier and Type | Method and Description |
|---|---|
static ICC_Profile |
ICC_Profile.getInstance(InputStream s)
Constructs an ICC_Profile corresponding to the data in an InputStream. |
static ICC_Profile |
ICC_Profile.getInstance(String fileName)
Constructs an ICC_Profile corresponding to the data in a file. |
void |
ICC_Profile.write(OutputStream s)
Write this ICC_Profile to an OutputStream. |
void |
ICC_Profile.write(String fileName)
Write this ICC_Profile to a file. |
| Uses of IOException in java.awt.datatransfer |
|---|
| Modifier and Type | Method and Description |
|---|---|
Object |
Clipboard.getData(DataFlavor flavor)
Returns an object representing the current contents of this clipboard in the specified DataFlavor. |
Reader |
DataFlavor.getReaderForText(Transferable transferable)
Gets a Reader for a text flavor, decoded, if necessary, for the expected charset (encoding). |
Object |
Transferable.getTransferData(DataFlavor flavor)
Returns an object which represents the data to be transferred. |
Object |
StringSelection.getTransferData(DataFlavor flavor)
Returns the Transferable's data in the requested
DataFlavor if possible. |
void |
DataFlavor.readExternal(ObjectInput is)
Restores this DataFlavor from a Serialized state. |
void |
DataFlavor.writeExternal(ObjectOutput os)
Serializes this DataFlavor. |
| Uses of IOException in java.awt.dnd |
|---|
| Modifier and Type | Method and Description |
|---|---|
Object |
DropTargetContext.TransferableProxy.getTransferData(DataFlavor df)
Returns an object which represents the data provided by the encapsulated transferable for the requested data flavor. |
| Uses of IOException in java.awt.print |
|---|
| Modifier and Type | Method and Description |
|---|---|
IOException |
PrinterIOException.getIOException()
Returns the IOException that terminated
the print job. |
| Constructor and Description |
|---|
PrinterIOException(IOException exception)
Constructs a new PrinterIOException
with the string representation of the specified
IOException. |
| Uses of IOException in java.beans |
|---|
| Modifier and Type | Method and Description |
|---|---|
static Object |
Beans.instantiate(ClassLoader cls,
String beanName)
Instantiate a JavaBean. |
static Object |
Beans.instantiate(ClassLoader cls,
String beanName,
BeanContext beanContext)
Instantiate a JavaBean. |
static Object |
Beans.instantiate(ClassLoader cls,
String beanName,
BeanContext beanContext,
AppletInitializer initializer)
Instantiate a bean. |
| Uses of IOException in java.beans.beancontext |
|---|
| Modifier and Type | Method and Description |
|---|---|
protected void |
BeanContextSupport.bcsPreDeserializationHook(ObjectInputStream ois)
called by readObject after defaultReadObject() but prior to deserialization of any children. |
protected void |
BeanContextServicesSupport.bcsPreDeserializationHook(ObjectInputStream ois)
called from BeanContextSupport readObject before it deserializes the children ... |
protected void |
BeanContextSupport.bcsPreSerializationHook(ObjectOutputStream oos)
called by writeObject after defaultWriteObject() but prior to serialization of currently serializable children. |
protected void |
BeanContextServicesSupport.bcsPreSerializationHook(ObjectOutputStream oos)
called from BeanContextSupport writeObject before it serializes the children ... |
protected void |
BeanContextSupport.deserialize(ObjectInputStream ois,
Collection coll)
used by readObject to deserialize a collection. |
Object |
BeanContextSupport.instantiateChild(String beanName)
The instantiateChild method is a convenience hook in BeanContext to simplify the task of instantiating a Bean, nested, into a BeanContext. |
Object |
BeanContext.instantiateChild(String beanName)
Instantiate the javaBean named as a child of this BeanContext. |
void |
BeanContextSupport.readChildren(ObjectInputStream ois)
When an instance of this class is used as a delegate for the implementation of the BeanContext protocols (and its subprotocols) there exists a 'chicken and egg' problem during deserialization |
protected void |
BeanContextSupport.serialize(ObjectOutputStream oos,
Collection coll)
Used by writeObject to serialize a Collection. |
void |
BeanContextSupport.writeChildren(ObjectOutputStream oos)
Used to serialize all children of this BeanContext. |
| Uses of IOException in java.io |
|---|
| Modifier and Type | Class and Description |
|---|---|
class |
CharConversionException
Base class for character conversion exceptions. |
class |
EOFException
Signals that an end of file or end of stream has been reached unexpectedly during input. |
class |
FileNotFoundException
Signals that an attempt to open the file denoted by a specified pathname has failed. |
class |
InterruptedIOException
Signals that an I/O operation has been interrupted. |
class |
InvalidClassException
Thrown when the Serialization runtime detects one of the following problems with a Class. |
class |
InvalidObjectException
Indicates that one or more deserialized objects failed validation tests. |
class |
NotActiveException
Thrown when serialization or deserialization is not active. |
class |
NotSerializableException
Thrown when an instance is required to have a Serializable interface. |
class |
ObjectStreamException
Superclass of all exceptions specific to Object Stream classes. |
class |
OptionalDataException
Exception indicating the failure of an object read operation due to unread primitive data, or the end of data belonging to a serialized object in the stream. |
class |
StreamCorruptedException
Thrown when control information that was read from an object stream violates internal consistency checks. |
class |
SyncFailedException
Signals that a sync operation has failed. |
class |
UnsupportedEncodingException
The Character Encoding is not supported. |
class |
UTFDataFormatException
Signals that a malformed string in modified UTF-8 format has been read in a data input stream or by any class that implements the data input interface. |
class |
WriteAbortedException
Signals that one of the ObjectStreamExceptions was thrown during a write operation. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ObjectOutputStream.annotateClass(Class<?> cl)
Subclasses may implement this method to allow class data to be stored in the stream. |
protected void |
ObjectOutputStream.annotateProxyClass(Class<?> cl)
Subclasses may implement this method to store custom data in the stream along with descriptors for dynamic proxy classes. |
Writer |
Writer.append(char c)
Appends the specified character to this writer. |
Writer |
Writer.append(CharSequence csq)
Appends the specified character sequence to this writer. |
Writer |
Writer.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this writer. |
int |
SequenceInputStream.available()
Returns an estimate of the number of bytes that can be read (or skipped over) from the current underlying input stream without blocking by the next invocation of a method for the current underlying input stream. |
int |
PushbackInputStream.available()
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream. |
int |
PipedInputStream.available()
Returns the number of bytes that can be read from this input stream without blocking. |
int |
ObjectInputStream.available()
Returns the number of bytes that can be read without blocking. |
int |
ObjectInput.available()
Returns the number of bytes that can be read without blocking. |
int |
LineNumberInputStream.available()
Deprecated. Returns the number of bytes that can be read from this input stream without blocking. |
int |
InputStream.available()
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream. |
int |
FilterInputStream.available()
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. |
int |
FileInputStream.available()
Returns an estimate of the number of remaining bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream. |
int |
BufferedInputStream.available()
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream. |
abstract void |
Writer.close()
Closes the stream, flushing it first. |
void |
StringWriter.close()
Closing a StringWriter has no effect. |
void |
SequenceInputStream.close()
Closes this input stream and releases any system resources associated with the stream. |
abstract void |
Reader.close()
Closes the stream and releases any system resources associated with it. |
void |
RandomAccessFile.close()
Closes this random access file stream and releases any system resources associated with the stream. |
void |
PushbackReader.close()
Closes the stream and releases any system resources associated with it. |
void |
PushbackInputStream.close()
Closes this input stream and releases any system resources associated with the stream. |
void |
PipedWriter.close()
Closes this piped output stream and releases any system resources associated with this stream. |
void |
PipedReader.close()
Closes this piped stream and releases any system resources associated with the stream. |
void |
PipedOutputStream.close()
Closes this piped output stream and releases any system resources associated with this stream. |
void |
PipedInputStream.close()
Closes this piped input stream and releases any system resources associated with the stream. |
void |
OutputStreamWriter.close()
|
void |
OutputStream.close()
Closes this output stream and releases any system resources associated with this stream. |
void |
ObjectOutputStream.close()
Closes the stream. |
void |
ObjectOutput.close()
Closes the stream. |
void |
ObjectInputStream.close()
Closes the input stream. |
void |
ObjectInput.close()
Closes the input stream. |
void |
InputStreamReader.close()
|
void |
InputStream.close()
Closes this input stream and releases any system resources associated with the stream. |
void |
FilterWriter.close()
|
void |
FilterReader.close()
|
void |
FilterOutputStream.close()
Closes this output stream and releases any system resources associated with the stream. |
void |
FilterInputStream.close()
Closes this input stream and releases any system resources associated with the stream. |
void |
FileOutputStream.close()
Closes this file output stream and releases any system resources associated with this stream. |
void |
FileInputStream.close()
Closes this file input stream and releases any system resources associated with the stream. |
void |
Closeable.close()
Closes this stream and releases any system resources associated with it. |
void |
ByteArrayOutputStream.close()
Closing a ByteArrayOutputStream has no effect. |
void |
ByteArrayInputStream.close()
Closing a ByteArrayInputStream has no effect. |
void |
BufferedWriter.close()
|
void |
BufferedReader.close()
|
void |
BufferedInputStream.close()
Closes this input stream and releases any system resources associated with the stream. |
void |
PipedOutputStream.connect(PipedInputStream snk)
Connects this piped output stream to a receiver. |
void |
PipedInputStream.connect(PipedOutputStream src)
Causes this piped input stream to be connected to the piped output stream src. |
void |
PipedWriter.connect(PipedReader snk)
Connects this piped writer to a receiver. |
void |
PipedReader.connect(PipedWriter src)
Causes this piped reader to be connected to the piped writer src. |
boolean |
File.createNewFile()
Atomically creates a new, empty file named by this abstract pathname if and only if a file with this name does not yet exist. |
static File |
File.createTempFile(String prefix,
String suffix)
Creates an empty file in the default temporary-file directory, using the given prefix and suffix to generate its name. |
static File |
File.createTempFile(String prefix,
String suffix,
File directory)
Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name. |
static File |
File.createTemporaryFile(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. |
abstract boolean |
ObjectInputStream.GetField.defaulted(String name)
Return true if the named field is defaulted and has no value in this stream. |
void |
ObjectInputStream.defaultReadObject()
Read the non-static and non-transient fields of the current class from this stream. |
void |
ObjectOutputStream.defaultWriteObject()
Write the non-static and non-transient fields of the current class to this stream. |
protected void |
ObjectOutputStream.drain()
Drain any buffered data in ObjectOutputStream. |
protected void |
FileOutputStream.finalize()
Cleans up the connection to the file, and ensures that the close method of this file output stream is
called when there are no more references to this stream. |
protected void |
FileInputStream.finalize()
Ensures that the close method of this file input stream is
called when there are no more references to it. |
abstract void |
Writer.flush()
Flushes the stream. |
void |
PipedWriter.flush()
Flushes this output stream and forces any buffered output characters to be written out. |
void |
PipedOutputStream.flush()
Flushes this output stream and forces any buffered output bytes to be written out. |
void |
OutputStreamWriter.flush()
Flushes the stream. |
void |
OutputStream.flush()
Flushes this output stream and forces any buffered output bytes to be written out. |
void |
ObjectOutputStream.flush()
Flushes the stream. |
void |
ObjectOutput.flush()
Flushes the stream. |
void |
Flushable.flush()
Flushes this stream by writing any buffered output to the underlying stream. |
void |
FilterWriter.flush()
Flushes the stream. |
void |
FilterOutputStream.flush()
Flushes this output stream and forces any buffered output bytes to be written out to the stream. |
void |
DataOutputStream.flush()
Flushes this data output stream. |
void |
BufferedWriter.flush()
Flushes the stream. |
void |
BufferedOutputStream.flush()
Flushes this buffered output stream. |
abstract boolean |
ObjectInputStream.GetField.get(String name,
boolean val)
Get the value of the named boolean field from the persistent field. |
abstract byte |
ObjectInputStream.GetField.get(String name,
byte val)
Get the value of the named byte field from the persistent field. |
abstract char |
ObjectInputStream.GetField.get(String name,
char val)
Get the value of the named char field from the persistent field. |
abstract double |
ObjectInputStream.GetField.get(String name,
double val)
Get the value of the named double field from the persistent field. |
abstract float |
ObjectInputStream.GetField.get(String name,
float val)
Get the value of the named float field from the persistent field. |
abstract int |
ObjectInputStream.GetField.get(String name,
int val)
Get the value of the named int field from the persistent field. |
abstract long |
ObjectInputStream.GetField.get(String name,
long val)
Get the value of the named long field from the persistent field. |
abstract Object |
ObjectInputStream.GetField.get(String name,
Object val)
Get the value of the named Object field from the persistent field. |
abstract short |
ObjectInputStream.GetField.get(String name,
short val)
Get the value of the named short field from the persistent field. |
File |
File.getCanonicalFile()
Returns the canonical form of this abstract pathname. |
String |
File.getCanonicalPath()
Returns the canonical pathname string of this abstract pathname. |
FileDescriptor |
RandomAccessFile.getFD()
Returns the opaque file descriptor object associated with this stream. |
FileDescriptor |
FileOutputStream.getFD()
Returns the file descriptor associated with this stream. |
FileDescriptor |
FileInputStream.getFD()
Returns the FileDescriptor
object that represents the connection to
the actual file in the file system being
used by this FileInputStream. |
long |
RandomAccessFile.getFilePointer()
Returns the current offset in this file. |
long |
RandomAccessFile.length()
Returns the length of this file. |
void |
StringReader.mark(int readAheadLimit)
Marks the present position in the stream. |
void |
Reader.mark(int readAheadLimit)
Marks the present position in the stream. |
void |
PushbackReader.mark(int readAheadLimit)
Marks the present position in the stream. |
void |
LineNumberReader.mark(int readAheadLimit)
Mark the present position in the stream. |
void |
FilterReader.mark(int readAheadLimit)
Marks the present position in the stream. |
void |
CharArrayReader.mark(int readAheadLimit)
Marks the present position in the stream. |
void |
BufferedReader.mark(int readAheadLimit)
Marks the present position in the stream. |
void |
BufferedWriter.newLine()
Writes a line separator. |
int |
StreamTokenizer.nextToken()
Parses the next token from the input stream of this tokenizer. |
ObjectOutputStream.PutField |
ObjectOutputStream.putFields()
Retrieve the object used to buffer persistent fields to be written to the stream. |
int |
StringReader.read()
Reads a single character. |
int |
SequenceInputStream.read()
Reads the next byte of data from this input stream. |
int |
Reader.read()
Reads a single character. |
int |
RandomAccessFile.read()
Reads a byte of data from this file. |
int |
PushbackReader.read()
Reads a single character. |
int |
PushbackInputStream.read()
Reads the next byte of data from this input stream. |
int |
PipedReader.read()
Reads the next character of data from this piped stream. |
int |
PipedInputStream.read()
Reads the next byte of data from this piped input stream. |
int |
ObjectInputStream.read()
Reads a byte of data. |
int |
ObjectInput.read()
Reads a byte of data. |
int |
LineNumberReader.read()
Read a single character. |
int |
LineNumberInputStream.read()
Deprecated. Reads the next byte of data from this input stream. |
int |
InputStreamReader.read()
Reads a single character. |
abstract int |
InputStream.read()
Reads the next byte of data from the input stream. |
int |
FilterReader.read()
Reads a single character. |
int |
FilterInputStream.read()
Reads the next byte of data from this input stream. |
int |
FileInputStream.read()
Reads a byte of data from this input stream. |
int |
CharArrayReader.read()
Reads a single character. |
int |
BufferedReader.read()
Reads a single character. |
int |
BufferedInputStream.read()
See the general contract of the read
method of InputStream. |
int |
RandomAccessFile.read(byte[] b)
Reads up to b.length bytes of data from this file
into an array of bytes. |
int |
ObjectInput.read(byte[] b)
Reads into an array of bytes. |
int |
InputStream.read(byte[] b)
Reads some number of bytes from the input stream and stores them into the buffer array b. |
int |
FilterInputStream.read(byte[] b)
Reads up to byte.length bytes of data from this
input stream into an array of bytes. |
int |
FileInputStream.read(byte[] b)
Reads up to b.length bytes of data from this input
stream into an array of bytes. |
int |
DataInputStream.read(byte[] b)
Reads some number of bytes from the contained input stream and stores them into the buffer array b. |
int |
SequenceInputStream.read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this input stream
into an array of bytes. |
int |
RandomAccessFile.read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this file into an
array of bytes. |
int |
PushbackInputStream.read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this input stream into
an array of bytes. |
int |
PipedInputStream.read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this piped input
stream into an array of bytes. |
int |
ObjectInputStream.read(byte[] buf,
int off,
int len)
Reads into an array of bytes. |
int |
ObjectInput.read(byte[] b,
int off,
int len)
Reads into an array of bytes. |
int |
LineNumberInputStream.read(byte[] b,
int off,
int len)
Deprecated. Reads up to len bytes of data from this input stream
into an array of bytes. |
int |
InputStream.read(byte[] b,
int off,
int len)
Reads up to len bytes of data from the input stream into
an array of bytes. |
int |
FilterInputStream.read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this input stream
into an array of bytes. |
int |
FileInputStream.read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this input stream
into an array of bytes. |
int |
DataInputStream.read(byte[] b,
int off,
int len)
Reads up to len bytes of data from the contained
input stream into an array of bytes. |
int |
BufferedInputStream.read(byte[] b,
int off,
int len)
Reads bytes from this byte-input stream into the specified byte array, starting at the given offset. |
int |
Reader.read(char[] cbuf)
Reads characters into an array. |
int |
StringReader.read(char[] cbuf,
int off,
int len)
Reads characters into a portion of an array. |
abstract int |
Reader.read(char[] cbuf,
int off,
int len)
Reads characters into a portion of an array. |
int |
PushbackReader.read(char[] cbuf,
int off,
int len)
Reads characters into a portion of an array. |
int |
PipedReader.read(char[] cbuf,
int off,
int len)
Reads up to len characters of data from this piped
stream into an array of characters. |
int |
LineNumberReader.read(char[] cbuf,
int off,
int len)
Read characters into a portion of an array. |
int |
InputStreamReader.read(char[] cbuf,
int offset,
int length)
Reads characters into a portion of an array. |
int |
FilterReader.read(char[] cbuf,
int off,
int len)
Reads characters into a portion of an array. |
int |
CharArrayReader.read(char[] b,
int off,
int len)
Reads characters into a portion of an array. |
int |
BufferedReader.read(char[] cbuf,
int off,
int len)
Reads characters into a portion of an array. |
int |
Reader.read(CharBuffer target)
Attempts to read characters into the specified character buffer. |
boolean |
RandomAccessFile.readBoolean()
Reads a boolean from this file. |
boolean |
ObjectInputStream.readBoolean()
Reads in a boolean. |
boolean |
DataInputStream.readBoolean()
See the general contract of the readBoolean
method of DataInput. |
boolean |
DataInput.readBoolean()
Reads one input byte and returns true if that byte is nonzero,
false if that byte is zero. |
byte |
RandomAccessFile.readByte()
Reads a signed eight-bit value from this file. |
byte |
ObjectInputStream.readByte()
Reads an 8 bit byte. |
byte |
DataInputStream.readByte()
See the general contract of the readByte
method of DataInput. |
byte |
DataInput.readByte()
Reads and returns one input byte. |
char |
RandomAccessFile.readChar()
Reads a character from this file. |
char |
ObjectInputStream.readChar()
Reads a 16 bit char. |
char |
DataInputStream.readChar()
See the general contract of the readChar
method of DataInput. |
char |
DataInput.readChar()
Reads two input bytes and returns a char value. |
protected ObjectStreamClass |
ObjectInputStream.readClassDescriptor()
Read a class descriptor from the serialization stream. |
double |
RandomAccessFile.readDouble()
Reads a double from this file. |
double |
ObjectInputStream.readDouble()
Reads a 64 bit double. |
double |
DataInputStream.readDouble()
See the general contract of the readDouble
method of DataInput. |
double |
DataInput.readDouble()
Reads eight input bytes and returns a double value. |
void |
Externalizable.readExternal(ObjectInput in)
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
ObjectInputStream.GetField |
ObjectInputStream.readFields()
Reads the persistent fields from the stream and makes them available by name. |
float |
RandomAccessFile.readFloat()
Reads a float from this file. |
float |
ObjectInputStream.readFloat()
Reads a 32 bit float. |
float |
DataInputStream.readFloat()
See the general contract of the readFloat
method of DataInput. |
float |
DataInput.readFloat()
Reads four input bytes and returns a float value. |
void |
RandomAccessFile.readFully(byte[] b)
Reads b.length bytes from this file into the byte
array, starting at the current file pointer. |
void |
ObjectInputStream.readFully(byte[] buf)
Reads bytes, blocking until all bytes are read. |
void |
DataInputStream.readFully(byte[] b)
See the general contract of the readFully
method of DataInput. |
void |
DataInput.readFully(byte[] b)
Reads some bytes from an input stream and stores them into the buffer array b. |
void |
RandomAccessFile.readFully(byte[] b,
int off,
int len)
Reads exactly len bytes from this file into the byte
array, starting at the current file pointer. |
void |
ObjectInputStream.readFully(byte[] buf,
int off,
int len)
Reads bytes, blocking until all bytes are read. |
void |
DataInputStream.readFully(byte[] b,
int off,
int len)
See the general contract of the readFully
method of DataInput. |
void |
DataInput.readFully(byte[] b,
int off,
int len)
Reads len
bytes from
an input stream. |
int |
RandomAccessFile.readInt()
Reads a signed 32-bit integer from this file. |
int |
ObjectInputStream.readInt()
Reads a 32 bit int. |
int |
DataInputStream.readInt()
See the general contract of the readInt
method of DataInput. |
int |
DataInput.readInt()
Reads four input bytes and returns an int value. |
String |
RandomAccessFile.readLine()
Reads the next line of text from this file. |
String |
ObjectInputStream.readLine()
Deprecated. This method does not properly convert bytes to characters. see DataInputStream for the details and alternatives. |
String |
LineNumberReader.readLine()
Read a line of text. |
String |
DataInputStream.readLine()
Deprecated. This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via the BufferedReader.readLine() method. Programs that use the
DataInputStream class to read lines can be converted to use
the BufferedReader class by replacing code of the form:
with:
|
String |
DataInput.readLine()
Reads the next line of text from the input stream. |
String |
BufferedReader.readLine()
Reads a line of text. |
long |
RandomAccessFile.readLong()
Reads a signed 64-bit integer from this file. |
long |
ObjectInputStream.readLong()
Reads a 64 bit long. |
long |
DataInputStream.readLong()
See the general contract of the readLong
method of DataInput. |
long |
DataInput.readLong()
Reads eight input bytes and returns a long value. |
Object |
ObjectInputStream.readObject()
Read an object from the ObjectInputStream. |
Object |
ObjectInput.readObject()
Read and return an object. |
protected Object |
ObjectInputStream.readObjectOverride()
This method is called by trusted subclasses of ObjectOutputStream that constructed ObjectOutputStream using the protected no-arg constructor. |
short |
RandomAccessFile.readShort()
Reads a signed 16-bit number from this file. |
short |
ObjectInputStream.readShort()
Reads a 16 bit short. |
short |
DataInputStream.readShort()
See the general contract of the readShort
method of DataInput. |
short |
DataInput.readShort()
Reads two input bytes and returns a short value. |
protected void |
ObjectInputStream.readStreamHeader()
The readStreamHeader method is provided to allow subclasses to read and verify their own stream headers. |
Object |
ObjectInputStream.readUnshared()
Reads an "unshared" object from the ObjectInputStream. |
int |
RandomAccessFile.readUnsignedByte()
Reads an unsigned eight-bit number from this file. |
int |
ObjectInputStream.readUnsignedByte()
Reads an unsigned 8 bit byte. |
int |
DataInputStream.readUnsignedByte()
See the general contract of the readUnsignedByte
method of DataInput. |
int |
DataInput.readUnsignedByte()
Reads one input byte, zero-extends it to type int, and returns
the result, which is therefore in the range
0
through 255. |
int |
RandomAccessFile.readUnsignedShort()
Reads an unsigned 16-bit number from this file. |
int |
ObjectInputStream.readUnsignedShort()
Reads an unsigned 16 bit short. |
int |
DataInputStream.readUnsignedShort()
See the general contract of the readUnsignedShort
method of DataInput. |
int |
DataInput.readUnsignedShort()
Reads two input bytes and returns an int value in the range 0
through 65535. |
String |
RandomAccessFile.readUTF()
Reads in a string from this file. |
String |
ObjectInputStream.readUTF()
Reads a String in modified UTF-8 format. |
String |
DataInputStream.readUTF()
See the general contract of the readUTF
method of DataInput. |
String |
DataInput.readUTF()
Reads in a string that has been encoded using a modified UTF-8 format. |
static String |
DataInputStream.readUTF(DataInput in)
Reads from the stream in a representation
of a Unicode character string encoded in
modified UTF-8 format;
this string of characters is then returned as a String. |
boolean |
StringReader.ready()
Tells whether this stream is ready to be read. |
boolean |
Reader.ready()
Tells whether this stream is ready to be read. |
boolean |
PushbackReader.ready()
Tells whether this stream is ready to be read. |
boolean |
PipedReader.ready()
Tell whether this stream is ready to be read. |
boolean |
InputStreamReader.ready()
Tells whether this stream is ready to be read. |
boolean |
FilterReader.ready()
Tells whether this stream is ready to be read. |
boolean |
CharArrayReader.ready()
Tells whether this stream is ready to be read. |
boolean |
BufferedReader.ready()
Tells whether this stream is ready to be read. |
protected void |
PipedInputStream.receive(int b)
Receives a byte of data. |
protected Object |
ObjectOutputStream.replaceObject(Object obj)
This method will allow trusted subclasses of ObjectOutputStream to substitute one object for another during serialization. |
void |
StringReader.reset()
Resets the stream to the most recent mark, or to the beginning of the string if it has never been marked. |
void |
Reader.reset()
Resets the stream. |
void |
PushbackReader.reset()
Resets the stream. |
void |
PushbackInputStream.reset()
Repositions this stream to the position at the time the mark method was last called on this input stream. |
void |
ObjectOutputStream.reset()
Reset will disregard the state of any objects already written to the stream. |
void |
LineNumberReader.reset()
Reset the stream to the most recent mark. |
void |
LineNumberInputStream.reset()
Deprecated. Repositions this stream to the position at the time the mark method was last called on this input stream. |
void |
InputStream.reset()
Repositions this stream to the position at the time the mark method was last called on this input stream. |
void |
FilterReader.reset()
Resets the stream. |
void |
FilterInputStream.reset()
Repositions this stream to the position at the time the mark method was last called on this input stream. |
void |
CharArrayReader.reset()
Resets the stream to the most recent mark, or to the beginning if it has never been marked. |
void |
BufferedReader.reset()
Resets the stream to the most recent mark. |
void |
BufferedInputStream.reset()
See the general contract of the reset
method of InputStream. |
protected Class<?> |
ObjectInputStream.resolveClass(ObjectStreamClass desc)
Load the local class equivalent of the specified stream class description. |
protected Object |
ObjectInputStream.resolveObject(Object obj)
This method will allow trusted subclasses of ObjectInputStream to substitute one object for another during deserialization. |
protected Class<?> |
ObjectInputStream.resolveProxyClass(String[] interfaces)
Returns a proxy class that implements the interfaces named in a proxy class descriptor; subclasses may implement this method to read custom data from the stream along with the descriptors for dynamic proxy classes, allowing them to use an alternate loading mechanism for the interfaces and the proxy class. |
void |
RandomAccessFile.seek(long pos)
Sets the file-pointer offset, measured from the beginning of this file, at which the next read or write occurs. |
void |
RandomAccessFile.setLength(long newLength)
Sets the length of this file. |
long |
StringReader.skip(long ns)
Skips the specified number of characters in the stream. |
long |
Reader.skip(long n)
Skips characters. |
long |
PushbackReader.skip(long n)
Skips characters. |
long |
PushbackInputStream.skip(long n)
Skips over and discards n bytes of data from this
input stream. |
long |
ObjectInput.skip(long n)
Skips n bytes of input. |
long |
LineNumberReader.skip(long n)
Skip characters. |
long |
LineNumberInputStream.skip(long n)
Deprecated. Skips over and discards n bytes of data from this
input stream. |
long |
InputStream.skip(long n)
Skips over and discards n bytes of data from this input
stream. |
long |
FilterReader.skip(long n)
Skips characters. |
long |
FilterInputStream.skip(long n)
Skips over and discards n bytes of data from this input
stream. |
long |
FileInputStream.skip(long n)
Skips over and discards n bytes of data from the
input stream. |
long |
CharArrayReader.skip(long n)
Skips characters. |
long |
BufferedReader.skip(long n)
Skips characters. |
long |
BufferedInputStream.skip(long n)
See the general contract of the skip
method of InputStream. |
int |
RandomAccessFile.skipBytes(int n)
Attempts to skip over n bytes of input discarding the
skipped bytes. |
int |
ObjectInputStream.skipBytes(int len)
Skips bytes. |
int |
DataInputStream.skipBytes(int n)
See the general contract of the skipBytes
method of DataInput. |
int |
DataInput.skipBytes(int n)
Makes an attempt to skip over n bytes
of data from the input
stream, discarding the skipped bytes. |
void |
PushbackInputStream.unread(byte[] b)
Pushes back an array of bytes by copying it to the front of the pushback buffer. |
void |
PushbackInputStream.unread(byte[] b,
int off,
int len)
Pushes back a portion of an array of bytes by copying it to the front of the pushback buffer. |
void |
PushbackReader.unread(char[] cbuf)
Pushes back an array of characters by copying it to the front of the pushback buffer. |
void |
PushbackReader.unread(char[] cbuf,
int off,
int len)
Pushes back a portion of an array of characters by copying it to the front of the pushback buffer. |
void |
PushbackReader.unread(int c)
Pushes back a single character by copying it to the front of the pushback buffer. |
void |
PushbackInputStream.unread(int b)
Pushes back a byte by copying it to the front of the pushback buffer. |
void |
ObjectOutputStream.useProtocolVersion(int version)
Specify stream protocol version to use when writing the stream. |
void |
RandomAccessFile.write(byte[] b)
Writes b.length bytes from the specified byte array
to this file, starting at the current file pointer. |
void |
OutputStream.write(byte[] b)
Writes b.length bytes from the specified byte array
to this output stream. |
void |
ObjectOutputStream.write(byte[] buf)
Writes an array of bytes. |
void |
ObjectOutput.write(byte[] b)
Writes an array of bytes. |
void |
FilterOutputStream.write(byte[] b)
Writes b.length bytes to this output stream. |
void |
FileOutputStream.write(byte[] b)
Writes b.length bytes from the specified byte array
to this file output stream. |
void |
DataOutput.write(byte[] b)
Writes to the output stream all the bytes in array b. |
void |
RandomAccessFile.write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array
starting at offset off to this file. |
void |
PipedOutputStream.write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array
starting at offset off to this piped output stream. |
void |
OutputStream.write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array
starting at offset off to this output stream. |
void |
ObjectOutputStream.write(byte[] buf,
int off,
int len)
Writes a sub array of bytes. |
void |
ObjectOutput.write(byte[] b,
int off,
int len)
Writes a sub array of bytes. |
void |
FilterOutputStream.write(byte[] b,
int off,
int len)
Writes len bytes from the specified
byte array starting at offset off to
this output stream. |
void |
FileOutputStream.write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array
starting at offset off to this file output stream. |
void |
DataOutputStream.write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array
starting at offset off to the underlying output stream. |
void |
DataOutput.write(byte[] b,
int off,
int len)
Writes len bytes from array
b, in order, to
the output stream. |
void |
BufferedOutputStream.write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array
starting at offset off to this buffered output stream. |
void |
Writer.write(char[] cbuf)
Writes an array of characters. |
abstract void |
Writer.write(char[] cbuf,
int off,
int len)
Writes a portion of an array of characters. |
void |
PipedWriter.write(char[] cbuf,
int off,
int len)
Writes len characters from the specified character array
starting at offset off to this piped output stream. |
void |
OutputStreamWriter.write(char[] cbuf,
int off,
int len)
Writes a portion of an array of characters. |
void |
FilterWriter.write(char[] cbuf,
int off,
int len)
Writes a portion of an array of characters. |
void |
BufferedWriter.write(char[] cbuf,
int off,
int len)
Writes a portion of an array of characters. |
void |
Writer.write(int c)
Writes a single character. |
void |
RandomAccessFile.write(int b)
Writes the specified byte to this file. |
void |
PipedWriter.write(int c)
Writes the specified char to the piped output stream. |
void |
PipedOutputStream.write(int b)
Writes the specified byte to the piped output stream. |
void |
OutputStreamWriter.write(int c)
Writes a single character. |
abstract void |
OutputStream.write(int b)
Writes the specified byte to this output stream. |
void |
ObjectOutputStream.write(int val)
Writes a byte. |
void |
ObjectOutput.write(int b)
Writes a byte. |
void |
FilterWriter.write(int c)
Writes a single character. |
void |
FilterOutputStream.write(int b)
Writes the specified byte to this output stream. |
void |
FileOutputStream.write(int b)
Writes the specified byte to this file output stream. |
void |
DataOutputStream.write(int b)
Writes the specified byte (the low eight bits of the argument b) to the underlying output stream. |
void |
DataOutput.write(int b)
Writes to the output stream the eight low-order bits of the argument b. |
void |
BufferedWriter.write(int c)
Writes a single character. |
void |
BufferedOutputStream.write(int b)
Writes the specified byte to this buffered output stream. |
abstract void |
ObjectOutputStream.PutField.write(ObjectOutput out)
Deprecated. This method does not write the values contained by this PutField object in a proper format, and may
result in corruption of the serialization stream. The
correct way to write PutField data is by
calling the ObjectOutputStream.writeFields()
method. |
void |
Writer.write(String str)
Writes a string. |
void |
Writer.write(String str,
int off,
int len)
Writes a portion of a string. |
void |
OutputStreamWriter.write(String str,
int off,
int len)
Writes a portion of a string. |
void |
FilterWriter.write(String str,
int off,
int len)
Writes a portion of a string. |
void |
BufferedWriter.write(String s,
int off,
int len)
Writes a portion of a String. |
void |
RandomAccessFile.writeBoolean(boolean v)
Writes a boolean to the file as a one-byte value. |
void |
ObjectOutputStream.writeBoolean(boolean val)
Writes a boolean. |
void |
DataOutputStream.writeBoolean(boolean v)
Writes a boolean to the underlying output stream as
a 1-byte value. |
void |
DataOutput.writeBoolean(boolean v)
Writes a boolean value to this output stream. |
void |
RandomAccessFile.writeByte(int v)
Writes a byte to the file as a one-byte value. |
void |
ObjectOutputStream.writeByte(int val)
Writes an 8 bit byte. |
void |
DataOutputStream.writeByte(int v)
Writes out a byte to the underlying output stream as
a 1-byte value. |
void |
DataOutput.writeByte(int v)
Writes to the output stream the eight low- order bits of the argument v. |
void |
RandomAccessFile.writeBytes(String s)
Writes the string to the file as a sequence of bytes. |
void |
ObjectOutputStream.writeBytes(String str)
Writes a String as a sequence of bytes. |
void |
DataOutputStream.writeBytes(String s)
Writes out the string to the underlying output stream as a sequence of bytes. |
void |
DataOutput.writeBytes(String s)
Writes a string to the output stream. |
void |
RandomAccessFile.writeChar(int v)
Writes a char to the file as a two-byte value, high
byte first. |
void |
ObjectOutputStream.writeChar(int val)
Writes a 16 bit char. |
void |
DataOutputStream.writeChar(int v)
Writes a char to the underlying output stream as a
2-byte value, high byte first. |
void |
DataOutput.writeChar(int v)
Writes a char value, which
is comprised of two bytes, to the
output stream. |
void |
RandomAccessFile.writeChars(String s)
Writes a string to the file as a sequence of characters. |
void |
ObjectOutputStream.writeChars(String str)
Writes a String as a sequence of chars. |
void |
DataOutputStream.writeChars(String s)
Writes a string to the underlying output stream as a sequence of characters. |
void |
DataOutput.writeChars(String s)
Writes every character in the string s,
to the output stream, in order,
two bytes per character. |
protected void |
ObjectOutputStream.writeClassDescriptor(ObjectStreamClass desc)
Write the specified class descriptor to the ObjectOutputStream. |
void |
RandomAccessFile.writeDouble(double v)
Converts the double argument to a long using the
doubleToLongBits method in class Double,
and then writes that long value to the file as an
eight-byte quantity, high byte first. |
void |
ObjectOutputStream.writeDouble(double val)
Writes a 64 bit double. |
void |
DataOutputStream.writeDouble(double v)
Converts the double argument to a long using the
doubleToLongBits method in class Double,
and then writes that long value to the underlying
output stream as an 8-byte quantity, high byte first. |
void |
DataOutput.writeDouble(double v)
Writes a double value,
which is comprised of eight bytes, to the output stream. |
void |
Externalizable.writeExternal(ObjectOutput out)
The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
void |
ObjectOutputStream.writeFields()
Write the buffered fields to the stream. |
void |
RandomAccessFile.writeFloat(float v)
Converts the float argument to an int using the
floatToIntBits method in class Float,
and then writes that int value to the file as a
four-byte quantity, high byte first. |
void |
ObjectOutputStream.writeFloat(float val)
Writes a 32 bit float. |
void |
DataOutputStream.writeFloat(float v)
Converts the float argument to an int using the
floatToIntBits method in class Float,
and then writes that int value to the underlying
output stream as a 4-byte quantity, high byte first. |
void |
DataOutput.writeFloat(float v)
Writes a float value,
which is comprised of four bytes, to the output stream. |
void |
RandomAccessFile.writeInt(int v)
Writes an int to the file as four bytes, high byte first. |
void |
ObjectOutputStream.writeInt(int val)
Writes a 32 bit int. |
void |
DataOutputStream.writeInt(int v)
Writes an int to the underlying output stream as four
bytes, high byte first. |
void |
DataOutput.writeInt(int v)
Writes an int value, which is
comprised of four bytes, to the output stream. |
void |
RandomAccessFile.writeLong(long v)
Writes a long to the file as eight bytes, high byte first. |
void |
ObjectOutputStream.writeLong(long val)
Writes a 64 bit long. |
void |
DataOutputStream.writeLong(long v)
Writes a long to the underlying output stream as eight
bytes, high byte first. |
void |
DataOutput.writeLong(long v)
Writes a long value, which is
comprised of eight bytes, to the output stream. |
void |
ObjectOutputStream.writeObject(Object obj)
Write the specified object to the ObjectOutputStream. |
void |
ObjectOutput.writeObject(Object obj)
Write an object to the underlying storage or stream. |
protected void |
ObjectOutputStream.writeObjectOverride(Object obj)
Method used by subclasses to override the default writeObject method. |
void |
RandomAccessFile.writeShort(int v)
Writes a short to the file as two bytes, high byte first. |
void |
ObjectOutputStream.writeShort(int val)
Writes a 16 bit short. |
void |
DataOutputStream.writeShort(int v)
Writes a short to the underlying output stream as two
bytes, high byte first. |
void |
DataOutput.writeShort(int v)
Writes two bytes to the output stream to represent the value of the argument. |
protected void |
ObjectOutputStream.writeStreamHeader()
The writeStreamHeader method is provided so subclasses can append or prepend their own header to the stream. |
void |
ByteArrayOutputStream.writeTo(OutputStream out)
Writes the complete contents of this byte array output stream to the specified output stream argument, as if by calling the output stream's write method using out.write(buf, 0, count). |
void |
CharArrayWriter.writeTo(Writer out)
Writes the contents of the buffer to another character stream. |
void |
ObjectOutputStream.writeUnshared(Object obj)
Writes an "unshared" object to the ObjectOutputStream. |
void |
RandomAccessFile.writeUTF(String str)
Writes a string to the file using modified UTF-8 encoding in a machine-independent manner. |
void |
ObjectOutputStream.writeUTF(String str)
Primitive data write of this String in modified UTF-8 format. |
void |
DataOutputStream.writeUTF(String str)
Writes a string to the underlying output stream using modified UTF-8 encoding in a machine-independent manner. |
void |
DataOutput.writeUTF(String s)
Writes two bytes of length information to the output stream, followed by the modified UTF-8 representation of every character in the string s. |
| Constructor and Description |
|---|
FileWriter(File file)
Constructs a FileWriter object given a File object. |
FileWriter(File file,
boolean append)
Constructs a FileWriter object given a File object. |
FileWriter(String fileName)
Constructs a FileWriter object given a file name. |
FileWriter(String fileName,
boolean append)
Constructs a FileWriter object given a file name with a boolean indicating whether or not to append the data written. |
ObjectInputStream()
Provide a way for subclasses that are completely reimplementing ObjectInputStream to not have to allocate private data just used by this implementation of ObjectInputStream. |
ObjectInputStream(InputStream in)
Creates an ObjectInputStream that reads from the specified InputStream. |
ObjectOutputStream()
Provide a way for subclasses that are completely reimplementing ObjectOutputStream to not have to allocate private data just used by this implementation of ObjectOutputStream. |
ObjectOutputStream(OutputStream out)
Creates an ObjectOutputStream that writes to the specified OutputStream. |
PipedInputStream(PipedOutputStream src)
Creates a PipedInputStream so
that it is connected to the piped output
stream src. |
PipedInputStream(PipedOutputStream src,
int pipeSize)
Creates a PipedInputStream so that it is
connected to the piped output stream
src and uses the specified pipe size for
the pipe's buffer. |
PipedOutputStream(PipedInputStream snk)
Creates a piped output stream connected to the specified piped input stream. |
PipedReader(PipedWriter src)
Creates a PipedReader so
that it is connected to the piped writer
src. |
PipedReader(PipedWriter src,
int pipeSize)
Creates a PipedReader so that it is connected
to the piped writer src and uses the specified
pipe size for the pipe's buffer. |
PipedWriter(PipedReader snk)
Creates a piped writer connected to the specified piped reader. |
| Uses of IOException in java.lang |
|---|
| Modifier and Type | Method and Description |
|---|---|
Appendable |
Appendable.append(char c)
Appends the specified character to this Appendable. |
Appendable |
Appendable.append(CharSequence csq)
Appends the specified character sequence to this Appendable. |
Appendable |
Appendable.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this Appendable. |
Process |
Runtime.exec(String command)
Executes the specified string command in a separate process. |
Process |
Runtime.exec(String[] cmdarray)
Executes the specified command and arguments in a separate process. |
Process |
Runtime.exec(String[] cmdarray,
String[] envp)
Executes the specified command and arguments in a separate process with the specified environment. |
Process |
Runtime.exec(String[] cmdarray,
String[] envp,
File dir)
Executes the specified command and arguments in a separate process with the specified environment and working directory. |
Process |
Runtime.exec(String command,
String[] envp)
Executes the specified string command in a separate process with the specified environment. |
Process |
Runtime.exec(String command,
String[] envp,
File dir)
Executes the specified string command in a separate process with the specified environment and working directory. |
protected Enumeration<URL> |
ClassLoader.findResources(String name)
Returns an enumeration of URL objects
representing all the resources with the given name. |
Enumeration<URL> |
ClassLoader.getResources(String name)
Finds all the resources with the given name. |
static Enumeration<URL> |
ClassLoader.getSystemResources(String name)
Finds all resources of the specified name from the search path used to load classes. |
static Channel |
System.inheritedChannel()
Returns the channel inherited from the entity that created this Java virtual machine. |
int |
Readable.read(CharBuffer cb)
Attempts to read characters into the specified character buffer. |
Process |
ProcessBuilder.start()
Starts a new process using the attributes of this process builder. |
| Uses of IOException in java.lang.management |
|---|
| Modifier and Type | Method and Description | |
|---|---|---|
static
|
ManagementFactory.getPlatformMXBeans(MBeanServerConnection connection,
Class<T> mxbeanInterface)
Returns the list of the platform MXBean proxies for forwarding the method calls of the mxbeanInterface
through the given MBeanServerConnection. |
|
static
|
ManagementFactory.newPlatformMXBeanProxy(MBeanServerConnection connection,
String mxbeanName,
Class<T> mxbeanInterface)
Returns a proxy for a platform MXBean interface of a given MXBean name that forwards its method calls through the given MBeanServerConnection. |
| Uses of IOException in java.net |
|---|
| Modifier and Type | Class and Description |
|---|---|
class |
BindException
Signals that an error occurred while attempting to bind a socket to a local address and port. |
class |
HttpRetryException
Thrown to indicate that a HTTP request needs to be retried but cannot be retried automatically, due to streaming mode being enabled. |
class |
MalformedURLException
Thrown to indicate that a malformed URL has occurred. |
class |
NoRouteToHostException
Signals that an error occurred while attempting to connect a socket to a remote address and port. |
class |
PortUnreachableException
Signals that an ICMP Port Unreachable message has been received on a connected datagram. |
class |
ProtocolException
Thrown to indicate that there is an error in the underlying protocol, such as a TCP error. |
class |
SocketException
Thrown to indicate that there is an error creating or accessing a Socket. |
class |
SocketTimeoutException
Signals that a timeout has occurred on a socket read or accept. |
class |
UnknownHostException
Thrown to indicate that the IP address of a host could not be determined. |
class |
UnknownServiceException
Thrown to indicate that an unknown service exception has occurred. |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
ProxySelector.connectFailed(URI uri,
SocketAddress sa,
IOException ioe)
Called to indicate that a connection could not be established to a proxy/socks server. |
| Modifier and Type | Method and Description |
|---|---|
Socket |
ServerSocket.accept()
Listens for a connection to be made to this socket and accepts it. |
protected abstract void |
SocketImpl.accept(SocketImpl s)
Accepts a connection. |
protected abstract int |
SocketImpl.available()
Returns the number of bytes that can be read from this socket without blocking. |
protected abstract void |
SocketImpl.bind(InetAddress host,
int port)
Binds this socket to the specified local IP address and port number. |
void |
Socket.bind(SocketAddress bindpoint)
Binds the socket to a local address. |
void |
ServerSocket.bind(SocketAddress endpoint)
Binds the ServerSocket to a specific address
(IP address and port number). |
void |
ServerSocket.bind(SocketAddress endpoint,
int backlog)
Binds the ServerSocket to a specific address
(IP address and port number). |
void |
URLClassLoader.close()
Closes this URLClassLoader, so that it can no longer be used to load new classes or resources that are defined by this loader. |
protected abstract void |
SocketImpl.close()
Closes this socket. |
void |
Socket.close()
Closes this socket. |
void |
ServerSocket.close()
Closes this socket. |
abstract void |
URLConnection.connect()
Opens a communications link to the resource referenced by this URL, if such a connection has not already been established. |
protected abstract void |
SocketImpl.connect(InetAddress address,
int port)
Connects this socket to the specified port number on the specified host. |
void |
Socket.connect(SocketAddress endpoint)
Connects this socket to the server. |
protected abstract void |
SocketImpl.connect(SocketAddress address,
int timeout)
Connects this socket to the specified port number on the specified host. |
void |
Socket.connect(SocketAddress endpoint,
int timeout)
Connects this socket to the server with a specified timeout value. |
protected abstract void |
SocketImpl.connect(String host,
int port)
Connects this socket to the specified port on the named host. |
protected abstract void |
SocketImpl.create(boolean stream)
Creates either a stream or a datagram socket. |
Enumeration<URL> |
URLClassLoader.findResources(String name)
Returns an Enumeration of URLs representing all of the resources on the URL search path having the specified name. |
Map<String,List<String>> |
CookieManager.get(URI uri,
Map<String,List<String>> requestHeaders)
|
abstract Map<String,List<String>> |
CookieHandler.get(URI uri,
Map<String,List<String>> requestHeaders)
Gets all the applicable cookies from a cookie cache for the specified uri in the request header. |
abstract CacheResponse |
ResponseCache.get(URI uri,
String rqstMethod,
Map<String,List<String>> rqstHeaders)
Retrieve the cached response based on the requesting uri, request method and request headers. |
Attributes |
JarURLConnection.getAttributes()
Return the Attributes object for this connection if the URL for it points to a JAR file entry, null otherwise. |
abstract InputStream |
CacheResponse.getBody()
Returns the response body as an InputStream. |
abstract OutputStream |
CacheRequest.getBody()
Returns an OutputStream to which the response body can be written. |
Certificate[] |
JarURLConnection.getCertificates()
Return the Certificate object for this connection if the URL for it points to a JAR file entry, null otherwise. |
Object |
URLConnection.getContent()
Retrieves the contents of this URL connection. |
Object |
URL.getContent()
Gets the contents of this URL. |
Object |
URLConnection.getContent(Class[] classes)
Retrieves the contents of this URL connection. |
Object |
URL.getContent(Class[] classes)
Gets the contents of this URL. |
abstract Object |
ContentHandler.getContent(URLConnection urlc)
Given a URL connect stream positioned at the beginning of the representation of an object, this method reads that stream and creates an object from it. |
Object |
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. |
abstract Map<String,List<String>> |
CacheResponse.getHeaders()
Returns the response headers as a Map. |
InputStream |
URLConnection.getInputStream()
Returns an input stream that reads from this open connection. |
protected abstract InputStream |
SocketImpl.getInputStream()
Returns an input stream for this socket. |
InputStream |
Socket.getInputStream()
Returns an input stream for this socket. |
JarEntry |
JarURLConnection.getJarEntry()
Return the JAR entry object for this connection, if any. |
abstract JarFile |
JarURLConnection.getJarFile()
Return the JAR file for this connection. |
Attributes |
JarURLConnection.getMainAttributes()
Returns the main Attributes for the JAR file for this connection. |
Manifest |
JarURLConnection.getManifest()
Returns the Manifest for this connection, or null if none. |
OutputStream |
URLConnection.getOutputStream()
Returns an output stream that writes to this connection. |
protected abstract OutputStream |
SocketImpl.getOutputStream()
Returns an output stream for this socket. |
OutputStream |
Socket.getOutputStream()
Returns an output stream for this socket. |
Permission |
URLConnection.getPermission()
Returns a permission object representing the permission necessary to make the connection represented by this object. |
Permission |
HttpURLConnection.getPermission()
Returns a SocketPermission object representing the
permission necessary to connect to the destination host and port. |
int |
HttpURLConnection.getResponseCode()
Gets the status code from an HTTP response message. |
String |
HttpURLConnection.getResponseMessage()
Gets the HTTP response message, if any, returned along with the response code from a server. |
int |
ServerSocket.getSoTimeout()
Retrieve setting for SO_TIMEOUT. |
int |
MulticastSocket.getTimeToLive()
Get the default time-to-live for multicast packets sent out on the socket. |
protected abstract int |
DatagramSocketImpl.getTimeToLive()
Retrieve the TTL (time-to-live) option. |
byte |
MulticastSocket.getTTL()
Deprecated. use the getTimeToLive method instead, which returns an int instead of a byte. |
protected abstract byte |
DatagramSocketImpl.getTTL()
Deprecated. use getTimeToLive instead. |
static String |
URLConnection.guessContentTypeFromStream(InputStream is)
Tries to determine the type of an input stream based on the characters at the beginning of the input stream. |
protected void |
ServerSocket.implAccept(Socket s)
Subclasses of ServerSocket use this method to override accept() to return their own subclass of socket. |
boolean |
InetAddress.isReachable(int timeout)
Test whether that address is reachable. |
boolean |
InetAddress.isReachable(NetworkInterface netif,
int ttl,
int timeout)
Test whether that address is reachable. |
protected abstract void |
DatagramSocketImpl.join(InetAddress inetaddr)
Join the multicast group. |
void |
MulticastSocket.joinGroup(InetAddress mcastaddr)
Joins a multicast group. |
void |
MulticastSocket.joinGroup(SocketAddress mcastaddr,
NetworkInterface netIf)
Joins the specified multicast group at the specified interface. |
protected abstract void |
DatagramSocketImpl.joinGroup(SocketAddress mcastaddr,
NetworkInterface netIf)
Join the multicast group. |
protected abstract void |
DatagramSocketImpl.leave(InetAddress inetaddr)
Leave the multicast group. |
void |
MulticastSocket.leaveGroup(InetAddress mcastaddr)
Leave a multicast group. |
void |
MulticastSocket.leaveGroup(SocketAddress mcastaddr,
NetworkInterface netIf)
Leave a multicast group on a specified local interface. |
protected abstract void |
DatagramSocketImpl.leaveGroup(SocketAddress mcastaddr,
NetworkInterface netIf)
Leave the multicast group. |
protected abstract void |
SocketImpl.listen(int backlog)
Sets the maximum queue length for incoming connection indications (a request to connect) to the count argument. |
URLConnection |
URL.openConnection()
Returns a URLConnection instance that
represents a connection to the remote object referred to by the
URL. |
URLConnection |
URL.openConnection(Proxy proxy)
Same as URL.openConnection(), except that the connection will be
made through the specified proxy; Protocol handlers that do not
support proxing will ignore the proxy parameter and make a
normal connection. |
protected abstract URLConnection |
URLStreamHandler.openConnection(URL u)
Opens a connection to the object referenced by the URL argument. |
protected URLConnection |
URLStreamHandler.openConnection(URL u,
Proxy p)
Same as openConnection(URL), except that the connection will be made through the specified proxy; Protocol handlers that do not support proxying will ignore the proxy parameter and make a normal connection. |
InputStream |
URL.openStream()
Opens a connection to this URL and returns an
InputStream for reading from that connection. |
protected abstract int |
DatagramSocketImpl.peek(InetAddress i)
Peek at the packet to see who it is from. |
protected abstract int |
DatagramSocketImpl.peekData(DatagramPacket p)
Peek at the packet to see who it is from. |
void |
CookieManager.put(URI uri,
Map<String,List<String>> responseHeaders)
|
abstract void |
CookieHandler.put(URI uri,
Map<String,List<String>> responseHeaders)
Sets all the applicable cookies, examples are response header fields that are named Set-Cookie2, present in the response headers into a cookie cache. |
abstract CacheRequest |
ResponseCache.put(URI uri,
URLConnection conn)
The protocol handler calls this method after a resource has been retrieved, and the ResponseCache must decide whether or not to store the resource in its cache. |
protected abstract void |
DatagramSocketImpl.receive(DatagramPacket p)
Receive the datagram packet. |
void |
DatagramSocket.receive(DatagramPacket p)
Receives a datagram packet from this socket. |
protected abstract void |
DatagramSocketImpl.send(DatagramPacket p)
Sends a datagram packet. |
void |
DatagramSocket.send(DatagramPacket p)
Sends a datagram packet from this socket. |
void |
MulticastSocket.send(DatagramPacket p,
byte ttl)
Deprecated. Use the following code or its equivalent instead: ...... int ttl = mcastSocket.getTimeToLive(); mcastSocket.setTimeToLive(newttl); mcastSocket.send(p); mcastSocket.setTimeToLive(ttl); ...... |
protected abstract void |
SocketImpl.sendUrgentData(int data)
Send one byte of urgent data on the socket. |
void |
Socket.sendUrgentData(int data)
Send one byte of urgent data on the socket. |
static void |
DatagramSocket.setDatagramSocketImplFactory(DatagramSocketImplFactory fac)
Sets the datagram socket implementation factory for the application. |
static void |
ServerSocket.setSocketFactory(SocketImplFactory fac)
Sets the server socket implementation factory for the application. |
static void |
Socket.setSocketImplFactory(SocketImplFactory fac)
Sets the client socket implementation factory for the application. |
void |
MulticastSocket.setTimeToLive(int ttl)
Set the default time-to-live for multicast packets sent out on this MulticastSocket in order to control the
scope of the multicasts. |
protected abstract void |
DatagramSocketImpl.setTimeToLive(int ttl)
Set the TTL (time-to-live) option. |
void |
MulticastSocket.setTTL(byte ttl)
Deprecated. use the setTimeToLive method instead, which uses int instead of byte as the type for ttl. |
protected abstract void |
DatagramSocketImpl.setTTL(byte ttl)
Deprecated. use setTimeToLive instead. |
protected void |
SocketImpl.shutdownInput()
Places the input stream for this socket at "end of stream". |
void |
Socket.shutdownInput()
Places the input stream for this socket at "end of stream". |
protected void |
SocketImpl.shutdownOutput()
Disables the output stream for this socket. |
void |
Socket.shutdownOutput()
Disables the output stream for this socket. |
| Constructor and Description |
|---|
MulticastSocket()
Create a multicast socket. |
MulticastSocket(int port)
Create a multicast socket and bind it to a specific port. |
MulticastSocket(SocketAddress bindaddr)
Create a MulticastSocket bound to the specified socket address. |
ServerSocket()
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. |
Socket(InetAddress address,
int port)
Creates a stream socket and connects it to the specified port number at the specified IP address. |
Socket(InetAddress host,
int port,
boolean stream)
Deprecated. Use DatagramSocket instead for UDP transport. |
Socket(InetAddress address,
int port,
InetAddress localAddr,
int localPort)
Creates a socket and connects it to the specified remote address on the specified remote port. |
Socket(String host,
int port)
Creates a stream socket and connects it to the specified port number on the named host. |
Socket(String host,
int port,
boolean stream)
Deprecated. Use DatagramSocket instead for UDP transport. |
Socket(String host,
int port,
InetAddress localAddr,
int localPort)
Creates a socket and connects it to the specified remote host on the specified remote port. |
| Uses of IOException in java.nio |
|---|
| Modifier and Type | Method and Description |
|---|---|
int |
CharBuffer.read(CharBuffer target)
Attempts to read characters into the specified character buffer. |
| Uses of IOException in java.nio.channels |
|---|
| Modifier and Type | Class and Description |
|---|---|
class |
AsynchronousCloseException
Checked exception received by a thread when another thread closes the channel or the part of the channel upon which it is blocked in an I/O operation. |
class |
ClosedByInterruptException
Checked exception received by a thread when another thread interrupts it while it is blocked in an I/O operation upon a channel. |
class |
ClosedChannelException
Checked exception thrown when an attempt is made to invoke or complete an I/O operation upon channel that is closed, or at least closed to that operation. |
class |
FileLockInterruptionException
Checked exception received by a thread when another thread interrupts it while it is waiting to acquire a file lock. |
class |
InterruptedByTimeoutException
Checked exception received by a thread when a timeout elapses before an asynchronous operation completes. |
| Modifier and Type | Method and Description | |
|---|---|---|
abstract SocketChannel |
ServerSocketChannel.accept()
Accepts a connection made to this channel's socket. |
|
NetworkChannel |
NetworkChannel.bind(SocketAddress local)
Binds the channel's socket to a local address. |
|
abstract AsynchronousSocketChannel |
AsynchronousSocketChannel.bind(SocketAddress local)
|
|
AsynchronousServerSocketChannel |
AsynchronousServerSocketChannel.bind(SocketAddress local)
Binds the channel's socket to a local address and configures the socket to listen for connections. |
|
abstract AsynchronousDatagramChannel |
AsynchronousDatagramChannel.bind(SocketAddress local)
|
|
abstract SocketChannel |
SocketChannel.bind(SocketAddress local)
|
|
ServerSocketChannel |
ServerSocketChannel.bind(SocketAddress local)
Binds the channel's socket to a local address and configures the socket to listen for connections. |
|
abstract DatagramChannel |
DatagramChannel.bind(SocketAddress local)
|
|
abstract AsynchronousServerSocketChannel |
AsynchronousServerSocketChannel.bind(SocketAddress local,
int backlog)
Binds the channel's socket to a local address and configures the socket to listen for connections. |
|
abstract ServerSocketChannel |
ServerSocketChannel.bind(SocketAddress local,
int backlog)
Binds the channel's socket to a local address and configures the socket to listen for connections. |
|
abstract MembershipKey |
MembershipKey.block(InetAddress source)
Block multicast datagrams from the given source address. |
|
void |
MulticastChannel.close()
Closes this channel. |
|
void |
AsynchronousChannel.close()
Closes this channel. |
|
abstract void |
Selector.close()
Closes this selector. |
|
void |
InterruptibleChannel.close()
Closes this channel. |
|
void |
Channel.close()
Closes this channel. |
|
abstract SelectableChannel |
SelectableChannel.configureBlocking(boolean block)
Adjusts this channel's blocking mode. |
|
abstract AsynchronousDatagramChannel |
AsynchronousDatagramChannel.connect(SocketAddress remote)
Connects this channel's socket. |
|
abstract boolean |
SocketChannel.connect(SocketAddress remote)
Connects this channel's socket. |
|
abstract DatagramChannel |
DatagramChannel.connect(SocketAddress remote)
Connects this channel's socket. |
|
abstract AsynchronousDatagramChannel |
AsynchronousDatagramChannel.disconnect()
Disconnects this channel's socket. |
|
abstract DatagramChannel |
DatagramChannel.disconnect()
Disconnects this channel's socket. |
|
abstract boolean |
SocketChannel.finishConnect()
Finishes the process of connecting a socket channel. |
|
abstract void |
AsynchronousFileChannel.force(boolean metaData)
Forces any updates to this channel's file to be written to the storage device that contains it. |
|
abstract void |
FileChannel.force(boolean metaData)
Forces any updates to this channel's file to be written to the storage device that contains it. |
|
SocketAddress |
NetworkChannel.getLocalAddress()
Returns the socket address that this channel's socket is bound to, or null if the socket is not bound. |
|
|
NetworkChannel.getOption(SocketOption<T> name)
Returns the value of a socket option. |
|
abstract SocketAddress |
AsynchronousSocketChannel.getRemoteAddress()
Returns the remote address to which this channel's socket is connected. |
|
abstract SocketAddress |
AsynchronousDatagramChannel.getRemoteAddress()
Returns the remote address to which this channel is connected. |
|
abstract SocketAddress |
SocketChannel.getRemoteAddress()
Returns the remote address to which this channel's socket is connected. |
|
abstract SocketAddress |
DatagramChannel.getRemoteAddress()
Returns the remote address to which this channel's socket is connected. |
|
MembershipKey |
MulticastChannel.join(InetAddress group,
NetworkInterface interf)
Joins a multicast group to begin receiving all datagrams sent to the group, returning a membership key. |
|
MembershipKey |
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. |
|
FileLock |
FileChannel.lock()
Acquires an exclusive lock on this channel's file. |
|
abstract FileLock |
FileChannel.lock(long position,
long size,
boolean shared)
Acquires a lock on the given region of this channel's file. |
|
abstract MappedByteBuffer |
FileChannel.map(FileChannel.MapMode mode,
long position,
long size)
Maps a region of this channel's file directly into memory. |
|
static AsynchronousSocketChannel |
AsynchronousSocketChannel.open()
Opens an asynchronous socket channel. |
|
static AsynchronousServerSocketChannel |
AsynchronousServerSocketChannel.open()
Opens an asynchronous server-socket channel. |
|
static AsynchronousDatagramChannel |
AsynchronousDatagramChannel.open()
Opens an asynchronous datagram channel. |
|
static SocketChannel |
SocketChannel.open()
Opens a socket channel. |
|
static ServerSocketChannel |
ServerSocketChannel.open()
Opens a server-socket channel. |
|
static Selector |
Selector.open()
Opens a selector. |
|
static Pipe |
Pipe.open()
Opens a pipe. |
|
static DatagramChannel |
DatagramChannel.open()
Opens a datagram channel. |
|
static AsynchronousSocketChannel |
AsynchronousSocketChannel.open(AsynchronousChannelGroup group)
Opens an asynchronous socket channel. |
|
static AsynchronousServerSocketChannel |
AsynchronousServerSocketChannel.open(AsynchronousChannelGroup group)
Opens an asynchronous server-socket channel. |
|
static AsynchronousFileChannel |
AsynchronousFileChannel.open(Path file,
OpenOption... options)
Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file. |
|
static FileChannel |
FileChannel.open(Path file,
OpenOption... options)
Opens or creates a file, returning a file channel to access the file. |
|
static AsynchronousFileChannel |
AsynchronousFileChannel.open(Path file,
Set<? extends OpenOption> options,
ExecutorService executor,
FileAttribute<?>... attrs)
Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file. |
|
static FileChannel |
FileChannel.open(Path file,
Set<? extends OpenOption> options,
FileAttribute<?>... attrs)
Opens or creates a file, returning a file channel to access the file. |
|
static DatagramChannel |
DatagramChannel.open(ProtocolFamily family)
Opens a datagram channel. |
|
static AsynchronousDatagramChannel |
AsynchronousDatagramChannel.open(ProtocolFamily family,
AsynchronousChannelGroup group)
Opens an asynchronous datagram channel. |
|
static SocketChannel |
SocketChannel.open(SocketAddress remote)
Opens a socket channel and connects it to a remote address. |
|
long |
SeekableByteChannel.position()
Returns this channel's position. |
|
abstract long |
FileChannel.position()
Returns this channel's file position. |
|
SeekableByteChannel |
SeekableByteChannel.position(long newPosition)
Sets this channel's position. |
|
abstract FileChannel |
FileChannel.position(long newPosition)
Sets this channel's file position. |
|
int |
SeekableByteChannel.read(ByteBuffer dst)
Reads a sequence of bytes from this channel into the given buffer. |
|
abstract int |
SocketChannel.read(ByteBuffer dst)
|
|
int |
ReadableByteChannel.read(ByteBuffer dst)
Reads a sequence of bytes from this channel into the given buffer. |
|
abstract int |
FileChannel.read(ByteBuffer dst)
Reads a sequence of bytes from this channel into the given buffer. |
|
abstract int |
DatagramChannel.read(ByteBuffer dst)
Reads a datagram from this channel. |
|
long |
SocketChannel.read(ByteBuffer[] dsts)
|
|
long |
ScatteringByteChannel.read(ByteBuffer[] dsts)
Reads a sequence of bytes from this channel into the given buffers. |
|
long |
FileChannel.read(ByteBuffer[] dsts)
Reads a sequence of bytes from this channel into the given buffers. |
|
long |
DatagramChannel.read(ByteBuffer[] dsts)
Reads a datagram from this channel. |
|
abstract long |
SocketChannel.read(ByteBuffer[] dsts,
int offset,
int length)
|
|
long |
ScatteringByteChannel.read(ByteBuffer[] dsts,
int offset,
int length)
Reads a sequence of bytes from this channel into a subsequence of the given buffers. |
|
abstract long |
FileChannel.read(ByteBuffer[] dsts,
int offset,
int length)
Reads a sequence of bytes from this channel into a subsequence of the given buffers. |
|
abstract long |
DatagramChannel.read(ByteBuffer[] dsts,
int offset,
int length)
Reads a datagram from this channel. |
|
abstract int |
FileChannel.read(ByteBuffer dst,
long position)
Reads a sequence of bytes from this channel into the given buffer, starting at the given file position. |
|
abstract SocketAddress |
DatagramChannel.receive(ByteBuffer dst)
Receives a datagram via this channel. |
|
abstract void |
FileLock.release()
Releases this lock. |
|
abstract int |
Selector.select()
Selects a set of keys whose corresponding channels are ready for I/O operations. |
|
abstract int |
Selector.select(long timeout)
Selects a set of keys whose corresponding channels are ready for I/O operations. |
|
abstract int |
Selector.selectNow()
Selects a set of keys whose corresponding channels are ready for I/O operations. |
|
abstract int |
DatagramChannel.send(ByteBuffer src,
SocketAddress target)
Sends a datagram via this channel. |
|
|
NetworkChannel.setOption(SocketOption<T> name,
T value)
Sets the value of a socket option. |
|
abstract
|
AsynchronousSocketChannel.setOption(SocketOption<T> name,
T value)
|
|
abstract
|
AsynchronousServerSocketChannel.setOption(SocketOption<T> name,
T value)
|
|
abstract
|
AsynchronousDatagramChannel.setOption(SocketOption<T> name,
T value)
|
|
abstract
|
SocketChannel.setOption(SocketOption<T> name,
T value)
|
|
abstract
|
ServerSocketChannel.setOption(SocketOption<T> name,
T value)
|
|
abstract
|
DatagramChannel.setOption(SocketOption<T> name,
T value)
|
|
abstract AsynchronousSocketChannel |
AsynchronousSocketChannel.shutdownInput()
Shutdown the connection for reading without closing the channel. |
|
abstract SocketChannel |
SocketChannel.shutdownInput()
Shutdown the connection for reading without closing the channel. |
|
abstract void |
AsynchronousChannelGroup.shutdownNow()
Shuts down the group and closes all open channels in the group. |
|
abstract AsynchronousSocketChannel |
AsynchronousSocketChannel.shutdownOutput()
Shutdown the connection for writing without closing the channel. |
|
abstract SocketChannel |
SocketChannel.shutdownOutput()
Shutdown the connection for writing without closing the channel. |
|
long |
SeekableByteChannel.size()
Returns the current size of entity to which this channel is connected. |
|
abstract long |
AsynchronousFileChannel.size()
Returns the current size of this channel's file. |
|
abstract long |
FileChannel.size()
Returns the current size of this channel's file. |
|
abstract long |
FileChannel.transferFrom(ReadableByteChannel src,
long position,
long count)
Transfers bytes into this channel's file from the given readable byte channel. |
|
abstract long |
FileChannel.transferTo(long position,
long count,
WritableByteChannel target)
Transfers bytes from this channel's file to the given writable byte channel. |
|
SeekableByteChannel |
SeekableByteChannel.truncate(long size)
Truncates the entity, to which this channel is connected, to the given size. |
|
abstract AsynchronousFileChannel |
AsynchronousFileChannel.truncate(long size)
Truncates this channel's file to the given size. |
|
abstract FileChannel |
FileChannel.truncate(long size)
Truncates this channel's file to the given size. |
|
FileLock |
AsynchronousFileChannel.tryLock()
Attempts to acquire an exclusive lock on this channel's file. |
|
FileLock |
FileChannel.tryLock()
Attempts to acquire an exclusive lock on this channel's file. |
|
abstract FileLock |
AsynchronousFileChannel.tryLock(long position,
long size,
boolean shared)
Attempts to acquire a lock on the given region of this channel's file. |
|
abstract FileLock |
FileChannel.tryLock(long position,
long size,
boolean shared)
Attempts to acquire a lock on the given region of this channel's file. |
|
static AsynchronousChannelGroup |
AsynchronousChannelGroup.withCachedThreadPool(ExecutorService executor,
int initialSize)
Creates an asynchronous channel group with a given thread pool that creates new threads as needed. |
|
static AsynchronousChannelGroup |
AsynchronousChannelGroup.withFixedThreadPool(int nThreads,
ThreadFactory threadFactory)
Creates an asynchronous channel group with a fixed thread pool. |
|
static AsynchronousChannelGroup |
AsynchronousChannelGroup.withThreadPool(ExecutorService executor)
Creates an asynchronous channel group with a given thread pool. |
|
int |
SeekableByteChannel.write(ByteBuffer src)
Writes a sequence of bytes to this channel from the given buffer. |
|
int |
WritableByteChannel.write(ByteBuffer src)
Writes a sequence of bytes to this channel from the given buffer. |
|
abstract int |
SocketChannel.write(ByteBuffer src)
|
|
abstract int |
FileChannel.write(ByteBuffer src)
Writes a sequence of bytes to this channel from the given buffer. |
|
abstract int |
DatagramChannel.write(ByteBuffer src)
Writes a datagram to this channel. |
|
long |
SocketChannel.write(ByteBuffer[] srcs)
|
|
long |
GatheringByteChannel.write(ByteBuffer[] srcs)
Writes a sequence of bytes to this channel from the given buffers. |
|
long |
FileChannel.write(ByteBuffer[] srcs)
Writes a sequence of bytes to this channel from the given buffers. |
|
long |
DatagramChannel.write(ByteBuffer[] srcs)
Writes a datagram to this channel. |
|
abstract long |
SocketChannel.write(ByteBuffer[] srcs,
int offset,
int length)
|
|
long |
GatheringByteChannel.write(ByteBuffer[] srcs,
int offset,
int length)
Writes a sequence of bytes to this channel from a subsequence of the given buffers. |
|
abstract long |
FileChannel.write(ByteBuffer[] srcs,
int offset,
int length)
Writes a sequence of bytes to this channel from a subsequence of the given buffers. |
|
abstract long |
DatagramChannel.write(ByteBuffer[] srcs,
int offset,
int length)
Writes a datagram to this channel. |
|
abstract int |
FileChannel.write(ByteBuffer src,
long position)
Writes a sequence of bytes to this channel from the given buffer, starting at the given file position. |
| Uses of IOException in java.nio.channels.spi |
|---|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractSelector.close()
Closes this selector. |
void |
AbstractInterruptibleChannel.close()
Closes this channel. |
SelectableChannel |
AbstractSelectableChannel.configureBlocking(boolean block)
Adjusts this channel's blocking mode. |
protected void |
AbstractSelectableChannel.implCloseChannel()
Closes this channel. |
protected abstract void |
AbstractInterruptibleChannel.implCloseChannel()
Closes this channel. |
protected abstract void |
AbstractSelectableChannel.implCloseSelectableChannel()
Closes this selectable channel. |
protected abstract void |
AbstractSelector.implCloseSelector()
Closes this selector. |
protected abstract void |
AbstractSelectableChannel.implConfigureBlocking(boolean block)
Adjusts this channel's blocking mode. |
Channel |
SelectorProvider.inheritedChannel()
Returns the channel inherited from the entity that created this Java virtual machine. |
abstract AsynchronousChannelGroup |
AsynchronousChannelProvider.openAsynchronousChannelGroup(ExecutorService executor,
int initialSize)
Constructs a new asynchronous channel group with the given thread pool. |
abstract AsynchronousChannelGroup |
AsynchronousChannelProvider.openAsynchronousChannelGroup(int nThreads,
ThreadFactory threadFactory)
Constructs a new asynchronous channel group with a fixed thread pool. |
abstract AsynchronousDatagramChannel |
AsynchronousChannelProvider.openAsynchronousDatagramChannel(ProtocolFamily family,
AsynchronousChannelGroup group)
Opens an asynchronous datagram channel. |
abstract AsynchronousServerSocketChannel |
AsynchronousChannelProvider.openAsynchronousServerSocketChannel(AsynchronousChannelGroup group)
Opens an asynchronous server-socket channel. |
abstract AsynchronousSocketChannel |
AsynchronousChannelProvider.openAsynchronousSocketChannel(AsynchronousChannelGroup group)
Opens an asynchronous socket channel. |
abstract DatagramChannel |
SelectorProvider.openDatagramChannel()
Opens a datagram channel. |
abstract DatagramChannel |
SelectorProvider.openDatagramChannel(ProtocolFamily family)
Opens a datagram channel. |
abstract Pipe |
SelectorProvider.openPipe()
Opens a pipe. |
abstract AbstractSelector |
SelectorProvider.openSelector()
Opens a selector. |
abstract ServerSocketChannel |
SelectorProvider.openServerSocketChannel()
Opens a server-socket channel. |
abstract SocketChannel |
SelectorProvider.openSocketChannel()
Opens a socket channel. |
| Uses of IOException in java.nio.charset |
|---|
| Modifier and Type | Class and Description |
|---|---|
class |
CharacterCodingException
Checked exception thrown when a character encoding or decoding error occurs. |
class |
MalformedInputException
Checked exception thrown when an input byte sequence is not legal for given charset, or an input character sequence is not a legal sixteen-bit Unicode sequence. |
class |
UnmappableCharacterException
Checked exception thrown when an input character (or byte) sequence is valid but cannot be mapped to an output byte (or character) sequence. |
| Uses of IOException in java.nio.file |
|---|
| Modifier and Type | Class and Description |
|---|---|
class |
AccessDeniedException
Checked exception thrown when a file system operation is denied, typically due to a file permission or other access check. |
class |
AtomicMoveNotSupportedException
Checked exception thrown when a file cannot be moved as an atomic file system operation. |
class |
DirectoryNotEmptyException
Checked exception thrown when a file system operation fails because a directory is not empty. |
class |
FileAlreadyExistsException
Checked exception thrown when an attempt is made to create a file or directory and a file of that name already exists. |
class |
FileSystemException
Thrown when a file system operation fails on one or two files. |
class |
NoSuchFileException
Checked exception thrown when an attempt is made to access a file that does not exist. |
class |
NotDirectoryException
Checked exception thrown when a file system operation, intended for a directory, fails because the file is not a directory. |
class |
NotLinkException
Checked exception thrown when a file system operation fails because a file is not a symbolic link. |
| Modifier and Type | Method and Description |
|---|---|
FileVisitResult |
SimpleFileVisitor.postVisitDirectory(T dir,
IOException exc)
Invoked for a directory after entries in the directory, and all of their descendants, have been visited. |
FileVisitResult |
FileVisitor.postVisitDirectory(T dir,
IOException exc)
Invoked for a directory after entries in the directory, and all of their descendants, have been visited. |
FileVisitResult |
SimpleFileVisitor.preVisitDirectoryFailed(T dir,
IOException exc)
Invoked for a directory that could not be opened. |
FileVisitResult |
FileVisitor.preVisitDirectoryFailed(T dir,
IOException exc)
Invoked for a directory that could not be opened. |
FileVisitResult |
SimpleFileVisitor.visitFileFailed(T file,
IOException exc)
Invoked for a file when its basic file attributes could not be read. |
FileVisitResult |
FileVisitor.visitFileFailed(T file,
IOException exc)
Invoked for a file when its basic file attributes could not be read. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DirectoryStream.Filter.accept(T entry)
Decides if the given directory entry should be accepted or filtered. |
abstract void |
Path.checkAccess(AccessMode... modes)
Checks the existence and optionally the accessibility of the file located by this path. |
abstract void |
WatchService.close()
Closes this watch service. |
abstract void |
FileSystem.close()
Closes this file system. |
abstract Path |
Path.copyTo(Path target,
CopyOption... options)
Copy the file located by this path to a target location. |
static void |
Files.createDirectories(Path dir,
FileAttribute<?>... attrs)
Creates a directory by creating all nonexistent parent directories first. |
abstract Path |
Path.createDirectory(FileAttribute<?>... attrs)
Creates a new directory. |
abstract Path |
Path.createFile(FileAttribute<?>... attrs)
Creates a new and empty file, failing if the file already exists. |
abstract Path |
Path.createLink(Path existing)
Creates a new link (directory entry) for an existing file (optional operation). |
abstract Path |
Path.createSymbolicLink(Path target,
FileAttribute<?>... attrs)
Creates a symbolic link to a target (optional operation). |
abstract void |
Path.delete()
Deletes the file located by this path. |
abstract void |
SecureDirectoryStream.deleteDirectory(T path)
Deletes a directory. |
abstract void |
SecureDirectoryStream.deleteFile(T path)
Deletes a file. |
abstract void |
Path.deleteIfExists()
Deletes the file located by this path, if it exists. |
abstract Object |
FileStore.getAttribute(String attribute)
Reads the value of a file store attribute. |
Object |
FileRef.getAttribute(String attribute,
LinkOption... options)
Reads the value of a file attribute. |
abstract FileStore |
Path.getFileStore()
Returns the FileStore representing the file store where an
existing file, located by this path, is stored. |
abstract boolean |
Path.isHidden()
Tells whether or not the file located by this object is considered hidden. |
abstract boolean |
Path.isSameFile(Path other)
Tests if the file referenced by this object is the same file referenced by another object. |
abstract void |
SecureDirectoryStream.move(T srcpath,
SecureDirectoryStream<T> targetdir,
T targetpath)
Move a file from this directory to another directory. |
abstract Path |
Path.moveTo(Path target,
CopyOption... options)
Move or rename the file located by this path to a target location. |
abstract SeekableByteChannel |
Path.newByteChannel(OpenOption... options)
Opens or creates a file, returning a seekable byte channel to access the file. |
abstract SeekableByteChannel |
Path.newByteChannel(Set<? extends OpenOption> options,
FileAttribute<?>... attrs)
Opens or creates a file, returning a seekable byte channel to access the file. |
abstract SeekableByteChannel |
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. |
abstract DirectoryStream<Path> |
Path.newDirectoryStream()
Opens the directory referenced by this object, returning a DirectoryStream to iterate over all entries in the directory. |
abstract DirectoryStream<Path> |
Path.newDirectoryStream(DirectoryStream.Filter<? super Path> filter)
Opens the directory referenced by this object, returning a DirectoryStream to iterate over the entries in the directory. |
abstract DirectoryStream<Path> |
Path.newDirectoryStream(String glob)
Opens the directory referenced by this object, returning a DirectoryStream to iterate over the entries in the directory. |
abstract SecureDirectoryStream<T> |
SecureDirectoryStream.newDirectoryStream(T path,
LinkOption... options)
Opens the directory identified by the given path, returning a SecureDirectoryStream to iterate over the entries in the directory. |
static FileSystem |
FileSystems.newFileSystem(FileRef file,
Map<String,?> env,
ClassLoader loader)
Constructs a new FileSystem to access the contents of a file as a
file system. |
static FileSystem |
FileSystems.newFileSystem(URI uri,
Map<String,?> env)
Constructs a new file system that is identified by a URI |
static FileSystem |
FileSystems.newFileSystem(URI uri,
Map<String,?> env,
ClassLoader loader)
Constructs a new file system that is identified by a URI |
InputStream |
FileRef.newInputStream(OpenOption... options)
Opens the file referenced by this object, returning an input stream to read from the file. |
abstract OutputStream |
Path.newOutputStream(OpenOption... options)
Opens or creates the file located by this object for writing, returning an output stream to write bytes to the file. |
OutputStream |
FileRef.newOutputStream(OpenOption... options)
Opens or creates the file located by this object for writing, returning an output stream to write bytes to the file. |
abstract WatchService |
FileSystem.newWatchService()
Constructs a new WatchService (optional operation). |
static String |
Files.probeContentType(FileRef file)
Probes the content type of a file. |
Map<String,?> |
FileRef.readAttributes(String attributes,
LinkOption... options)
Reads a set of file attributes as a bulk operation. |
abstract Path |
Path.readSymbolicLink()
Reads the target of a symbolic link (optional operation). |
WatchKey |
Watchable.register(WatchService watcher,
WatchEvent.Kind<?>... events)
Registers an object with a watch service. |
abstract WatchKey |
Path.register(WatchService watcher,
WatchEvent.Kind<?>... events)
Registers the file located by this path with a watch service. |
WatchKey |
Watchable.register(WatchService watcher,
WatchEvent.Kind<?>[] events,
WatchEvent.Modifier... modifiers)
Registers an object with a watch service. |
abstract WatchKey |
Path.register(WatchService watcher,
WatchEvent.Kind<?>[] events,
WatchEvent.Modifier... modifiers)
Registers the file located by this path with a watch service. |
void |
FileRef.setAttribute(String attribute,
Object value,
LinkOption... options)
Sets the value of a file attribute. |
abstract Path |
Path.toRealPath(boolean resolveLinks)
Returns the real path of an existing file. |
| Uses of IOException in java.nio.file.attribute |
|---|
| Modifier and Type | Class and Description |
|---|---|
class |
UserPrincipalNotFoundException
Checked exception thrown when a lookup of UserPrincipal fails because
the principal does not exist. |
| Modifier and Type | Method and Description |
|---|---|
void |
UserDefinedFileAttributeView.delete(String name)
Deletes a user-defined attribute. |
List<AclEntry> |
AclFileAttributeView.getAcl()
Reads the access control list. |
static List<AclEntry> |
Attributes.getAcl(FileRef file)
Reads a file's Access Control List (ACL). |
UserPrincipal |
FileOwnerAttributeView.getOwner()
Read the file owner. |
static UserPrincipal |
Attributes.getOwner(FileRef file)
Returns the owner of a file. |
List<String> |
UserDefinedFileAttributeView.list()
Returns a list containing the names of the user-defined attributes. |
abstract GroupPrincipal |
UserPrincipalLookupService.lookupPrincipalByGroupName(String group)
Lookup a group principal by group name. |
abstract UserPrincipal |
UserPrincipalLookupService.lookupPrincipalByName(String name)
Lookup a user principal by name. |
int |
UserDefinedFileAttributeView.read(String name,
ByteBuffer dst)
Read the value of a user-defined attribute into a buffer. |
PosixFileAttributes |
PosixFileAttributeView.readAttributes()
|
FileStoreSpaceAttributes |
FileStoreSpaceAttributeView.readAttributes()
Reads the disk space attributes as a bulk operation. |
DosFileAttributes |
DosFileAttributeView.readAttributes()
|
BasicFileAttributes |
BasicFileAttributeView.readAttributes()
Reads the basic file attributes as a bulk operation. |
static BasicFileAttributes |
Attributes.readBasicFileAttributes(FileRef file,
LinkOption... options)
Reads the basic file attributes of a file. |
static DosFileAttributes |
Attributes.readDosFileAttributes(FileRef file,
LinkOption... options)
Reads the DOS file attributes of a file. |
static FileStoreSpaceAttributes |
Attributes.readFileStoreSpaceAttributes(FileStore store)
Reads the space attributes of a file store. |
static PosixFileAttributes |
Attributes.readPosixFileAttributes(FileRef file,
LinkOption... options)
Reads the POSIX file attributes of a file. |
static void |
Attributes.setAcl(FileRef file,
List<AclEntry> acl)
Updates a file's Access Control List (ACL). |
void |
AclFileAttributeView.setAcl(List<AclEntry> acl)
Updates (replace) the access control list. |
void |
DosFileAttributeView.setArchive(boolean value)
Updates the value of the archive attribute. |
void |
PosixFileAttributeView.setGroup(GroupPrincipal group)
Updates the file group-owner. |
void |
DosFileAttributeView.setHidden(boolean value)
Updates the value of the hidden attribute. |
static void |
Attributes.setLastAccessTime(FileRef file,
FileTime lastAccessTime)
Updates a file's last access time attribute. |
static void |
Attributes.setLastModifiedTime(FileRef file,
FileTime lastModifiedTime)
Updates a file's last modified time attribute. |
static void |
Attributes.setOwner(FileRef file,
UserPrincipal owner)
Updates the file owner. |
void |
FileOwnerAttributeView.setOwner(UserPrincipal owner)
Updates the file owner. |
void |
PosixFileAttributeView.setPermissions(Set<PosixFilePermission> perms)
Updates the file permissions. |
static void |
Attributes.setPosixFilePermissions(FileRef file,
Set<PosixFilePermission> perms)
Sets a file's POSIX permissions. |
void |
DosFileAttributeView.setReadOnly(boolean value)
Updates the value of the read-only attribute. |
void |
DosFileAttributeView.setSystem(boolean value)
Updates the value of the system attribute. |
void |
BasicFileAttributeView.setTimes(FileTime lastModifiedTime,
FileTime lastAccessTime,
FileTime createTime)
Updates any or all of the file's last modified time, last access time, and create time attributes. |
int |
UserDefinedFileAttributeView.size(String name)
Returns the size of the value of a user-defined attribute. |
int |
UserDefinedFileAttributeView.write(String name,
ByteBuffer src)
Writes the value of a user-defined attribute from a buffer. |
| Uses of IOException in java.nio.file.spi |
|---|
| Modifier and Type | Method and Description |
|---|---|
AsynchronousFileChannel |
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. |
FileChannel |
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. |
FileSystem |
FileSystemProvider.newFileSystem(FileRef file,
Map<String,?> env)
Constructs a new FileSystem to access the contents of a file as a
file system. |
abstract FileSystem |
FileSystemProvider.newFileSystem(URI uri,
Map<String,?> env)
Constructs a new FileSystem object identified by a URI. |
abstract String |
FileTypeDetector.probeContentType(FileRef file)
Probes the given file to guess its content type. |
| Uses of IOException in java.rmi |
|---|
| Modifier and Type | Class and Description |
|---|---|
class |
AccessException
An AccessException is thrown by certain methods of the
java.rmi.Naming class (specifically bind,
rebind, and unbind) and methods of the
java.rmi.activation.ActivationSystem interface to
indicate that the caller does not have permission to perform the action
requested by the method call. |
class |
ConnectException
A ConnectException is thrown if a connection is refused
to the remote host for a remote method call. |
class |
ConnectIOException
A ConnectIOException is thrown if an
IOException occurs while making a connection
to the remote host for a remote method call. |
class |
MarshalException
A MarshalException is thrown if a
java.io.IOException occurs while marshalling the remote call
header, arguments or return value for a remote method call. |
class |
NoSuchObjectException
A NoSuchObjectException is thrown if an attempt is made to
invoke a method on an object that no longer exists in the remote virtual
machine. |
class |
RemoteException
A RemoteException is the common superclass for a number of
communication-related exceptions that may occur during the execution of a
remote method call. |
class |
ServerError
A ServerError is thrown as a result of a remote method
invocation when an Error is thrown while processing
the invocation on the server, either while unmarshalling the arguments,
executing the remote method itself, or marshalling the return value. |
class |
ServerException
A ServerException is thrown as a result of a remote method
invocation when a RemoteException is thrown while processing
the invocation on the server, either while unmarshalling the arguments or
executing the remote method itself. |
class |
ServerRuntimeException
Deprecated. no replacement |
class |
StubNotFoundException
A StubNotFoundException is thrown if a valid stub class
could not be found for a remote object when it is exported. |
class |
UnexpectedException
An UnexpectedException is thrown if the client of a
remote method call receives, as a result of the call, a checked
exception that is not among the checked exception types declared in the
throws clause of the method in the remote interface. |
class |
UnmarshalException
An UnmarshalException can be thrown while unmarshalling the
parameters or results of a remote method call if any of the following
conditions occur:
if an exception occurs while unmarshalling the call header
if the protocol for the return value is invalid
if a java.io.IOException occurs unmarshalling
parameters (on the server side) or the return value (on the client side). |
| Modifier and Type | Method and Description |
|---|---|
T |
MarshalledObject.get()
Returns a new copy of the contained marshalledobject. |
| Constructor and Description |
|---|
MarshalledObject(T obj)
Creates a new MarshalledObject that contains the
serialized representation of the current state of the supplied object. |
| Uses of IOException in java.rmi.activation |
|---|
| Modifier and Type | Class and Description |
|---|---|
class |
ActivateFailedException
This exception is thrown by the RMI runtime when activation fails during a remote call to an activatable object. |
| Uses of IOException in java.rmi.server |
|---|
| Modifier and Type | Class and Description |
|---|---|
class |
ExportException
An ExportException is a RemoteException
thrown if an attempt to export a remote object fails. |
class |
SkeletonMismatchException
Deprecated. no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater. |
class |
SkeletonNotFoundException
Deprecated. no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater. |
class |
SocketSecurityException
An obsolete subclass of ExportException. |
| Modifier and Type | Method and Description |
|---|---|
abstract ServerSocket |
RMISocketFactory.createServerSocket(int port)
Create a server socket on the specified port (port 0 indicates an anonymous port). |
ServerSocket |
RMIServerSocketFactory.createServerSocket(int port)
Create a server socket on the specified port (port 0 indicates an anonymous port). |
abstract Socket |
RMISocketFactory.createSocket(String host,
int port)
Creates a client socket connected to the specified host and port. |
Socket |
RMIClientSocketFactory.createSocket(String host,
int port)
Create a client socket connected to the specified host and port. |
void |
RemoteCall.done()
Deprecated. no replacement |
ObjectInput |
RemoteCall.getInputStream()
Deprecated. no replacement |
ObjectOutput |
RemoteCall.getOutputStream()
Deprecated. no replacement |
ObjectOutput |
RemoteCall.getResultStream(boolean success)
Deprecated. no replacement |
static UID |
UID.read(DataInput in)
Constructs and returns a new UID instance by
unmarshalling a binary representation from an
DataInput instance. |
static ObjID |
ObjID.read(ObjectInput in)
Constructs and returns a new ObjID instance by
unmarshalling a binary representation from an
ObjectInput instance. |
void |
RemoteCall.releaseInputStream()
Deprecated. no replacement |
void |
RemoteCall.releaseOutputStream()
Deprecated. no replacement |
static void |
RMISocketFactory.setSocketFactory(RMISocketFactory fac)
Set the global socket factory from which RMI gets sockets (if the remote object is not associated with a specific client and/or server socket factory). |
void |
UID.write(DataOutput out)
Marshals a binary representation of this UID to
a DataOutput instance. |
void |
ObjID.write(ObjectOutput out)
Marshals a binary representation of this ObjID to
an ObjectOutput instance. |
| Uses of IOException in java.security |
|---|
| Modifier and Type | Method and Description |
|---|---|
void |
Certificate.decode(InputStream stream)
Deprecated. Decodes a certificate from an input stream. |
void |
Certificate.encode(OutputStream stream)
Deprecated. Encodes the certificate to an output stream in a format that can be decoded by the decode method. |
protected abstract byte[] |
AlgorithmParametersSpi.engineGetEncoded()
Returns the parameters in their primary encoding format. |
protected abstract byte[] |
AlgorithmParametersSpi.engineGetEncoded(String format)
Returns the parameters encoded in the specified format. |
protected abstract void |
AlgorithmParametersSpi.engineInit(byte[] params)
Imports the specified parameters and decodes them according to the primary decoding format for parameters. |
protected abstract void |
AlgorithmParametersSpi.engineInit(byte[] params,
String format)
Imports the parameters from params and
decodes them according to the specified decoding format. |
abstract void |
KeyStoreSpi.engineLoad(InputStream stream,
char[] password)
Loads the keystore from the given input stream. |
void |
KeyStoreSpi.engineLoad(KeyStore.LoadStoreParameter param)
Loads the keystore using the given KeyStore.LoadStoreParameter. |
void |
KeyStoreSpi.engineStore(KeyStore.LoadStoreParameter param)
Stores this keystore using the given KeyStore.LoadStoreParmeter. |
abstract void |
KeyStoreSpi.engineStore(OutputStream stream,
char[] password)
Stores this keystore to the given output stream, and protects its integrity with the given password. |
byte[] |
AlgorithmParameters.getEncoded()
Returns the parameters in their primary encoding format. |
byte[] |
AlgorithmParameters.getEncoded(String format)
Returns the parameters encoded in the specified scheme. |
Object |
SignedObject.getObject()
Retrieves the encapsulated object. |
void |
AlgorithmParameters.init(byte[] params)
Imports the specified parameters and decodes them according to the primary decoding format for parameters. |
void |
AlgorithmParameters.init(byte[] params,
String format)
Imports the parameters from params and decodes them
according to the specified decoding scheme. |
void |
Provider.load(InputStream inStream)
Reads a property list (key and element pairs) from the input stream. |
void |
KeyStore.load(InputStream stream,
char[] password)
Loads this KeyStore from the given input stream. |
void |
KeyStore.load(KeyStore.LoadStoreParameter param)
Loads this keystore using the given LoadStoreParameter. |
int |
DigestInputStream.read()
Reads a byte, and updates the message digest (if the digest function is on). |
int |
DigestInputStream.read(byte[] b,
int off,
int len)
Reads into a byte array, and updates the message digest (if the digest function is on). |
void |
KeyStore.store(KeyStore.LoadStoreParameter param)
Stores this keystore using the given LoadStoreParameter. |
void |
KeyStore.store(OutputStream stream,
char[] password)
Stores this keystore to the given output stream, and protects its integrity with the given password. |
void |
DigestOutputStream.write(byte[] b,
int off,
int len)
Updates the message digest (if the digest function is on) using the specified subarray, and in any case writes the subarray to the output stream. |
void |
DigestOutputStream.write(int b)
Updates the message digest (if the digest function is on) using the specified byte, and in any case writes the byte to the output stream. |
| Constructor and Description |
|---|
SignedObject(Serializable object,
PrivateKey signingKey,
Signature signingEngine)
Constructs a SignedObject from any Serializable object. |
| Uses of IOException in java.security.cert |
|---|
| Modifier and Type | Method and Description |
|---|---|
void |
X509CRLSelector.addIssuerName(byte[] name)
Adds a name to the issuerNames criterion. |
void |
X509CRLSel |