示例#1
0
        public void SetData(string text)
        {
            ExternalTool encoder = SelectTool(extension, ppFormatIndex, false);

            if (encoder == null)
            {
                throw new Exception("No tool registered for " + extension + " supports encoding of ppFormat " + ppFormat.Array[ppFormatIndex]);
            }
            Parser.contents = encoder.ConvertToBinary(text);
            Text            = text;
        }