Inheritance: java.io.Writer
Ejemplo n.º 1
0
 public Generator(Properties properties, PrintWriter writer)
 {
   base.\u002Ector();
   Generator generator = this;
   this.properties = properties;
   this.file = (File) null;
   this.writer = writer;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public Generator(Properties properties, File file)
 {
   base.\u002Ector();
   Generator generator = this;
   this.properties = properties;
   this.file = file;
   this.writer = (PrintWriter) null;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Prints a listing to the specified print writer.
 /// </summary>
 public void list(PrintWriter @out)
 {
 }
Ejemplo n.º 5
0
 public ServletResponseAdapter(HttpContextBase context)
 {
     this.context = context;
     pw = new CustomPrintWriter(new OutputStreamAdapter(context.Response.OutputStream));
 }
Ejemplo n.º 6
0
 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());
 }
Ejemplo n.º 7
0
    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();
    }
Ejemplo n.º 8
0
        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());
            }
        }
Ejemplo n.º 9
0
		/// <summary>
		/// Ctor from writer
		/// </summary>
		/// <param name="writer"></param>
		public OutputStreamWrapper (PrintWriter writer)
		{
			_printWriter = writer;
			_outputMode = OutputMode.CharWriter;
		}
Ejemplo n.º 10
0
 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);
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 12
0
			public AspxResponseWrapper(HttpServletResponse resp, TextWriter writer) : base (resp)
			{
				jwriter = new PrintWriter(new JavaWriterFromTextWriter(writer));
			}
Ejemplo n.º 13
0
 public virtual bool generate(params Class[] classes)
 {
   this.@out = 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;
   this.@out = this.writer == null ? new PrintWriter(this.file) : this.writer;
   this.doClasses(classes);
   return true;
 }
Ejemplo n.º 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)
		{
		}
Ejemplo n.º 15
0
 public static void writeImageMap(PrintWriter writer, string name, ChartRenderingInfo info, ToolTipTagFragmentGenerator toolTipTagFragmentGenerator, URLTagFragmentGenerator urlTagFragmentGenerator)
 {
   writer.println(ImageMapUtilities.getImageMap(name, info, toolTipTagFragmentGenerator, urlTagFragmentGenerator));
 }
Ejemplo n.º 16
0
        public void printStackTrace(PrintWriter w)
        {

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