public interface ModelSetIO
Modifier and Type | Method and Description |
---|---|
void |
readFrom(InputStream in)
Read from InputStream assuming to read an TRiX stream.
|
void |
readFrom(InputStream reader,
Syntax syntax)
Reads assuming the given syntax.
|
void |
readFrom(InputStream reader,
Syntax syntax,
String baseURI)
Reads assuming the given syntax.
|
void |
readFrom(Reader in)
Read from Reader assuming to read a TRiX stream in UTF8 encoding.
|
void |
readFrom(Reader in,
Syntax syntax)
Reads assuming the given syntax.
|
void |
readFrom(Reader in,
Syntax syntax,
String baseURI)
Reads assuming the given syntax.
|
String |
serialize(Syntax syntax)
Convenience method to export a ModelSet to a String in a given syntax.
|
void |
writeTo(OutputStream out)
Writing a TRiX stream in UTF8 encoding For more info on TRiX read:
http://www.hpl.hp.com/techreports/2003/HPL-2003-268.html
|
void |
writeTo(OutputStream out,
Syntax syntax)
Write the model to the passed writer, using the passed syntax.
|
void |
writeTo(Writer out)
Write to writer in UTF8 and TRiX.
|
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, SyntaxNotSupportedException
in
- the input to readsyntax
- syntax to useIOException
- on IOErrorsModelRuntimeException
- on RDF serialisation errors or model errorsSyntaxNotSupportedException
- if adapter can't handle the given syntaxvoid readFrom(Reader in, Syntax syntax, String baseURI) throws IOException, ModelRuntimeException, SyntaxNotSupportedException
in
- the input to readsyntax
- syntax to usebaseURI
- baseURI to useIOException
- on IOErrorsModelRuntimeException
- on RDF serialisation errors or model errorsSyntaxNotSupportedException
- if adapter can't handle the given syntaxvoid readFrom(InputStream in) throws IOException, ModelRuntimeException
in
- the input to readIOException
- on IOErrorsModelRuntimeException
- on RDF serialisation errors or model errorsvoid readFrom(InputStream reader, Syntax syntax) throws IOException, ModelRuntimeException, SyntaxNotSupportedException
in
- the input to readsyntax
- syntax to useIOException
- on IOErrorsModelRuntimeException
- on RDF serialisation errors or model errorsSyntaxNotSupportedException
- if adapter can't handle the given syntaxvoid readFrom(InputStream reader, Syntax syntax, String baseURI) throws IOException, ModelRuntimeException, SyntaxNotSupportedException
in
- the input to readsyntax
- syntax to usebaseURI
- base URI to useIOException
- on IOErrorsModelRuntimeException
- on RDF serialisation errors or model errorsSyntaxNotSupportedException
- if adapter can't handle the given syntaxvoid 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, SyntaxNotSupportedException
out
- the output to write tosyntax
- syntax to useIOException
- on IOErrorsModelRuntimeException
- on RDF serialization errors or model errorsSyntaxNotSupportedException
- if adapter can't handle the given syntaxvoid 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, SyntaxNotSupportedException
out
- the output to write tosyntax
- syntax to useIOException
- on IOErrorsModelRuntimeException
- on RDF serialization errors or model errorsSyntaxNotSupportedException
- if adapter can't handle the given syntaxString serialize(Syntax syntax) throws SyntaxNotSupportedException
syntax
- SyntaxNotSupportedException
- if the syntax is not supportedCopyright © 2005–2019 IT-Consulting Dr. Max Völkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.