Skip to content

Tag Archives: Java-IO package

The readInt() method of DataInputStream class in Java is used to read four input bytes and returns a integer value. This method reads the next… Read More
The readLong() method of DataInputStream class in Java is used to read eight input bytes and returns a long value. This method reads the next… Read More
The readShort() method of DataInputStream class in Java is used to read two input bytes and returns a short value. This method reads the next… Read More
The write(int) method of BufferedOutputStream class in Java is used to write the specified byte to the buffered output stream. The specified byte is passed… Read More
The mark() method of PushbackInputStream class in Java is used to mark the current position in the input stream. This method does nothing for PushbackInputStream. … Read More
The markSupported() method of PushbackInputStream class in Java is used to verify the supportability of mark() and reset() methods. It always returns false as this… Read More
The available() method of PushbackInputStream class in Java is used to find the number of bytes that can be read from the input stream without… Read More
The reset() method of PushbackInputStream class in Java is used to reset the steam to the position where mark() method was called. This method does… Read More
The close() method of PushbackInputStream class in Java is used to closes the input stream and it releases resources of system that are associated with… Read More
The skip(long n) method of PushbackInputStream class in Java is used to skip over and discards n bytes of data from this input stream. This… Read More
The readUnsignedByte() method of DataInputStream class in Java is used to read byte and returns as an integer. The integer is an unsigned value in… Read More
The readFully() method of DataInputStream class in Java is of two types: readFully(byte[] b) method of DataInputStream class in Java is used to read bytes… Read More
The defaultReadObject() method of the ObjectInputStream class in Java is used to read the non-static and non-transient fields of the current class from this stream.… Read More
The enableResolveObject() method of the ObjectInputStream class in Java is used to enables the stream to do replacement of objects read from the stream. When… Read More
The readUnsignedShort() method of DataInputStream class in Java is used to read two input bytes and returns an integer value. This method reads the next… Read More

Start Your Coding Journey Now!