Package net.ontopia.topicmaps.utils.ltm
Class LTMPathTopicMapSource
- java.lang.Object
-
- net.ontopia.topicmaps.entry.AbstractPathTopicMapSource
-
- net.ontopia.topicmaps.entry.AbstractOntopolyTopicMapSource
-
- net.ontopia.topicmaps.utils.ltm.LTMPathTopicMapSource
-
- All Implemented Interfaces:
FileFilter
,AutoCloseable
,TopicMapSourceIF
public class LTMPathTopicMapSource extends AbstractOntopolyTopicMapSource
INTERNAL: Source that locates LTM topic map files in a directory on the file system.- Since:
- 1.1
-
-
Field Summary
-
Fields inherited from class net.ontopia.topicmaps.entry.AbstractOntopolyTopicMapSource
alwaysReindexOnLoad, indexDirectory, maintainFulltextIndexes, supportsCreate, supportsDelete
-
Fields inherited from class net.ontopia.topicmaps.entry.AbstractPathTopicMapSource
base_address, duplicate_suppression, hidden, id, path, refmap, suffix, title
-
-
Constructor Summary
Constructors Constructor Description LTMPathTopicMapSource()
LTMPathTopicMapSource(String path, FileFilter filter)
INTERNAL: Constructor that takes the file directory and a file filter.LTMPathTopicMapSource(String path, String suffix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopicMapReferenceIF
createReference(URL url, String id, String title, LocatorIF base)
TopicMapWriterIF
getWriter(File file)
INTERNAL: Used by createTopicMap to serialize the new topic map.-
Methods inherited from class net.ontopia.topicmaps.entry.AbstractOntopolyTopicMapSource
createTopicMap, getAlwaysReindexOnLoad, getIndexDirectory, getMaintainFulltextIndexes, getSupportsCreate, getSupportsDelete, setAlwaysReindexOnLoad, setIndexDirectory, setMaintainFulltextIndexes, setSupportsCreate, setSupportsDelete, supportsCreate, supportsDelete
-
Methods inherited from class net.ontopia.topicmaps.entry.AbstractPathTopicMapSource
accept, close, createReference, getBase, getBaseAddress, getDuplicateSuppression, getFileFilter, getHidden, getId, getPath, getReferences, getSuffix, getTitle, refresh, refreshFromClasspath, refreshFromFilesystem, setBase, setBaseAddress, setDuplicateSuppression, setFileFilter, setHidden, setId, setPath, setSuffix, setTitle
-
-
-
-
Constructor Detail
-
LTMPathTopicMapSource
public LTMPathTopicMapSource()
-
LTMPathTopicMapSource
public LTMPathTopicMapSource(String path, FileFilter filter)
INTERNAL: Constructor that takes the file directory and a file filter.- Parameters:
path
- the path to search for TopicMapsfilter
- a java.io.FileFilter to filter the specified path- Since:
- 1.3.4
-
-
Method Detail
-
createReference
public TopicMapReferenceIF createReference(URL url, String id, String title, LocatorIF base)
- Specified by:
createReference
in classAbstractOntopolyTopicMapSource
-
getWriter
public TopicMapWriterIF getWriter(File file) throws IOException
Description copied from class:AbstractOntopolyTopicMapSource
INTERNAL: Used by createTopicMap to serialize the new topic map.- Specified by:
getWriter
in classAbstractOntopolyTopicMapSource
- Throws:
IOException
-
-