public class TMXMLReader extends AbstractXMLFormatReader implements TopicMapReaderIF
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_VALIDATE |
base_address, source
Constructor and Description |
---|
TMXMLReader(File file)
PUBLIC: Creates a reader reading from the given file name.
|
TMXMLReader(InputSource source,
LocatorIF base)
PUBLIC: Creates a reader reading from the given location, using a
different base address.
|
TMXMLReader(InputStream stream,
LocatorIF base_address)
PUBLIC: Creates a reader reading from the given InputStream using
the specified base address.
|
TMXMLReader(Reader reader,
LocatorIF base_address)
PUBLIC: Creates a reader reading from the given Reader using
the specified base address.
|
TMXMLReader(URL url)
PUBLIC: Creates a reader reading from the given url.
|
TMXMLReader(URL url,
LocatorIF base_address) |
Modifier and Type | Method and Description |
---|---|
boolean |
getValidate() |
void |
importInto(TopicMapIF topicmap)
PUBLIC: Imports an implicitly designated topic map into the given topic map.
|
TopicMapIF |
read()
PUBLIC: Reads the next topic map available from some implicit,
implementation dependent source.
|
Collection |
readAll()
PUBLIC: Reads all the topic map available from some implicit,
implementation dependent source.
|
void |
setAdditionalProperties(Map<String,Object> properties)
Sets additional properties for the TMXMLReader.
|
void |
setValidate(boolean validate) |
getBaseAddress, getInputSource, setBaseAddress, setInputSource
public static final String PROPERTY_VALIDATE
public TMXMLReader(URL url) throws MalformedURLException
MalformedURLException
public TMXMLReader(File file) throws MalformedURLException
MalformedURLException
public TMXMLReader(Reader reader, LocatorIF base_address)
public TMXMLReader(InputStream stream, LocatorIF base_address)
public TMXMLReader(InputSource source, LocatorIF base)
public boolean getValidate()
public void setValidate(boolean validate)
public TopicMapIF read() throws IOException
TopicMapReaderIF
null
is returned when there are no more
topic maps available. In a sense this is iterator-like
behaviour.read
in interface TopicMapReaderIF
IOException
- Thrown if reading the source fails.public void importInto(TopicMapIF topicmap) throws IOException
TopicMapReaderIF
importInto
in interface TopicMapReaderIF
topicmap
- The topic map into which the import will be done;
an object implementing TopicMapIF.IOException
public Collection readAll() throws IOException
TopicMapReaderIF
readAll
in interface TopicMapReaderIF
IOException
- Thrown if reading the source fails.public void setAdditionalProperties(Map<String,Object> properties)
setValidate(boolean)
method. Only accepts a boolean value.setAdditionalProperties
in interface TopicMapReaderIF
properties
-