title: Deserialize POJOs from multiple YAML documents in a single file in Jackson
body: <p>I have a YAML file that looks something like this:</p>
  
  <pre><code>---
  name: Sam
  tags:
      -   Dev
      -   Java
  ----
  name: Bob
  tags:
      -   PM
  </code></pre>
  
  <p>I'd like to use Jackson to deserialize all documents from the file, but I don't see a way to use a normal <code>ObjectMapper</code> to do it. <del>If I use the <code>YAMLFactory</code> to create a parser for my file I can step through all tokens, so the parser is obviously capable of dealing with multiple documents - but how do I tie them together?</del> Looks like the parser created by my YAMLFactory only parses a single document out of the file.</p>
  
  <p>I've also tried creating a YAMLParser directly and using <code>ObjectMapper#readValue(JsonParser, Class)</code>, but the ObjectMapper exhausts the entire YAMLParser to deserialize a single instance.</p>