@Override public XMLEventReader createXMLEventReader(Source source) throws XMLStreamException {
  try {
    if (source instanceof StreamSource) {
      StreamSource ss=(StreamSource)source;
      return new WbXmlEventReader(ss.getInputStream(),(WbXmlDefinition)props.get(DEFINITION_PROPERTY));
    }
 else {
      throw new XMLStreamException("WBXML only support StreamSource with InputStream!");
    }
  }
 catch (  IOException e) {
    throw new XMLStreamException(e);
  }
}

@ Override public XMLEventReader createXMLEventReader ( Source source ) throws XMLStreamException { try { if ( source instanceof StreamSource ) { StreamSource ss = ( StreamSource ) source ; return new WbXmlEventReader ( ss . getInputStream ( ) , ( WbXmlDefinition ) props . get ( DEFINITION_PROPERTY ) ) ; } else { throw new XMLStreamException ( "WBXML only support StreamSource with InputStream!" ) ; } } catch ( IOException e ) { throw new XMLStreamException ( e ) ; } }
create a new xmleventreader from a jaxp source . support of this method is optional . only streamsource with inputstream is supported .
