Java ObjectInputStream readStreamHeader() MethodThe readStreamHeader() method of ObjectInputStream is used to allow subclasses to read and verify their respective stream headers. It reads and verifies the magic number and version number. SyntaxParameterNA ReturnsNA ThrowsIOException - if there are I/O errors while reading from the underlying InputStream StreamCorruptedException - if control information in the stream is inconsistent. Example 1Output: welcome to javaTpoint Example 2Output: 2.828125 0.0 2.84375 0.0 2.859375 0.0 3.1015625
Next TopicJava ObjectInputStream
|