| java.lang.Object org.openrdf.rio.Rio
Rio | public class Rio (Code) | | Factory class providing static methods for creating RDF parsers and -writers
for various RDF file formats.
author: Arjohn Kampman |
getParserFormatForFileName | public static RDFFormat getParserFormatForFileName(String fileName)(Code) | | Tries to match the extension of a file name against the list of RDF
formats that can be parsed.
Parameters: fileName - A file name. An RDFFormat object if a match was found, or nullotherwise. See Also: Rio.getParserFormatForFileName(String,RDFFormat) |
getParserFormatForMIMEType | public static RDFFormat getParserFormatForMIMEType(String mimeType)(Code) | | Tries to match a MIME type against the list of RDF formats that can be
parsed.
Parameters: mimeType - A MIME type, e.g. "application/rdf+xml". An RDFFormat object if a match was found, or nullotherwise. See Also: Rio.getParserFormatForMIMEType(String,RDFFormat) |
getParserFormatForMIMEType | public static RDFFormat getParserFormatForMIMEType(String mimeType, RDFFormat fallback)(Code) | | Tries to match a MIME type against the list of RDF formats that can be
parsed. This method calls
RDFFormat.matchMIMEType(StringIterable) with the specified MIME
type, the keys of
RDFParserRegistry.getInstance and the fallback
format as parameters.
Parameters: mimeType - A MIME type, e.g. "application/rdf+xml". Parameters: fallback - The format that will be returned if no match was found. The matching RDFFormat, or fallback if no match wasfound. |
getWriterFormatForFileName | public static RDFFormat getWriterFormatForFileName(String fileName)(Code) | | Tries to match the extension of a file name against the list of RDF
formats that can be written.
Parameters: fileName - A file name. An RDFFormat object if a match was found, or nullotherwise. See Also: Rio.getWriterFormatForFileName(String,RDFFormat) |
getWriterFormatForMIMEType | public static RDFFormat getWriterFormatForMIMEType(String mimeType)(Code) | | Tries to match a MIME type against the list of RDF formats that can be
written.
Parameters: mimeType - A MIME type, e.g. "application/rdf+xml". An RDFFormat object if a match was found, or nullotherwise. See Also: Rio.getWriterFormatForMIMEType(String,RDFFormat) |
|
|