public interface ModelIO
| Modifier and Type | Method and Description |
|---|---|
void |
readFrom(InputStream in)
Read from InputStream assuming to read an RDF/XML stream.
|
void |
readFrom(InputStream reader,
Syntax syntax)
Reads assuming the given syntax.
|
void |
readFrom(InputStream in,
Syntax syntax,
String baseURI)
Reads RDF data from the given
InputStream in the given Syntax. |
void |
readFrom(Reader in)
Read from Reader assuming in UTF8 encoding.
|
void |
readFrom(Reader in,
Syntax syntax)
Reads assuming the given syntax.
|
void |
readFrom(Reader in,
Syntax syntax,
String baseURI)
|
String |
serialize(Syntax syntax)
Convenience method to export a Model to a String in a given syntax.
|
void |
writeTo(OutputStream out)
Writing an RDF/XML stream in UTF8 encoding
|
void |
writeTo(OutputStream out,
Syntax syntax)
Write the model to the passed writer, using the passed syntax.
|
void |
writeTo(Writer out)
Writing an RDF/XML stream in UTF8 encoding
|
void |
writeTo(Writer out,
Syntax syntax)
Write the model to the passed writer, using the passed syntax.
|
void readFrom(Reader in) throws IOException, ModelRuntimeException
in - the input to readIOException - on IOErrorsModelRuntimeException - on RDF serialization errors or model errorsvoid readFrom(Reader in, Syntax syntax) throws IOException, ModelRuntimeException
in - the input to readsyntax - syntax to useIOException - on IOErrorsModelRuntimeException - on RDF serialization errors or model errorsvoid readFrom(Reader in, Syntax syntax, String baseURI) throws IOException, ModelRuntimeException
Reader in the given Syntax.
The baseURI is used to dereference URIs with the syntax ":name".in - syntax - baseURI - IOExceptionModelRuntimeExceptionvoid readFrom(InputStream in) throws IOException, ModelRuntimeException
in - the input to readIOException - on IOErrorsModelRuntimeException - on RDF serialization errors or model errorsvoid readFrom(InputStream reader, Syntax syntax) throws IOException, ModelRuntimeException
in - the input to readsyntax - syntax to useIOException - on IOErrorsModelRuntimeException - on RDF serialization errors or model errorsvoid readFrom(InputStream in, Syntax syntax, String baseURI) throws IOException, ModelRuntimeException
InputStream in the given Syntax.
The baseURI is used to dereference URIs with the syntax ":name".in - syntax - baseURI - IOExceptionModelRuntimeExceptionvoid writeTo(Writer out) throws IOException, ModelRuntimeException
out - the output to write toIOException - on IOErrorsModelRuntimeException - on RDF serialization errors or model errorsvoid writeTo(Writer out, Syntax syntax) throws IOException, ModelRuntimeException
out - the output to write tosyntax - syntax to useIOException - on IOErrorsModelRuntimeException - on RDF serialization errors or model errorsvoid writeTo(OutputStream out) throws IOException, ModelRuntimeException
out - the output to write toIOException - on IOErrorsModelRuntimeException - on RDF serialization errors or model errorsvoid writeTo(OutputStream out, Syntax syntax) throws IOException, ModelRuntimeException
out - the output to write tosyntax - syntax to useIOException - on IOErrorsModelRuntimeException - on RDF serialization errors or model errorsString serialize(Syntax syntax) throws SyntaxNotSupportedException
syntax - SyntaxNotSupportedException - if the syntax is not supportedCopyright © 2005–2016 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.