public class ImportExportUtils extends Object
Constructor and Description |
---|
ImportExportUtils() |
Modifier and Type | Method and Description |
---|---|
static TopicMapReaderIF |
getReader(File file)
PUBLIC: Given a file reference to a topic map, returns a topic
map reader of the right class.
|
static TopicMapReaderIF |
getReader(String filename_or_url)
PUBLIC: Given the file name or URL of a topic map, returns a
topic map reader of the right class.
|
static TopicMapReaderIF |
getReader(URL url)
PUBLIC: Given a locator referring to a topic map, returns a topic
map reader of the right class.
|
static Set<ImportExportServiceIF> |
getServices()
Returns the loaded ImportExportServiceIF services.
|
static long |
getTopicMapId(String address)
INTERNAL: Gets the numeric topic map id from an RDBMS URI or a
simple topic map id reference.
|
static TopicMapWriterIF |
getWriter(File tmfile)
PUBLIC: Given the file for a topicmap, returns a topicmap
writer of the right class.
|
static TopicMapWriterIF |
getWriter(File tmfile,
String encoding)
PUBLIC: Given the file for a topicmap, returns a topicmap
writer of the right class.
|
public static Set<ImportExportServiceIF> getServices()
public static TopicMapReaderIF getReader(File file) throws IOException
IOException
public static TopicMapReaderIF getReader(String filename_or_url)
public static TopicMapReaderIF getReader(URL url)
public static TopicMapWriterIF getWriter(File tmfile) throws IOException
IOException
public static TopicMapWriterIF getWriter(File tmfile, String encoding) throws IOException
IOException
public static long getTopicMapId(String address)