In your journey of developing cross-platform apps, undoubtedly, React Native is the way to go! According to recent market research,
React Native has a huge community of developers and… Read More
Java and OpenGL are two powerful technologies that can be used together to create stunning graphics and visual effects. In this article, we will explore 10 reasons why Java and OpenGL are a… Read More
Definition of Java NIO FileChannel
Java NIO (New Input/Output) FileChannel is a class in the Java programming language that provides a channel-based approach to perform I/O operations on a f… Read More
Hello guys, if you have worked with Java NIO API then there is a good chance that you may be familiar with ByteBuffer, one of the important class which is used to read and write data from ch… Read More
What is Java NIO Selector?
Java NIO Selector is mainly used for Non-blocking IO operation as a multiplexor, for reading ready data and Buffer Oriented approach, for shifting forth and back i… Read More
Introduction to Java NIO Scatter/Gather
The Java NIO which includes the built-in functionality for scatter and gather concepts that defined separately are employed while reading from and wri… Read More
Definition of Java NIO
Java NIO is the buffer class used in the nio API. The charset API has been defined. The charset nio API is defined in the java charset package, and the selector channe… Read More
In this post, I will be sharing how to convert OutputStream to byte array in Java with examples.1. Convert OutputStream to byte array using toByteArray() method2. Convert OutputStream to Byt… Read More
ByteBuffer is one of the important classes of Java NIO API. It was introduced in java.nio package on JDK 1.4, it not only allows you to operate on heap byte arrays but also with direct memor… Read More
In this tutorial we will learn how to convert long to byte array java . We will write see multiple example for long to byte array java conversion . We will convert long to byte array us… Read More
In our previous post, Guide to Installing Kafka, we had discussed what Kafka is and how to
install it. In this post, we will be taking an in-depth look at Kafka Producer and Consumer in… Read More
In the past, I have talked about RandomAccessFile and how it can be used for doing faster IO in Java, and in this Java NIO tutorial, we are going to see how to use read/write data from using… Read More
ByteBuffer is one of the important classes of Java NIO API. It was introduced in java.nio package on JDK 1.4, it not only allows you to operate on heap byte arrays but also with direct memor… Read More
In this post, we will see how to convert OutputStream to Byte array in Java.
Convert OutputStream to Byte array in Java
Here are steps to convert OutputStream to Byte array in java.
Create i… Read More
In this post, I am going to explain multiple approaches how to convert an integer to the byte array. Be cautious about the byte orders while converting the integer to byte array. Ther… Read More
Here we would like to show you how to send a WAP Push message through SMPP using Java. This short tutorial will use the library and example source code from OpenSMPP. You can download the fi… Read More
'java.nio.channels.AsynchronousFileChannel' provides 'read' method to read the contents of a file asynchronously. ‘read’ method is available in tw… Read More