API java : java.io


Package java.io

Provides for system input and output through data streams, serialization and the file system.

See:
          Description

Interface Summary
Closeable A Closeable is a source or destination of data that can be closed.
DataInput The DataInput interface provides for reading bytes from a binary stream and reconstructing from them data in any of the Java primitive types.
DataOutput The DataOutput interface provides for converting data from any of the Java primitive types to a series of bytes and writing these bytes to a binary stream.
Externalizable Only the identity of the class of an Externalizable instance is written in the serialization stream and it is the responsibility of the class to save and restore the contents of its instances.
FileFilter A filter for abstract pathnames.
FilenameFilter Instances of classes that implement this interface are used to filter filenames.
Flushable A Flushable is a destination of data that can be flushed.
ObjectInput ObjectInput extends the DataInput interface to include the reading of objects.
ObjectInputValidation Callback interface to allow validation of objects within a graph.
ObjectOutput ObjectOutput extends the DataOutput interface to include writing of objects.
ObjectStreamConstants Constants written into the Object Serialization Stream.
Serializable Serializability of a class is enabled by the class implementing the java.io.Serializable interface.
 

Class Summary
BufferedInputStream A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the input and to support the mark and reset methods.
BufferedOutputStream The class implements a buffered output stream.
BufferedReader Read text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines.
BufferedWriter Write text to a character-output stream, buffering characters so as to provide for the efficient writing of single characters, arrays, and strings.
ByteArrayInputStream A ByteArrayInputStream contains an internal buffer that contains bytes that may be read from the stream.
ByteArrayOutputStream This class implements an output stream in which the data is written into a byte array.
CharArrayReader This class implements a character buffer that can be used as a character-input stream.
CharArrayWriter This class implements a character buffer that can be used as an Writer.
DataInputStream A data input stream lets an application read primitive Java data types from an underlying input stream in a machine-independent way.
DataOutputStream A data output stream lets an application write primitive Java data types to an output stream in a portable way.
File An abstract representation of file and directory pathnames.
FileDescriptor Instances of the file descriptor class serve as an opaque handle to the underlying machine-specific structure representing an open file, an open socket, or another source or sink of bytes.
FileInputStream A FileInputStream obtains input bytes from a file in a file system.
FileOutputStream A file output stream is an output stream for writing data to a File or to a FileDescriptor.
FilePermission This class represents access to a file or directory.
FileReader Convenience class for reading character files.
FileWriter Convenience class for writing character files.
FilterInputStream A FilterInputStream contains some other input stream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.
FilterOutputStream This class is the superclass of all classes that filter output streams.
FilterReader Abstract class for reading filtered character streams.
FilterWriter Abstract class for writing filtered character streams.
InputStream This abstract class is the superclass of all classes representing an input stream of bytes.
InputStreamReader An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes them into characters using a specified charset.
LineNumberInputStream Deprecated. This class incorrectly assumes that bytes adequately represent characters.
LineNumberReader A buffered character-input stream that keeps track of line numbers.
ObjectInputStream An ObjectInputStream deserializes primitive data and objects previously written using an ObjectOutputStream.
ObjectInputStream.GetField Provide access to the persistent fields read from the input stream.
ObjectOutputStream An ObjectOutputStream writes primitive data types and graphs of Java objects to an OutputStream.
ObjectOutputStream.PutField Provide programmatic access to the persistent fields to be written to ObjectOutput.
ObjectStreamClass Serialization's descriptor for classes.
ObjectStreamField A description of a Serializable field from a Serializable class.
OutputStream This abstract class is the superclass of all classes representing an output stream of bytes.
OutputStreamWriter An OutputStreamWriter is a bridge from character streams to byte streams: Characters written to it are encoded into bytes using a specified charset.
PipedInputStream A piped input stream should be connected to a piped output stream; the piped input stream then provides whatever data bytes are written to the piped output stream.
PipedOutputStream A piped output stream can be connected to a piped input stream to create a communications pipe.
PipedReader Piped character-input streams.
PipedWriter Piped character-output streams.
PrintStream A PrintStream adds functionality to another output stream, namely the ability to print representations of various data values conveniently.
PrintWriter Print formatted representations of objects to a text-output stream.
PushbackInputStream A PushbackInputStream adds functionality to another input stream, namely the ability to "push back" or "unread" one byte.
PushbackReader A character-stream reader that allows characters to be pushed back into the stream.
RandomAccessFile Instances of this class support both reading and writing to a random access file.
Reader Abstract class for reading character streams.
SequenceInputStream A SequenceInputStream represents the logical concatenation of other input streams.
SerializablePermission This class is for Serializable permissions.
StreamTokenizer The StreamTokenizer class takes an input stream and parses it into "tokens", allowing the tokens to be read one at a time.
StringBufferInputStream Deprecated. This class does not properly convert characters into bytes.
StringReader A character stream whose source is a string.
StringWriter A character stream that collects its output in a string buffer, which can then be used to construct a string.
Writer Abstract class for writing to character streams.
 

Exception Summary
CharConversionException Base class for character conversion exceptions.
EOFException Signals that an end of file or end of stream has been reached unexpectedly during input.
FileNotFoundException Signals that an attempt to open the file denoted by a specified pathname has failed.
InterruptedIOException Signals that an I/O operation has been interrupted.
InvalidClassException Thrown when the Serialization runtime detects one of the following problems with a Class.
InvalidObjectException Indicates that one or more deserialized objects failed validation tests.
IOException Signals that an I/O exception of some sort has occurred.
NotActiveException Thrown when serialization or deserialization is not active.
NotSerializableException Thrown when an instance is required to have a Serializable interface.
ObjectStreamException Superclass of all exceptions specific to Object Stream classes.
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.
StreamCorruptedException Thrown when control information that was read from an object stream violates internal consistency checks.
SyncFailedException Signals that a sync operation has failed.
UnsupportedEncodingException The Character Encoding is not supported.
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.
WriteAbortedException Signals that one of the ObjectStreamExceptions was thrown during a write operation.
 

Package java.io Description

Provides for system input and output through data streams, serialization and the file system. Unless otherwise noted, passing a null argument to a constructor or method in any class or interface in this package will cause a NullPointerException to be thrown.

Package Specification

Related Documentation

For overviews, tutorials, examples, guides, and tool documentation, please see:

Since:
JDK1.0

Ces informations proviennent du site de http://java.sun.com

Remarques

Contenu

Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :

Quels sont les motivations de cette démarche?

Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.

Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.

Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.

Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.

Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.

Réseaux sociaux

Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.

 

Nuage de mots clés

6 mots clés dont 0 définis manuellement (plus d'information...).

Avertissement

Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.

Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.

 

Astuce pour imprimer les couleurs des cellules de tableaux : http://www.gaudry.be/ast-rf-450.html
Aucun commentaire pour cette page

© Ce document issu de l′infobrol est enregistré sous le certificat Cyber PrInterDeposit Digital Numbertection. Enregistrement IDDN n° 5329-644
Document créé le 15/07/06 01:28, dernière modification le Vendredi 17 Juin 2011, 12:12
Source du document imprimé : http://www.gaudry.be/java-api-rf-java/io/package-summary.html Document affiché 1 fois ce mois de Juin.
St.Gaudry©07.01.02
Outils (masquer)
||
Recherche (afficher)
Recherche :

Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
15832 documents
452 astuces.
549 niouzes.
3099 definitions.
447 membres.
8115 messages.

Document genere en :
0,59 seconde

Mises à jour :
Mises à jour du site
Citation (masquer)
La connerie, c'est la décontraction de l'intelligence!

Serge Gainsbourg
 
l'infobrol
Nous sommes le Vendredi 01 Juin 2012, 17:15, toutes les heures sont au format GMT+1.00 Heure, heure d'été (+1)