Update BinarySerializer.java