public class RDFImporterExporterService extends Object implements ImportExportServiceIF
| Constructor and Description |
|---|
RDFImporterExporterService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(URL resource)
PUBLIC: Indicates that the service can supply a TopicMapReaderIF implementation for the specified
resource.
|
boolean |
canWrite(URL resource)
PUBLIC: Indicates that the service can supply a TopicMapWriterIF implementation for the specified
resource.
|
AbstractURLTopicMapReference |
createReference(URL url,
String refid,
String title,
LocatorIF base_address)
PUBLIC: Creates an AbstractURLTopicMapReference for the specified url, using the appropriate
reader and/or writer provided by this service.
|
TopicMapReaderIF |
getReader(URL resource)
PUBLIC: Create and return a TopicMapReaderIF for the specified resource.
|
TopicMapWriterIF |
getWriter(OutputStream stream)
PUBLIC: Create and return a TopicMapWriterIF for the specified stream.
|
public boolean canRead(URL resource)
ImportExportServiceIFcanRead in interface ImportExportServiceIFresource - The resource a reader is needed forpublic boolean canWrite(URL resource)
ImportExportServiceIFcanWrite in interface ImportExportServiceIFresource - The resource a writer is needed forpublic TopicMapWriterIF getWriter(OutputStream stream) throws IOException
ImportExportServiceIF#canWrite(java.lang.String) to check if this service can
write to the resource which the stream is connected to.getWriter in interface ImportExportServiceIFstream - The stream to write toIOException - if anything goes wrong during initialization of the writer regarding
IO operationspublic TopicMapReaderIF getReader(URL resource)
ImportExportServiceIF#canRead(java.lang.String) to check if this service can
read the specified resource.getReader in interface ImportExportServiceIFresource - The resource to create a reader forpublic AbstractURLTopicMapReference createReference(URL url, String refid, String title, LocatorIF base_address)
ImportExportServiceIFcreateReference in interface ImportExportServiceIFurl - The resource to create the reference forrefid - The id to use for the referencetitle - The title to use for the referencebase_address - The base address to use if supported