public void load(InputStream in,String baseURI,RDFFormat dataFormat,RDFHandler rdfHandler) throws IOException, RDFParseException, RDFHandlerException {
  if (!in.markSupported()) {
    in=new BufferedInputStream(in,1024);
  }
  if (ZipUtil.isZipStream(in)) {
    loadZip(in,baseURI,dataFormat,rdfHandler);
  }
 else   if (GZipUtil.isGZipStream(in)) {
    load(new GZIPInputStream(in),baseURI,dataFormat,rdfHandler);
  }
 else {
    loadInputStreamOrReader(in,baseURI,dataFormat,rdfHandler);
  }
}

public void load ( InputStream in , String baseURI , RDFFormat dataFormat , RDFHandler rdfHandler ) throws IOException , RDFParseException , RDFHandlerException { if ( ! in . markSupported ( ) ) { in = new BufferedInputStream ( in , 1024 ) ; } if ( ZipUtil . isZipStream ( in ) ) { loadZip ( in , baseURI , dataFormat , rdfHandler ) ; } else if ( GZipUtil . isGZipStream ( in ) ) { load ( new GZIPInputStream ( in ) , baseURI , dataFormat , rdfHandler ) ; } else { loadInputStreamOrReader ( in , baseURI , dataFormat , rdfHandler ) ; } }
parses rdf data from an inputstream to the rdfhandler .
