|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ModelSetIO
Defines reading and writing to and from readers/writers and streams. The default syntax for ModelSets is TRiX.
| Method Summary | |
|---|---|
void |
readFrom(java.io.InputStream in)
Read from InputStream assuming to read an RDF/XML stream. |
void |
readFrom(java.io.InputStream reader,
Syntax syntax)
Reads assuming the given syntax. |
void |
readFrom(java.io.InputStream reader,
Syntax syntax,
java.lang.String baseURI)
Reads assuming the given syntax. |
void |
readFrom(java.io.Reader in)
Read from Reader assuming to read a TRiX stream in UTF8 encoding. |
void |
readFrom(java.io.Reader in,
Syntax syntax)
Reads assuming the given syntax. |
void |
readFrom(java.io.Reader in,
Syntax syntax,
java.lang.String baseURI)
Reads assuming the given syntax. |
java.lang.String |
serialize(Syntax syntax)
Convenience method to export a ModelSet to a String in a given syntax. |
void |
writeTo(java.io.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(java.io.OutputStream out,
Syntax syntax)
Write the model to the passed writer, using the passed syntax. |
void |
writeTo(java.io.Writer out)
Write to writer in UTF8 and TRiX. |
void |
writeTo(java.io.Writer out,
Syntax syntax)
Write the model to the passed writer, using the passed syntax. |
| Method Detail |
|---|
void readFrom(java.io.Reader in)
throws java.io.IOException,
ModelRuntimeException
in - the input to read
java.io.IOException - on IOErrors
ModelRuntimeException - on RDF serialization errors or model errors
void readFrom(java.io.Reader in,
Syntax syntax)
throws java.io.IOException,
ModelRuntimeException,
SyntaxNotSupportedException
in - the input to readsyntax - syntax to use
java.io.IOException - on IOErrors
ModelRuntimeException - on RDF serialisation errors or model errors
SyntaxNotSupportedException - if adapter can't handle the given syntax
void readFrom(java.io.Reader in,
Syntax syntax,
java.lang.String baseURI)
throws java.io.IOException,
ModelRuntimeException,
SyntaxNotSupportedException
in - the input to readsyntax - syntax to usebaseURI - baseURI to use
java.io.IOException - on IOErrors
ModelRuntimeException - on RDF serialisation errors or model errors
SyntaxNotSupportedException - if adapter can't handle the given syntax
void readFrom(java.io.InputStream in)
throws java.io.IOException,
ModelRuntimeException
in - the input to read
java.io.IOException - on IOErrors
ModelRuntimeException - on RDF serialisation errors or model errors
void readFrom(java.io.InputStream reader,
Syntax syntax)
throws java.io.IOException,
ModelRuntimeException,
SyntaxNotSupportedException
in - the input to readsyntax - syntax to use
java.io.IOException - on IOErrors
ModelRuntimeException - on RDF serialisation errors or model errors
SyntaxNotSupportedException - if adapter can't handle the given syntax
void readFrom(java.io.InputStream reader,
Syntax syntax,
java.lang.String baseURI)
throws java.io.IOException,
ModelRuntimeException,
SyntaxNotSupportedException
in - the input to readsyntax - syntax to usebaseURI - base URI to use
java.io.IOException - on IOErrors
ModelRuntimeException - on RDF serialisation errors or model errors
SyntaxNotSupportedException - if adapter can't handle the given syntax
void writeTo(java.io.Writer out)
throws java.io.IOException,
ModelRuntimeException
out - the output to write to
java.io.IOException - on IOErrors
ModelRuntimeException - on RDF serialization errors or model errors
void writeTo(java.io.Writer out,
Syntax syntax)
throws java.io.IOException,
ModelRuntimeException,
SyntaxNotSupportedException
out - the output to write tosyntax - syntax to use
java.io.IOException - on IOErrors
ModelRuntimeException - on RDF serialization errors or model errors
SyntaxNotSupportedException - if adapter can't handle the given syntax
void writeTo(java.io.OutputStream out)
throws java.io.IOException,
ModelRuntimeException
out - the output to write to
java.io.IOException - on IOErrors
ModelRuntimeException - on RDF serialization errors or model errors
void writeTo(java.io.OutputStream out,
Syntax syntax)
throws java.io.IOException,
ModelRuntimeException,
SyntaxNotSupportedException
out - the output to write tosyntax - syntax to use
java.io.IOException - on IOErrors
ModelRuntimeException - on RDF serialization errors or model errors
SyntaxNotSupportedException - if adapter can't handle the given syntax
java.lang.String serialize(Syntax syntax)
throws SyntaxNotSupportedException
syntax -
SyntaxNotSupportedException - if the syntax is not supported
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||