Friday, January 24, 2014
Play WAV files with Java
The following simple application demonstrates how to play back a WAV audio file with Java APIs.
The key step is to specify the correct parameters and create an AudioFormat object.
Wednesday, January 15, 2014
Playing with Big Integers using Java BigInteger
The BigInteger class in java.math package allows to perform arithmetic operations on large numbers which do not fit into the Java primitive data types. The BigInteger class is particularly useful in cryptography operations where large prime numbers play a pivotal role.
The following snippet, which calculates the smallest factor of an integer (not in the most efficient way) gives a simple demonstration of fundamentals of using BitInteger instances in a program.
A key point to remember is the immutable nature of BitInteger instances.
A key point to remember is the immutable nature of BitInteger instances.
Monday, January 13, 2014
Inter Process Communication: Windows NamedPipes & Java Applications
CodeProject
A Named Pipe is a mechanism for communication between processes. One process has to create the Named Pipe (termed as pipe server) and one or more processes can connect to this Named Pipe (pipe clients) using the unique name given to it, when it was created.
Subscribe to:
Posts (Atom)