Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*     */ package org.apache.log4j.spi;
 /*     */ 
 /*     */ import java.io.PrintWriter;
 /*     */ import java.util.Vector;
 /*     */ 
 /*     */ class VectorWriter extends PrintWriter
 /*     */ {
 /*     */   private Vector v;
 /*     */ 
/*     */   VectorWriter()
/*     */   {
/*  80 */     super(new NullWriter());
/*  81 */     this. = new Vector();
/*     */   }
/*     */ 
/*     */   public void print(Object o) {
/*  85 */     this..addElement(o.toString());
/*     */   }
/*     */ 
/*     */   public void print(char[] chars) {
/*  89 */     this..addElement(new String(chars));
/*     */   }
/*     */ 
/*     */   public void print(String s) {
/*  93 */     this..addElement(s);
/*     */   }
/*     */ 
/*     */   public void println(Object o) {
/*  97 */     this..addElement(o.toString());
/*     */   }
/*     */ 
/*     */   public void println(char[] chars)
/*     */   {
/* 104 */     this..addElement(new String(chars));
/*     */   }
/*     */ 
/*     */   public void println(String s)
/*     */   {
/* 109 */     this..addElement(s);
/*     */   }
/*     */ 
/*     */   public void write(char[] chars) {
/* 113 */     this..addElement(new String(chars));
/*     */   }
/*     */ 
/*     */   public void write(char[] charsint offint len) {
/* 117 */     this..addElement(new String(charsofflen));
/*     */   }
/*     */ 
/*     */   public void write(String sint offint len) {
/* 121 */     this..addElement(s.substring(offoff + len));
/*     */   }
/*     */ 
/*     */   public void write(String s) {
/* 125 */     this..addElement(s);
/*     */   }
/*     */ 
/*     */   public String[] toStringArray() {
/* 129 */     int len = this..size();
/* 130 */     String[] sa = new String[len];
/* 131 */     for (int i = 0; i < leni++) {
/* 132 */       sa[i] = ((String)this..elementAt(i));
/*     */     }
/* 134 */     return sa;
/*     */   }
/*     */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     org.apache.log4j.spi.VectorWriter
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X