Java-API-Package:java.io
| ylbtech-Java-API-Package:java.io |
| 1.返回顶部 |
Package java.io
See: Description
Interface Summary Interface Description Closeable ACloseableis a source or destination of data that can be closed.DataInput TheDataInputinterface provides for reading bytes from a binary stream and reconstructing from them data in any of the Java primitive types.DataOutput TheDataOutputinterface 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 Class Description BufferedInputStream ABufferedInputStreamadds functionality to another input stream-namely, the ability to buffer the input and to support themarkandresetmethods.BufferedOutputStream The class implements a buffered output stream.BufferedReader Reads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines.BufferedWriter Writes text to a character-output stream, buffering characters so as to provide for the efficient writing of single characters, arrays, and strings.ByteArrayInputStream AByteArrayInputStreamcontains 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.Console Methods to access the character-based console device, if any, associated with the current Java virtual machine.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 AFileInputStreamobtains input bytes from a file in a file system.FileOutputStream A file output stream is an output stream for writing data to aFileor to aFileDescriptor.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 AFilterInputStreamcontains 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.charsetLineNumberInputStream 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.charsetPipedInputStream 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 APrintStreamadds functionality to another output stream, namely the ability to print representations of various data values conveniently.PrintWriter Prints formatted representations of objects to a text-output stream.PushbackInputStream APushbackInputStreamadds 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 ASequenceInputStreamrepresents the logical concatenation of other input streams.SerializablePermission This class is for Serializable permissions.StreamTokenizer TheStreamTokenizerclass 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 Exception Description 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.Error Summary Error Description IOError Thrown when a serious I/O error has occurred.
Package java.io Description
Package Specification
Related Documentation
For overviews, tutorials, examples, guides, and tool documentation, please see:
- Since:
- JDK1.0
| 2.返回顶部 |
| 3.返回顶部 |
| 4.返回顶部 |
| 5.返回顶部 |
| 6.返回顶部 |
![]() |
作者:ylbtech 出处:http://ylbtech.cnblogs.com/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 |
Java-API-Package:java.io的更多相关文章
- Java总结篇:Java多线程
Java总结篇系列:Java多线程 多线程作为Java中很重要的一个知识点,在此还是有必要总结一下的. 一.线程的生命周期及五种基本状态 关于Java中线程的生命周期,首先看一下下面这张较为经典的图: ...
- 转 Java虚拟机5:Java垃圾回收(GC)机制详解
转 Java虚拟机5:Java垃圾回收(GC)机制详解 Java虚拟机5:Java垃圾回收(GC)机制详解 哪些内存需要回收? 哪些内存需要回收是垃圾回收机制第一个要考虑的问题,所谓“要回收的垃圾”无 ...
- Java并发编程:Java的四种线程池的使用,以及自定义线程工厂
目录 引言 四种线程池 newCachedThreadPool:可缓存的线程池 newFixedThreadPool:定长线程池 newSingleThreadExecutor:单线程线程池 newS ...
- Java虚拟机2:Java内存区域
1.几个计算机的概念 为以后写文章考虑,也为巩固自己的知识和一些基本概念,这里要理清楚几个计算机中的概念. 1.计算机存储单位 从小到大依次为位Bit.字节Byte.千字节KB.兆M.千兆GB.TB, ...
- Java调用本地接口:java.lang.UnsatisfiedLinkError
Java调用本地接口:java.lang.UnsatisfiedLinkError 我的问题不在这篇文章描述中, 而是因为jni原来是c实现, 现在切换到cpp了, 需要在对应的cpp文件中加入ext ...
- Java基础16:Java多线程基础最全总结
Java基础16:Java多线程基础最全总结 Java中的线程 Java之父对线程的定义是: 线程是一个独立执行的调用序列,同一个进程的线程在同一时刻共享一些系统资源(比如文件句柄等)也能访问同一个进 ...
- Java基础教程:Java内存区域
Java基础教程:Java内存区域 运行时数据区域 Java虚拟机在执行Java程序的过程种会把它所管理的内存划分为若干个不同的数据区域.这些区域都有各自的用途,以及创建和销毁的时间,有的区域随着虚拟 ...
- jsp(java server pages):java服务器端的页面
jsp(java server pages):java服务器端的页面 JSP的执行过程1.浏览器输入一个jsp页面2.tomcat会接受*.jsp请求,将该请求发送到org.apache.jasper ...
- JAVA基础语法:java编程规范和常用数据类型(转载)
JAVA基础语法:java编程规范和常用数据类型 摘要 本文主要介绍了最基本的java程序规则,和常用数据类型,其中侧重说了数组的一些操作. 面向java编程 java是纯面向对象语言,所有的程序都要 ...
- Java nio 笔记:系统IO、缓冲区、流IO、socket通道
一.Java IO 和 系统 IO 不匹配 在大多数情况下,Java 应用程序并非真的受着 I/O 的束缚.操作系统并非不能快速传送数据,让 Java 有事可做:相反,是 JVM 自身在 I/O 方面 ...
随机推荐
- How to choose from Viewstate, SessionState, Cookies and Cache
https://devshop.wordpress.com/2008/04/10/how-to-choose-from-viewstate-sessionstate-cookies-and-cache ...
- linux基础(9)-获取时间
获取今天日期 date +%Y-%m-%d date +%y-%m-%d date +%F 获取昨天日期 date -d yesterday +%F date -d -1day +%F ...
- 使用log4j2打印Log,log4j不能打印日志信息,log4j2不能打印日志信息,log4j和logj2,idea控制台信息乱码(文末)
说来惭愧,今天就写了个"hello world",了解了一下log4j的日志. 本来是想在控制台打印个log信息,也是遇到坎坷重重,开始也没去了解log4j就来使用,log4j配置 ...
- ZigzagConvert
public class ZigzagConvert { public static String convert(String s, int nRows) { int len = s.length( ...
- 配置网卡为vlan trunk
http://www.microhowto.info/tutorials/802.1q.html Configure an Ethernet interface as a VLAN trunk hos ...
- nova shelve
当一个虚机不需要使用的时候,可以将其 shelve 起来.该操作会创建该虚机的一个快照并传到 Glance 中,然后在 Hypervisor 上将该虚机删除,从而释放其资源. 其主要过程为: dest ...
- 实时监测contenteditable(可编辑文档)的内容发生改变
如果是文本框用onchange,oninput,onpropertychange都可以实时监控值发生变化,但是div设置了属性contenteditable(可编辑文档)就不管用了. 最简单的方法用o ...
- WPF的Presenter(ContentPresenter)
WPF的Presenter(ContentPresenter) 2010-12-20 14:34 by Clingingboy, 10619 阅读, 3 评论, 收藏, 编辑 这是2年前写了一篇文章 ...
- NSLog Release
//将下面的代码插入到pch文件中即可 #ifndef __OPTIMIZE__ # define NSLog(…) NSLog(__VA_ARGS__) #else # define NSLog(… ...
- ural 2015 Zhenya moves from the dormitory(模拟)
2015. Zhenya moves from the dormitory Time limit: 1.0 secondMemory limit: 64 MB After moving from hi ...
