public int byteSize() throws IonException
    {
        // TODO this is horrible, users will end up encoding multiple times!
        ReverseBinaryEncoder encoder =
            new ReverseBinaryEncoder(REVERSE_BINARY_ENCODER_INITIAL_SIZE);
        encoder.serialize(this);
        return encoder.byteSize();
    }
public int byteSize ( ) throws IonException { ReverseBinaryEncoder encoder = new ReverseBinaryEncoder ( REVERSE_BINARY_ENCODER_INITIAL_SIZE ) ; encoder . serialize ( this ) ; return encoder . byteSize ( ) ; }
////////////////////////////////////////////////////////////////////////////