internal FIVocabulary(Uri uri)
 {
     // create restricted encoding and alphabet managers and propogate into child vocabularies
     _encodingAlgorithmManager  = new FIEncodingAlgorithmManager();
     _restrictedAlphabetManager = new FIRestrictedAlphabetManager();
     _reader = new FIReaderVocabulary(_encodingAlgorithmManager, _restrictedAlphabetManager);
     _writer = new FIWriterVocabulary(uri, _encodingAlgorithmManager, _restrictedAlphabetManager);
 }
Example #2
0
        internal FIReaderVocabulary()
        {
            // internal vocabulary constructor
            _encodingAlgorithmManager  = new FIEncodingAlgorithmManager();
            _restrictedAlphabetManager = new FIRestrictedAlphabetManager();

            Init();
        }
Example #3
0
        internal FIReaderVocabulary(FIEncodingAlgorithmManager encodingAlgorithmManager, FIRestrictedAlphabetManager restrictedAlphabetManager)
        {
            // external vocabulary constructor
            _encodingAlgorithmManager  = encodingAlgorithmManager;
            _restrictedAlphabetManager = restrictedAlphabetManager;

            Init();
        }
        internal FIWriterVocabulary(Uri uri, FIEncodingAlgorithmManager encodingAlgorithmManager, FIRestrictedAlphabetManager restrictedAlphabetManager)
        {
            if (uri != null)
            {
                _uri = uri.ToString();
            }

            // external vocabulary constructor
            _encodingAlgorithmManager  = encodingAlgorithmManager;
            _restrictedAlphabetManager = restrictedAlphabetManager;

            Init();
        }