-
FileChannel

Create memory mapped file
This is an example of how to create a memory mapped file in Java. Doing reads and writes of data…
Read More » -
FileLock

Create shared file lock on file
In this example we shall show you how to create a shared file lock in Java. Creating shared file locks…
Read More » -
ByteBuffer

Write/Append to File with ByteBuffer
With this is example we are going to demonstrate how to write/append data to a file in Java using a…
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

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

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 » -
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

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 » -
security

SHA-1 hash function example
With this example we are going to demonstrate how to make a SHA-1 hash function example. The Secure Hash Algorithm…
Read More » -
security

Simple symmetric key encrypt/decrypt
In this example we shall show you how to encrypt and decrypt using a symmetric key. In the case of…
Read More »
