protected String dataString(int state) {
        ByteBuffer meta = data(state);
        if(meta!=null){
            // Remove trailing '\0' if it exists. This is usually the
            // case for automata built with text format (makefsa -t)
            String data = decode(meta);
            if (data.endsWith("\0")) {
                data = data.substring(0, data.length()-1);
            }
            return data;
        }
        return null;
    }
Retrieves data for the given state using the underlying fsa data buffer.
@param state The fsa state to retrieve data from.
@return A string representation of the data for the given state.
fsa/src/main/java/com/yahoo/fsa/FSA.java