java.io.OutputStreamWriter.flush C# (CSharp) Method

flush() public method

public flush ( ) : void
return void
        public override void flush()
        {
            global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::java.io.OutputStreamWriter.staticClass, "flush", "()V", ref global::java.io.OutputStreamWriter._m3);
        }

Usage Example

Esempio n. 1
0
        public String testFreemarker()
        {
            Assembly _assembly;
            _assembly = Assembly.GetExecutingAssembly();
            //Console.WriteLine(_assembly.
            try{
                Configuration cfg = new Configuration();
                cfg.setDirectoryForTemplateLoading(new File("template"));
                //cfg.setDirectoryForTemplateLoading(new File(""));
                cfg.setObjectWrapper(new DefaultObjectWrapper());

                Template temp = cfg.getTemplate("c.ftl");

                Map root = new HashMap();
                root.put("codeGen", this);

                ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
                Writer output = new OutputStreamWriter(outputStream);

                temp.process(root, output);
                output.flush();
                //System.Console.WriteLine(outputStream.toString());
                return outputStream.toString();

            }
            catch (IOException exception) {

            } catch (TemplateException exception) {

            }
            return "";
        }
All Usage Examples Of java.io.OutputStreamWriter::flush