Package org.restlet.ext.rdf.internal
Class RdfReader
- java.lang.Object
-
- org.restlet.ext.rdf.internal.RdfReader
-
- Direct Known Subclasses:
RdfNTriplesReader,RdfXmlReader
public abstract class RdfReader extends java.lang.ObjectSuper class of all RDF readers.
-
-
Field Summary
Fields Modifier and Type Field Description private GraphHandlergraphHandlerThe graph handler invoked when parsing.private RepresentationrdfRepresentationThe representation to read.
-
Constructor Summary
Constructors Constructor Description RdfReader(Representation rdfRepresentation, GraphHandler graphHandler)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description GraphHandlergetGraphHandler()Returns the graph handler invoked when parsing.RepresentationgetRdfRepresentation()Returns the representation to read.abstract voidparse()Parses the content.
-
-
-
Field Detail
-
graphHandler
private GraphHandler graphHandler
The graph handler invoked when parsing.
-
rdfRepresentation
private Representation rdfRepresentation
The representation to read.
-
-
Constructor Detail
-
RdfReader
public RdfReader(Representation rdfRepresentation, GraphHandler graphHandler)
Constructor.- Parameters:
rdfRepresentation- The representation to read.graphHandler- The graph handler invoked during the parsing.- Throws:
java.io.IOException
-
-
Method Detail
-
getGraphHandler
public GraphHandler getGraphHandler()
Returns the graph handler invoked when parsing.- Returns:
- The graph handler invoked when parsing.
-
getRdfRepresentation
public Representation getRdfRepresentation()
Returns the representation to read.- Returns:
- The representation to read.
-
parse
public abstract void parse() throws java.lang.ExceptionParses the content.- Throws:
java.lang.Exception
-
-