Java implementation for libChan spec