Package net.ontopia.topicmaps.utils
Class ImportExportUtils
java.lang.Object
net.ontopia.topicmaps.utils.ImportExportUtils
PUBLIC: Utilities for importing and exporting topic maps.
- Since:
- 1.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TopicMapReaderIFPUBLIC: Given a file reference to a topic map, returns a topic map reader of the right class.static TopicMapReaderIFPUBLIC: Given the file name or URL of a topic map, returns a topic map reader of the right class.static TopicMapReaderIFPUBLIC: Given a locator referring to a topic map, returns a topic map reader of the right class.static Set<ImportExportServiceIF>Returns the loaded ImportExportServiceIF services.static longgetTopicMapId(String address) INTERNAL: Gets the numeric topic map id from an RDBMS URI or a simple topic map id reference.static TopicMapWriterIFPUBLIC: Given the file for a topicmap, returns a topicmap writer of the right class.static TopicMapWriterIFPUBLIC: Given the file for a topicmap, returns a topicmap writer of the right class.
-
Constructor Details
-
ImportExportUtils
public ImportExportUtils()
-
-
Method Details
-
getServices
Returns the loaded ImportExportServiceIF services.- Returns:
- the loaded ImportExportServiceIF services.
- Since:
- 5.4.0
-
getReader
PUBLIC: Given a file reference to a topic map, returns a topic map reader of the right class. Uses the file extension to determine what reader to create. Supports '.xtm', and '.ltm'.- Throws:
IOException- Since:
- 2.0
-
getReader
PUBLIC: Given the file name or URL of a topic map, returns a topic map reader of the right class. Uses the file extension to determine what reader to create. Supports '.xtm', and '.ltm'. -
getReader
PUBLIC: Given a locator referring to a topic map, returns a topic map reader of the right class. Uses the file extension to determine what reader to create. Supports '.xtm', '.tmx', and '.ltm'.- Since:
- 2.0
-
getWriter
PUBLIC: Given the file for a topicmap, returns a topicmap writer of the right class. Uses the file extension to determine what writer to create. Supports '.xtm' and '.tmx'. If the suffix is unknown, the default writer is a XTM writer.- Throws:
IOException
-
getWriter
PUBLIC: Given the file for a topicmap, returns a topicmap writer of the right class. Uses the file extension to determine what writer to create. Supports '.xtm' and '.tmx'. If the suffix is unknown, the default writer is a XTM writer.- Throws:
IOException
-
getTopicMapId
INTERNAL: Gets the numeric topic map id from an RDBMS URI or a simple topic map id reference. Examples: x-ontopia:tm-rdbms:123, x-ontopia:tm-rdbms:M123, 123 and M123.
-