-
ByteBuffer
Use ByteBuffer for non-byte Java types buffering
In this example we will demonstrate how to perform non-byte Java types buffering using a ByteBuffer in Java. In particular…
Read More » -
ByteBuffer
Use ByteBuffer to store Strings
This is an example of how to store Strings using a ByteBuffer in Java. In order to use a ByteBuffer…
Read More » -
ByteBuffer
Get byte from ByteBuffer
With this example we are going to demonstrate how to read bytes from a ByteBuffer. Additionally we will show you…
Read More » -
ByteBuffer
Put byte into ByteBuffer
This is an example of how to put bytes into a ByteBuffer in Java. Additionally we will demonstrate several of…
Read More » -
ByteBuffer
Create direct and non-direct ByteBuffer
In this example we are going to demonstrate several methods of creating a direct (memory-mapped) and non-direct ByteBuffer in Java.…
Read More » -
ByteBuffer
Convert between ByteBuffer and byte array
With this example we are going to demonstrate how to convert between ByteBuffers and byte arrays. In short, to make…
Read More » -
rmi
Export Object over RMI example
This is an example of how to Export Object over RMI. The Java Remote Method Invocation (RMI) system allows an…
Read More » -
security
Encrypt/Decrypt a file using DES
In this example we shall show you how to encrypt/decrypt a file using DES. To encrypt and decrypt a file…
Read More » -
security
Calculate the CRC Sum of a file
With this example we are going to demonstrate how to calculate the CRC Sum of a file. The Cyclic Redundancy…
Read More » -
security
Encrypt/Decrypt with salt
This is an example of how to encrypt and decrypt using a salt. The salt is random data very often…
Read More »