Initial EventEncoder.java implementation.