我正在查看这里的Java文档:http://docs.oracle.com/javase/7/docs/api/java/io/DataInputStream.html
我想知道它的方法是做什么的,所以我查看了, , 等方法的描述。
这些描述都大致如下:
请参阅DataInput的readBoolean方法的一般契约。
在扩展说明中。
这些描述都大致如下:
请参阅DataInput的readBoolean方法的一般契约。
在扩展说明中。
public final boolean readBoolean()
throws IOException
See the general contract of the readBoolean method of DataInput.
Bytes for this operation are read from the contained input stream.
Specified by:
readBoolean in interface DataInput
Returns:
the boolean value read.
Throws:
EOFException - if this input stream has reached the end.
IOException - the stream has been closed and the contained input stream does not support reading after close, or another I/O error occurs.
See Also:
FilterInputStream.in
这些方法的总体合约在哪里可以找到?什么是一个方法的总体合约?