code: public static Document createDocument(InputStream input) throws IOException
      {
          Check.notNull(input);
  
          try
          {
              return getDocumentFactory().parse(input);
          }
          catch (final SAXException exception)
          {
              throw new IOException(exception);
          }
      }
docs: Create a document from an input stream.
  
  @param input The input stream (must not be <code>null</code>).
  @return The created document.
  @throws IOException If malformed document.
  @throws LionEngineException If invalid argument or unable to create document.