Java ObjectInputStream readByte() MethodThe readByte() method of Java ObjectInputStream class is used to read an 8-bit byte. SyntaxParameterNo parameter is passed. ReturnsThe 8-bit byte read. ThrowsEOFException - If the end of file is reached. IOException - If other I/O error has occurred. Example 1Test it NowOutput: 65 0 0 68 69 Example 2Test it NowOutput: 106 97 118 97 84 112 111 105 110 116
Next TopicJava ObjectInputStream
|