This is the code for this blog post.
Without it, it doesn't make much sense.
Compile and run the code:
git clone https://github.com/binwiederhier/cipherinputstream-aes-gcm
cd cipherinputstream-aes-gcm
./gradlew run (on Linux)
gradle run (on Windows)