Home » Java ObjectInputStream skipBytes() Method with Examples

Java ObjectInputStream skipBytes() Method with Examples

by Online Tutorials Library

Java Objectinputstream skipBytes() Method

The skipBytes() method of ObjectInputStream class is used to skip the bytes by the numbers passed as the parameter.

Syntax

Parameter

len as the number of bytes to be skipped

Returns

The actual number of bytes skipped.

Throws

IOException

Example 1

Output:

Tpoint TutorAspire provide  

Example 2

Output:

ome to j  

You may also like