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, setInputSourcepublic static final String PROPERTY_VALIDATE
public TMXMLReader(URL url) throws MalformedURLException
MalformedURLExceptionpublic TMXMLReader(File file) throws MalformedURLException
MalformedURLExceptionpublic 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
TopicMapReaderIFnull is returned when there are no more
topic maps available. In a sense this is iterator-like
behaviour.read in interface TopicMapReaderIFIOException - Thrown if reading the source fails.public void importInto(TopicMapIF topicmap) throws IOException
TopicMapReaderIFimportInto in interface TopicMapReaderIFtopicmap - The topic map into which the import will be done;
an object implementing TopicMapIF.IOExceptionpublic Collection readAll() throws IOException
TopicMapReaderIFreadAll in interface TopicMapReaderIFIOException - Thrown if reading the source fails.public void setAdditionalProperties(Map<String,Object> properties)
setValidate(boolean) method. Only accepts a boolean value.setAdditionalProperties in interface TopicMapReaderIFproperties -