Skip to content

Tag Archives: Java-NIO package

The isLegalReplacement() method is a built-in method of the java.nio.charset.CharsetEncoder gives us an indication on whether or not the given byte array is a legal… Read More
The isSupported() method is a built-in method of the java.nio.charset checks if a given charset is supported or not.  Syntax:   public final boolean isSupported() Parameters:… Read More
The asReadOnlyBuffer() method of java.nio.IntBuffer Class is used to create a new, read-only int buffer with this buffer’s content. The new buffer is a replica… Read More
The equals() method of java.nio.ShortBuffer Class is used to check whether or not the given buffer is equal to another object. Two short buffers are… Read More
The compareTo() method of java.nio.IntBuffer class is used to compare one buffer to another. Two int buffers are compared by comparing their sequences of remaining… Read More
wrap(double[] array) The wrap() method of java.nio.DoubleBuffer Class is used to wraps a double array into a buffer. The new buffer will be backed by… Read More
The arrayOffset() method of java.nio.DoubleBuffer class is used to return the offset within the buffer’s backing array of the first element of the buffer. It… Read More
The hasArray() method of java.nio.DoubleBuffer class is used to ensure whether or not the given buffer is backed by an accessible float array. It returns… Read More
The arrayOffset() method of java.nio.ByteBuffer class is used to return the offset within the given buffer’s backing array of the first element of the buffer.… Read More
The order() method of java.nio.ShortBuffer is used to retrieve the buffer’s byte order. The byte order of a short buffer created by allocation or by… Read More
The asShortBuffer() method of java.nio.ByteBuffer class is used to create a view of this byte buffer as a short buffer.The content of the new buffer… Read More
The equals() method of java.nio.ByteBuffer class is used to check whether or not the given buffer is equal to another object. Two byte buffers are… Read More
put(double f) The put(double f) method of java.nio.DoubleBuffer Class is used to write the given double into the newly created double buffer at the current… Read More
The equals() method of java.nio.CharBuffer Class is used to check whether or not the given buffer is equal to another object. Two char buffers are… Read More
The duplicate() method of java.nio.DoubleBuffer Class is used to Create a new float buffer that shares the given buffer’s content. The content of the new… Read More