/** * Throws an exception if the syntax is not RDF/XML. Set baseURI to the * empty string. Subclasses are encouraged to overwrite this. */ public void readFrom(InputStream in, Syntax syntax, String baseURI) throws IOException, ModelRuntimeException { assertModel(); if (syntax == Syntax.RdfXml) { readFrom(in); } else { throw new ModelRuntimeException("Unsupported syntax: " + syntax); } }
/** * Throws an exception if the syntax is not RDF/XML. Subclasses are * encouraged to overwrite this. */ @Override public void readFrom(InputStream in, Syntax syntax) throws IOException, ModelRuntimeException { assertModel(); if(syntax == Syntax.RdfXml) { readFrom(in); } else { throw new ModelRuntimeException("Unsupported syntax: " + syntax); } }
/** * Throws an exception if the syntax is not RDF/XML. Subclasses are * encouraged to overwrite this. */ public void readFrom(InputStream in, Syntax syntax) throws IOException, ModelRuntimeException { assertModel(); if (syntax == Syntax.RdfXml) { readFrom(in); } else { throw new ModelRuntimeException("Unsupported syntax: " + syntax); } }
/** * Throws an exception if the syntax is not RDF/XML. Sets base URI to the * empty string (default). Subclasses are encouraged to overwrite this. * * @throws IOException * @throws ModelRuntimeException */ public void readFrom(Reader reader, Syntax syntax, String baseURI) throws ModelRuntimeException, IOException { assertModel(); if (syntax == Syntax.RdfXml) { readFrom(reader); } else { throw new ModelRuntimeException("Unsupported syntax: " + syntax); } }
/** * Note: <em>Subclasses are encouraged to overwrite this.</em> * * Throws an exception if the syntax is not RDF/XML. Sets baseURI to the * empty string. */ @Override public void readFrom(InputStream in, Syntax syntax, String baseURI) throws IOException, ModelRuntimeException { assertModel(); if(syntax == Syntax.RdfXml) { readFrom(in); } else { throw new ModelRuntimeException("Unsupported syntax: " + syntax); } }
/** * Note: <em>Subclasses are encouraged to overwrite this.</em> * * Throws an exception if the syntax is not RDF/XML. Sets base URI to the * empty string (default). * * @throws IOException from reader * @throws ModelRuntimeException from model */ @Override public void readFrom(Reader reader, Syntax syntax, String baseURI) throws ModelRuntimeException, IOException { assertModel(); if(syntax == Syntax.RdfXml) { readFrom(reader); } else { throw new ModelRuntimeException("Unsupported syntax: " + syntax); } }