Skip to content

Instantly share code, notes, and snippets.

View MichaelBeeu's full-sized avatar

Michael Beeuwsaert MichaelBeeu

View GitHub Profile
@MichaelBeeu
MichaelBeeu / EndianDataInputStream.java
Created September 12, 2013 23:19
Simple class to add endian support to DataInputStream.
package github.MichaelBeeu.util;
import java.io.DataInput;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
/**