public class RDFDereferenceLimitReader extends AbstractRDFReader implements RDFReader
strict determines what to do| Constructor and Description |
|---|
RDFDereferenceLimitReader(String uri,
long limitInBytes)
Instantiates a new RDF dereference limit reader.
|
RDFDereferenceLimitReader(String uri,
long limitInBytes,
boolean strict)
Instantiates a new RDF dereference limit reader.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
getUriSize(String urlStr)
Calculates the size of the remote resource
taken from http://stackoverflow.com/a/7673089
|
void |
read(com.hp.hpl.jena.rdf.model.Model model)
Reads RDF and writes the data in the Model provided by the user
|
readpublic RDFDereferenceLimitReader(String uri, long limitInBytes)
uri - the urilimitInBytes - the limit in bytespublic RDFDereferenceLimitReader(String uri, long limitInBytes, boolean strict)
uri - the urilimitInBytes - the limit in bytesstrict - to fail even when size cannot be determinedpublic void read(com.hp.hpl.jena.rdf.model.Model model)
throws RDFReaderException
read in interface RDFReadermodel - the model we want to write our data intoRDFReaderException - if any.public static long getUriSize(String urlStr)
urlStr - the uri to checkCopyright © 2015. All rights reserved.