@Override public synchronized void parse(InputStream in,String baseURI) throws IOException, RDFParseException, RDFHandlerException {
  if (in == null) {
    throw new IllegalArgumentException("Input stream cannot be 'null'");
  }
  if (baseURI == null) {
    throw new IllegalArgumentException("Base URI cannot be 'null'");
  }
  InputSource inputSource=new InputSource(new BOMInputStream(in,false));
  inputSource.setSystemId(baseURI);
  parse(inputSource);
}

@ Override public synchronized void parse ( InputStream in , String baseURI ) throws IOException , RDFParseException , RDFHandlerException { if ( in == null ) { throw new IllegalArgumentException ( "Input stream cannot be 'null'" ) ; } if ( baseURI == null ) { throw new IllegalArgumentException ( "Base URI cannot be 'null'" ) ; } InputSource inputSource = new InputSource ( new BOMInputStream ( in , false ) ) ; inputSource . setSystemId ( baseURI ) ; parse ( inputSource ) ; }
parses the data from the supplied inputstream , using the supplied baseuri to resolve any relative uri references .
