Uses of Class java.io.IOException

Uses in package java.util.jar

Classes derived from java.io.IOException

class
This exception is thrown to indicate an problem with a jar file.

Constructors which throw type java.io.IOException

Creates a new JarFile.
JarFile.JarFile(File file, boolean verify)
Creates a new JarFile.
JarFile.JarFile(File file, boolean verify, int mode)
Creates a new JarFile with the indicated mode.
Creates a new JarFile.
JarFile.JarFile(String fileName, boolean verify)
Creates a new JarFile.
Creates a new JarInputStream and tries to read the manifest.
Creates a new JarInputStream and tries to read the manifest.
Creates a new JarOutputStream without a manifest entry.
Creates a new JarOutputStream with a manifest entry.
Creates a Manifest from the supplied input stream.

Methods which throw type java.io.IOException

Attributes
Returns a copy of the Attributes set for this entry.
InputStream
Returns an input stream for the given entry.
Manifest
Returns the manifest for this JarFile or null when the JarFile does not contain a manifest file.
ZipEntry
Returns the next entry or null when there are no more entries.
JarEntry
Returns the next jar entry or null when there are no more entries.
void
Prepares the JarOutputStream for writing the next entry.
int
JarInputStream.read(byte[] buf, int off, int len)
XXX
void
Read and merge a Manifest from the designated input stream.
void
Writes the contents of this Manifest to the designated output stream.

Uses in package javax.net

Methods which throw type java.io.IOException

ServerSocket
Create an unbound server socket.
ServerSocket
Create a server socket bound to the given port.
ServerSocket
ServerSocketFactory.createServerSocket(int port, int backlog)
ServerSocket
ServerSocketFactory.createServerSocket(int port, int backlog, InetAddress bindAddress)
Socket
Returns an unbound client socket.
Socket
Creates a socket connected to a given host on a given port.
Socket
SocketFactory.createSocket(String host, int port, InetAddress localHost, int localPort)
Creates a socket connected to a given host on a given port, connecting locally to the interface with the given address and port.
Socket
Creates a socket connected to a given host on a given port.
Socket
SocketFactory.createSocket(InetAddress hast, int port, InetAddress localHost, int localPort)
Creates a socket connected to a given host on a given port, connecting locally to the interface with the given address and port.

Uses in package javax.swing.text.rtf

Methods which throw type java.io.IOException

void
RTFEditorKit.read(InputStream stream, Document doc, int pos)
Reads RTF data from stream into doc at the specified position pos.
void
RTFEditorKit.read(Reader reader, Document doc, int pos)
Reads RTF data from reader into doc at the specified position pos.

Uses in package javax.sound.midi.spi

Methods which throw type java.io.IOException

MidiFileFormat
Read a MidiFileFormat from the given stream.
MidiFileFormat
Read a MidiFileFormat from the given stream.
MidiFileFormat
Read a MidiFileFormat from the given stream.
Sequence
Read a Sequence from the given stream.
Sequence
Read a Sequence from the given stream.
Sequence
Read a Sequence from the given stream.
Soundbank
Get a Soundbank from the given File.
Soundbank
Get a Soundbank from the given InputStream.
Soundbank
Get a Soundbank from the given URL.
int
MidiFileWriter.write(Sequence in, int fileType, File out)
Write a sequence to a file using the specified MIDI file type.
int
MidiFileWriter.write(Sequence in, int fileType, OutputStream out)
Write a sequence to a stream using the specified MIDI file type.

Uses in package java.util.zip

Classes derived from java.io.IOException

class
Thrown during the creation or input of a zip file.

Constructors which throw type java.io.IOException

Creates a GZIPInputStream with the default buffer size.
Creates a GZIPInputStream with the specified buffer size.
Creates a GZIPOutputStream with the default buffer size
Creates a GZIPOutputStream with the specified buffer size
Opens a Zip file reading the given File.
ZipFile.ZipFile(File file, int mode)
Opens a Zip file reading the given File in the given mode.
Opens a Zip file with the given name for reading.

Methods which throw type java.io.IOException

int
Returns 0 once the end of the stream (EOF) has been reached.
int
void
Calls finish() and closes the stream.
void
Closes the input stream.
void
Writes remaining compressed output data to the output stream and closes it.
void
Closes the input stream
void
Closes the ZipFile.
void
Closes the zip file.
void
Closes the current zip entry and moves to the next one.
void
Closes the current entry.
void
Deflates everything in the def's input buffers.
void
Fills the buffer with more data to decompress.
void
Calls the close() method when this ZipFile has not yet been explicitly closed.
void
Finishes the stream by calling finish() on the deflater.
void
Finishes the stream by calling finish() on the deflater.
void
Finishes the stream.
void
Flushes the stream by calling flush() on the deflater and then on the underlying stream.
InputStream
Creates an input stream reading the given zip entry as uncompressed data.
ZipEntry
Open the next entry from the zip archive, and return its description.
void
Starts a new Zip entry.
int
Reads one byte, updates the checksum and returns the read byte (or -1 when the end of file was reached).
int
Reads one byte of decompressed data.
int
Reads a byte from the current zip entry.
int
CheckedInputStream.read(byte[] buf, int off, int len)
Reads at most len bytes in the supplied buffer and updates the checksum with it.
int
GZIPInputStream.read(byte[] buf, int offset, int len)
Reads in GZIP-compressed data and stores it in uncompressed form into an array of bytes.
int
InflaterInputStream.read(byte[] b, int off, int len)
Decompresses data into the byte array
int
ZipInputStream.read(byte[] b, int off, int len)
Reads a block of bytes from the current zip entry.
void
long
Skips n bytes by reading them in a temporary buffer and updating the the checksum with that buffer.
long
Skip specified number of bytes of uncompressed data
void
CheckedOutputStream.write(byte[] buf, int off, int len)
Writes the byte array to the OutputStream and updates the Checksum.
void
DeflaterOutputStream.write(byte[] buf, int off, int len)
Writes a len bytes from an array to the compressed stream.
void
GZIPOutputStream.write(byte[] buf, int off, int len)
Writes a len bytes from an array to the compressed stream.
void
ZipOutputStream.write(byte[] b, int off, int len)
Writes the given buffer to the current entry.
void
Writes one byte to the OutputStream and updates the Checksum.
void
Writes a single byte to the compressed output stream.

Uses in package javax.imageio.spi

Methods which throw type java.io.IOException

boolean
ImageInputStream
ImageInputStream
ImageInputStreamSpi.createInputStreamInstance(Object input, boolean useCache, File cacheDir)
ImageOutputStream
ImageOutputStream
ImageOutputStreamSpi.createOutputStreamInstance(Object output, boolean useCache, File cacheDir)
ImageReader
ImageReader
ImageWriter
ImageWriter

Uses in package javax.swing.filechooser

Methods which throw type java.io.IOException

File
Creates a new folder with a unique name in the specified directory and returns a File object representing the new directory.

Uses in package javax.naming.ldap

Methods which throw type java.io.IOException

void
Close the connection.
SSLSession
Negotiate the TLS session using the default SSL socket factory.
SSLSession
Negotiate the TLS session using the supplied SSL socket factory.

Uses in package java.awt.peer

Methods which throw type java.io.IOException

void
void
void
void
DesktopPeer.mail(URI mailtoURL)
void
void

Uses in package javax.crypto

Constructors which throw type java.io.IOException

Create a new EncryptedPrivateKeyInfo from an encoded representation, parsing the ASN.1 sequence.
Create a new sealed object from a Serializable object and a cipher.

Methods which throw type java.io.IOException

int
Returns the number of bytes available without blocking.
void
Close this input stream.
void
Close this output stream, and the sink output stream.
void
Flush any pending output.
byte[]
Object
Unseal and deserialize this sealed object with the specified key.
Object
SealedObject.getObject(Key key, String provider)
Unseal and deserialize this sealed object with the specified key, using a cipher from the named provider.
Object
Unseal and deserialize this sealed object with a specified (already initialized) cipher.
int
Read a single byte from this input stream; returns -1 on the end-of-file.
int
CipherInputStream.read(byte[] buf)
Read bytes into an array, returning the number of bytes read or -1 on the end-of-file.
int
CipherInputStream.read(byte[] buf, int off, int len)
Read bytes into an array, returning the number of bytes read or -1 on the end-of-file.
void
Reset to the mark.
long
CipherInputStream.skip(long bytes)
Skip a number of bytes.
void
Write a byte array to the output stream.
void
CipherOutputStream.write(byte[] buf, int off, int len)
Write a portion of a byte array to the output stream.
void
Write a single byte to the output stream.

Uses in package java.security

Constructors which throw type java.io.IOException

SignedObject.SignedObject(Serializable object, PrivateKey signingKey, Signature signingEngine)
Constructs a new instance of SignedObject from a Serializable object.

Methods which throw type java.io.IOException

void
This method reads an encoded certificate from an InputStream.
void
This method writes the certificate to an OutputStream in a format that can be understood by the decode method.
byte[]
Returns the parameters in the default encoding format.
byte[]
Returns the parameters in the specified encoding format.
void
Initializes the engine with the specified parameters stored in the byte array and decodes them according to the ASN.1 specification.
void
AlgorithmParametersSpi.engineInit(byte[] params, String format)
Initializes the engine with the specified parameters stored in the byte array and decodes them according to the specified decoding specification.
void
KeyStoreSpi.engineLoad(InputStream stream, char[] password)
Loads the keystore from the specified input stream and it uses the specified password to check for integrity if supplied.
void
KeyStoreSpi.engineStore(OutputStream stream, char[] password)
Stores the keystore in the specified output stream and it uses the specified key it keep it secure.
byte[]
Returns the parameters in the default encoding format.
byte[]
Returns the parameters in the specified encoding format.
Object
Returns the encapsulated object.
void
AlgorithmParameters.init(byte[] params)
Initializes the engine with the specified parameters stored in the byte array and decodes them according to the ASN.1 specification.
void
AlgorithmParameters.init(byte[] params, String format)
Initializes the engine with the specified parameters stored in the byte array and decodes them according to the specified decoding specification.
void
KeyStore.load(InputStream stream, char[] password)
Loads the keystore from the specified input stream and it uses the specified password to check for integrity if supplied.
int
Reads a byte from the input stream and updates the digest.
int
DigestInputStream.read(byte[] b, int off, int len)
Reads bytes from the input stream and updates the digest.
void
KeyStore.store(OutputStream stream, char[] password)
Stores the keystore in the specified output stream and it uses the specified key it keep it secure.
void
DigestOutputStream.write(byte[] b, int off, int len)
Updates the hash if the on flag is true and then writes the bytes to the underlying output stream.
void
Updates the hash if the on flag is true and then writes a byte to the underlying output stream.

Uses in package javax.sound.sampled

Methods which throw type java.io.IOException

int
Return the number of bytes available to be read from the underlying stream.
void
Close the stream.
AudioFileFormat
Return the file format of a given File.
AudioFileFormat
Return the file format of a given input stream.
AudioFileFormat
Return the file format of a given URL.
AudioInputStream
Return an audio input stream for the file.
AudioInputStream
Return an audio input stream given an input stream.
AudioInputStream
Return an audio input stream for the given URL.
void
Open a clip, given an audio input stream.
int
Read a single byte from the underlying stream.
int
AudioInputStream.read(byte[] buf)
int
AudioInputStream.read(byte[] buf, int offset, int length)
void
long
int
Write an audio input stream to the given file, using the specified audio file format.
int
Write an audio input stream to the given output stream, using the specified audio file format.

Uses in package javax.security.auth.callback

Methods which throw type java.io.IOException

void
Retrieve or display the information requested in the provided Callbacks.

The handle() method implementation checks the instance(s) of the Callback object(s) passed in to retrieve or display the requested information.

Uses in package javax.swing.text.html.parser

Methods which throw type java.io.IOException

DTD
Get this DTD by name.
void
Parse the HTML text, calling various methods in response to the occurence of the corresponding HTML constructions.
void
DocumentParser.parse(Reader reader, HTMLEditorKit.ParserCallback aCallback, boolean ignoreCharSet)
Parses the HTML document, calling methods of the provided callback.
void
ParserDelegator.parse(Reader reader, HTMLEditorKit.ParserCallback a_callback, boolean ignoreCharSet)
Parses the HTML document, calling methods of the provided callback.
String
Parses DTD markup declaration.
boolean
Parse DTD document declarations.
void
Reads DTD from an archived format.

Uses in package javax.imageio.metadata

Classes derived from java.io.IOException

class

Uses in package java.nio.charset

Classes derived from java.io.IOException

class
class
class

Uses in package org.xml.sax

Methods which throw type java.io.IOException

void
Parser.parse(String systemId)
Parse an XML document from a system identifier (URI).
void
Parse an XML document from a system identifier (URI).
void
Parse an XML document.
void
Parse an XML document.
InputSource
Allow the application to resolve external entities.

Uses in package java.awt.datatransfer

Methods which throw type java.io.IOException

Object
Reader
Creates a Reader for a given Transferable.
Object
This method returns the data in the requested format.
Object
Returns the data in the specified DataFlavor.
void
De-serialize this class.
void
Serialize this class.

Uses in package java.nio.channels

Classes derived from java.io.IOException

class
class
class
class

Methods which throw type java.io.IOException

SocketChannel
Accepts a connection made to this channel's socket.
void
Closes this channel
void
Closes this channel
void
Closes the selector.
SelectableChannel
Adjusts this channel's blocking mode.
DatagramChannel
Connects this channel's socket.
boolean
Connects the channel's socket to the remote address.
DatagramChannel
Disonnects this channel's socket.
boolean
Finishes the process of connecting a socket channel.
void
FileChannel.force(boolean metaData)
msync with the disk
void
Closes the channel.
FileLock
Creates a file lock for the whole associated file.
FileLock
FileChannel.lock(long position, long size, boolean shared)
Creates a file lock for a region of the associated file.
MappedByteBuffer
FileChannel.map(FileChannel.MapMode mode, long position, long size)
Maps the file into the memory.
DatagramChannel
Opens a datagram channel.
Pipe
Opens a pipe.
Selector
Opens a selector.
ServerSocketChannel
Opens a server socket channel.
SocketChannel
Opens a socket channel.
SocketChannel
Opens a channel and connects it to a remote address.
long
Returns the current position on the file.
FileChannel
FileChannel.position(long newPosition)
Sets the position of the channel on the assoziated file.
int
Reads data from this channel.
int
Reads data from the channel.
int
Reads a sequence of bytes from this channel into the given buffer
int
Reads data from the channel.
int
FileChannel.read(ByteBuffer dst, long position)
Reads data from the channel.
long
Reads data from this channel.
long
Reads data from the channel.
long
Reads a sequence of bytes from this channel into the given buffers
long
Reads data from the channel.
long
DatagramChannel.read(ByteBuffer[] dsts, int offset, int length)
Reads data from this channel.
long
FileChannel.read(ByteBuffer[] dsts, int offset, int length)
Reads data from the channel.
long
ScatteringByteChannel.read(ByteBuffer[] srcs, int offset, int length)
Reads a sequence of bytes from this channel into a subsequence of the given buffers
long
SocketChannel.read(ByteBuffer[] dsts, int offset, int length)
Reads data from the channel.
SocketAddress
Receives a datagram via this channel.
void
Releases this lock.
int
Selects a set of keys whose corresponding channels are ready for I/O operations.
int
Selector.select(long timeout)
Selects a set of keys whose corresponding channels are ready for I/O operations.
int
Selects a set of keys whose corresponding channels are ready for I/O operations.
int
Sends a datagram via this channel.
long
Return the size of the file thus far
long
FileChannel.transferFrom(ReadableByteChannel src, long position, long count)
Transfers bytes from the given readable channel into this channel.
long
FileChannel.transferTo(long position, long count, WritableByteChannel target)
Transfers bytes from this channel's file to the given writable byte channel.
FileChannel
FileChannel.truncate(long size)
Truncates the channel's file at size.
FileLock
Tries to aqquire alock on the whole associated file.
FileLock
FileChannel.tryLock(long position, long size, boolean shared)
Tries to aqquire a lock on a region of the associated file.
int
Writes data to this channel.
int
Writes data to the channel.
int
Writes data to the channel.
int
Writes a sequence of bytes to this channel from the given buffer
int
FileChannel.write(ByteBuffer srcs, long position)
Writes data to the channel.
long
Writes data to this channel.
long
Writes data to the channel.
long
Writes a sequence of bytes to this channel from the given buffers
long
Writes data to the channel.
long
DatagramChannel.write(ByteBuffer[] srcs, int offset, int length)
Writes data to this channel.
long
FileChannel.write(ByteBuffer[] srcs, int offset, int length)
Writes data to the channel.
long
GatheringByteChannel.write(ByteBuffer[] srcs, int offset, int length)
Writes a sequence of bytes to this channel from a subsequence of the given buffers
long
SocketChannel.write(ByteBuffer[] srcs, int offset, int length)
Writes data to the channel.

Uses in package java.io

Classes derived from java.io.IOException

class
This exception is thrown to indicate that a problem occurred with an attempted character conversion.
class
This exception is thrown when the end of the file or stream was encountered unexpectedly.
class
This exception is thrown when an attempt is made to access a file that does not exist, or is inaccessible for some other reason (such as writing a read-only file).
class
This exception is thrown when a in process I/O operation is interrupted for some reason.
class
This exception is thrown when there is some sort of problem with a class during a serialization operation.
class
This exception is thrown when an object fails a validation test during serialization.
class
This exception is thrown when a problem occurs due to the fact that serialization is not active.
class
This exception is thrown when a class implements Serializable because of a superclass, but should not be serialized.
class
This exception is thrown when a problem occurs during serialization.
class
This exception is thrown when unexpected data appears in the input stream from which a serialized object is being read.
class
This exception is thrown when there is an error in the data that is read from a stream during de-serialization.
class
Thrown when a file synchronization fails.
class
This exception is thrown when the requested character encoding is not supported.
class
When reading a UTF string from an input stream, this exception is thrown to indicate that the data read is invalid.
class
This exception is thrown when another ObjectStreamException occurs during a serialization read or write.

Constructors which throw type java.io.IOException

This method initializes a new FileWriter object to write to the specified File object.
FileWriter.FileWriter(File file, boolean append)
This method initializes a new FileWriter object to write to the specified File object.
This method intializes a new FileWriter object to write to the specified named file.
FileWriter.FileWriter(String name, boolean append)
This method intializes a new FileWriter object to write to the specified named file.
Protected constructor that allows subclasses to override deserialization.
Creates a new ObjectInputStream that will do all of its reading from in.
Protected constructor that allows subclasses to override serialization.
Creates a new ObjectOutputStream that will do all of its writing onto out.
This constructor creates a new PipedInputStream and connects it to the passed in PipedOutputStream.
Create a new PipedOutputStream instance to write to the specified PipedInputStream.
This constructor creates a new PipedReader and connects it to the passed in PipedWriter.
Create a new PipedWriter instance to write to the specified PipedReader.

Methods which throw type java.io.IOException

void
An empty hook that allows subclasses to write extra information about classes to the stream.
void
Writer
Writer.append(char c)
Writer
Writer
Writer.append(CharSequence cs, int start, int end)
int