public class IlrVocabularyController
extends java.lang.Object
| Constructor and Description |
|---|
IlrVocabularyController(IlrVocabulary vocabulary)
Builds a vocabulary controller for the specified vocabulary.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.logging.Logger |
getLogger()
Returns the logger.
|
IlrVocabulary |
getVocabulary()
Returns the attached vocabulary.
|
protected java.util.logging.Logger |
makeLogger()
Creates the logger instance.
|
void |
readVocabulary(java.io.InputStream istream,
java.lang.String encoding,
java.lang.Object context)
Reads a vocabulary from the specified
istream, using the
specified encoding, and context as the context object. |
void |
readVocabulary(java.io.Reader reader,
java.lang.Object context)
Reads a vocabulary from the specified
reader using context
as the context object. |
void |
setLogger(java.util.logging.Logger logger)
This method assign a logger to this instance of VocabularyController.
|
void |
writeVocabulary(java.io.OutputStream ostream,
java.lang.String encoding)
Writes the vocabulary to the specified
ostream, using the
specified encoding. |
void |
writeVocabulary(java.io.Writer writer)
Writes the vocabulary to the specified
writer. |
public IlrVocabularyController(IlrVocabulary vocabulary)
vocabulary - The vocabulary.public IlrVocabulary getVocabulary()
public java.util.logging.Logger getLogger()
public void setLogger(java.util.logging.Logger logger)
logger - protected java.util.logging.Logger makeLogger()
Logger.Logger.public void readVocabulary(java.io.InputStream istream,
java.lang.String encoding,
java.lang.Object context)
throws java.io.IOException,
IlrSerializerError
istream, using the
specified encoding, and context as the context object.java.io.IOExceptionIlrSerializerErroristream - The input stream.encoding - The encoding.context - A context object. In the case of a BOM-based vocabulary, this context is
the instance of IlrObjectModel.public void readVocabulary(java.io.Reader reader,
java.lang.Object context)
throws java.io.IOException,
IlrSerializerError
reader using context
as the context object.java.io.IOExceptionIlrSerializerErrorreader - The reader.context - A context object. In the case of a BOM-based vocabulary, this context
is the instance of IlrObjectModel.public void writeVocabulary(java.io.Writer writer)
throws java.io.IOException
writer.java.io.IOExceptionwriter - The writer.public void writeVocabulary(java.io.OutputStream ostream,
java.lang.String encoding)
throws java.io.IOException
ostream, using the
specified encoding.java.io.IOExceptionostream - The output stream.encoding - The encoding.© Copyright IBM Corp. 1987, 2017