I am looking at java docs for DataInputStream here: http://docs.oracle.com/javase/7/docs/api/java/io/DataInputStream.html
I want to see what his methods do, so I look at the descriptions of readBoolean() , readByte() , readChar() , etc.
All descriptions are something like:
See the general contract for the readBoolean DataInput method.
And in an extended explanation.
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
Where can I “see” the general contracts of these methods and what is the general contract of the method?
source share