title: Processing a String with ANTLR4
body: <p>I'm trying to convert my grammar from v3 to v4 and having some trouble finding all the right pieces.</p>
  
  <p>In v3 to process a String, I used:</p>
  
  <pre><code>public static DataExtractor create(String dataspec) {
      CharStream stream = new ANTLRStringStream(dataspec);
      DataSpecificationLexer lexer = new DataSpecificationLexer(stream);
      CommonTokenStream tokens = new CommonTokenStream(lexer);
      DataSpecificationParser parser = new DataSpecificationParser(tokens);
  
      return parser.dataspec();
  }
  </code></pre>
  
  <p>How do I change this to work in v4?</p>