Inheritance: java.io.Writer
Example #1
0
 public Generator(Properties properties, PrintWriter writer)
 {
   base.\u002Ector();
   Generator generator = this;
   this.properties = properties;
   this.file = (File) null;
   this.writer = writer;
 }
 public virtual void printStackTrace(PrintWriter writer)
 {
   ((Throwable) this).printStackTrace(writer);
   if (this.getParent() == null)
     return;
   writer.println("ParentException: ");
   Throwable.instancehelper_printStackTrace((Exception) this.getParent(), writer);
 }
Example #3
0
 public Generator(Properties properties, File file)
 {
   base.\u002Ector();
   Generator generator = this;
   this.properties = properties;
   this.file = file;
   this.writer = (PrintWriter) null;
 }
 /// <summary>
 /// Prints a listing to the specified print writer.
 /// </summary>
 public void list(PrintWriter @out)
 {
 }
 public ServletResponseAdapter(HttpContextBase context)
 {
     this.context = context;
     pw = new CustomPrintWriter(new OutputStreamAdapter(context.Response.OutputStream));
 }
 public static string getFilteredTrace(Exception t)
 {
   StringWriter stringWriter = new StringWriter();
   PrintWriter printWriter = new PrintWriter((Writer) stringWriter);
   Throwable.instancehelper_printStackTrace(t, printWriter);
   return BaseTestRunner.getFilteredTrace(stringWriter.getBuffer().toString());
 }
    public static string getFilteredTrace(string stack)
    {
      if (BaseTestRunner.showStackRaw())
        return stack;
      StringWriter stringWriter = new StringWriter();
      PrintWriter printWriter = new PrintWriter((Writer) stringWriter);
      BufferedReader bufferedReader = new BufferedReader((Reader) new StringReader(stack));
      try
      {
        string str;
        while ((str = bufferedReader.readLine()) != null)
        {
          if (!BaseTestRunner.filterLine(str))
            printWriter.println(str);
        }
        goto label_9;
      }
      catch (Exception ex)
      {
        int num = 2;
        if (ByteCodeHelper.MapException<Exception>(ex, (ByteCodeHelper.MapFlags) num) == null)
          throw;
      }
      return stack;
label_9:
      return stringWriter.toString();
    }
        private void writeBannedPlayers()
        {
            try
            {
                var printwriter = new PrintWriter(new FileWriter(bannedPlayersFile, false));
                string s;
                for (Iterator iterator = bannedPlayers.iterator(); iterator.hasNext(); printwriter.println(s))
                {
                    s = (string) iterator.next();
                }

                printwriter.close();
            }
            catch (Exception exception)
            {
                logger.warning((new StringBuilder()).append("Failed to save ban list: ").append(exception).toString());
            }
        }
		/// <summary>
		/// Ctor from writer
		/// </summary>
		/// <param name="writer"></param>
		public OutputStreamWrapper (PrintWriter writer)
		{
			_printWriter = writer;
			_outputMode = OutputMode.CharWriter;
		}
 public static void writeImageMap(PrintWriter writer, string name, ChartRenderingInfo info, bool useOverLibForToolTips)
 {
   object obj1 = (useOverLibForToolTips ? 1 : 0) == 0 ? (object) new StandardToolTipTagFragmentGenerator() : (object) new OverLIBToolTipTagFragmentGenerator();
   PrintWriter writer1 = writer;
   string name1 = name;
   ChartRenderingInfo info1 = info;
   object obj2 = obj1;
   URLTagFragmentGenerator fragmentGenerator1 = (URLTagFragmentGenerator) new StandardURLTagFragmentGenerator();
   ToolTipTagFragmentGenerator toolTipTagFragmentGenerator;
   if (obj2 != null)
   {
     ToolTipTagFragmentGenerator fragmentGenerator2 = obj2 as ToolTipTagFragmentGenerator;
     if (fragmentGenerator2 == null)
       throw new IncompatibleClassChangeError();
     toolTipTagFragmentGenerator = fragmentGenerator2;
   }
   else
     toolTipTagFragmentGenerator = (ToolTipTagFragmentGenerator) null;
   URLTagFragmentGenerator urlTagFragmentGenerator = fragmentGenerator1;
   ImageMapUtilities.writeImageMap(writer1, name1, info1, toolTipTagFragmentGenerator, urlTagFragmentGenerator);
 }
Example #11
0
 private static string exceptionToString([In] Exception obj0)
 {
   StringWriter stringWriter = new StringWriter();
   PrintWriter printWriter = new PrintWriter((Writer) stringWriter);
   Throwable.instancehelper_printStackTrace(obj0, printWriter);
   return stringWriter.toString();
 }
			public AspxResponseWrapper(HttpServletResponse resp, TextWriter writer) : base (resp)
			{
				jwriter = new PrintWriter(new JavaWriterFromTextWriter(writer));
			}
Example #13
0
 public virtual bool generate(params Class[] classes)
 {
   [email protected] = new PrintWriter((Writer) new Generator\u00241(this));
   this.functionDefinitions = new Generator.LinkedListRegister();
   this.functionPointers = new Generator.LinkedListRegister();
   this.deallocators = new Generator.LinkedListRegister();
   this.arrayDeallocators = new Generator.LinkedListRegister();
   this.jclasses = new Generator.LinkedListRegister();
   this.members = new HashMap();
   this.doClasses(classes);
   if (!this.generatedSomethingUseful)
     return false;
   [email protected] = this.writer == null ? new PrintWriter(this.file) : this.writer;
   this.doClasses(classes);
   return true;
 }
Example #14
0
		/// <summary>
		/// Prints out a list, starting at the specified indention, to the specified
		/// print writer.
		/// </summary>
		public void list(PrintWriter @out, int @indent)
		{
		}
 public static void writeImageMap(PrintWriter writer, string name, ChartRenderingInfo info, ToolTipTagFragmentGenerator toolTipTagFragmentGenerator, URLTagFragmentGenerator urlTagFragmentGenerator)
 {
   writer.println(ImageMapUtilities.getImageMap(name, info, toolTipTagFragmentGenerator, urlTagFragmentGenerator));
 }
Example #16
0
        public void printStackTrace(PrintWriter w)
        {

        }
 public static void writeImageMap(PrintWriter writer, string name, ChartRenderingInfo info)
 {
   ImageMapUtilities.writeImageMap(writer, name, info, (ToolTipTagFragmentGenerator) new StandardToolTipTagFragmentGenerator(), (URLTagFragmentGenerator) new StandardURLTagFragmentGenerator());
 }