public interface ImportExportServiceIF
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 referenceId,
String title,
LocatorIF baseAddress)
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.
|
boolean canRead(URL resource)
resource
- The resource a reader is needed forboolean canWrite(URL resource)
resource
- The resource a writer is needed forTopicMapWriterIF getWriter(OutputStream stream) throws IOException
#canWrite(java.lang.String)
to check if this service can
write to the resource which the stream is connected to.stream
- The stream to write toIOException
- if anything goes wrong during initialization of the writer regarding
IO operationsTopicMapReaderIF getReader(URL resource)
#canRead(java.lang.String)
to check if this service can
read the specified resource.resource
- The resource to create a reader forAbstractURLTopicMapReference createReference(URL url, String referenceId, String title, LocatorIF baseAddress)
url
- The resource to create the reference forreferenceId
- The id to use for the referencetitle
- The title to use for the referencebaseAddress
- The base address to use if supported