FileDocCategorySizeDatePackage
VectorWriter.javaAPI DocApache log4j 1.2.152280Sat Aug 25 00:09:40 BST 2007org.apache.log4j.spi

VectorWriter

public class VectorWriter extends PrintWriter
VectorWriter is an obsolete class provided only for binary compatibility with earlier versions of log4j and should not be used.
deprecated

Fields Summary
private Vector
v
Constructors Summary
VectorWriter()

deprecated

    super(new NullWriter());
    v = new Vector();
  
Methods Summary
public voidprint(java.lang.Object o)

    v.addElement(String.valueOf(o));
  
public voidprint(char[] chars)

    v.addElement(new String(chars));
  
public voidprint(java.lang.String s)

    v.addElement(s);
  
public voidprintln(java.lang.Object o)

    v.addElement(String.valueOf(o));
  
public voidprintln(char[] chars)

    v.addElement(new String(chars));
  
public voidprintln(java.lang.String s)

    v.addElement(s);
  
public java.lang.String[]toStringArray()

    int len = v.size();
    String[] sa = new String[len];
    for(int i = 0; i < len; i++) {
      sa[i] = (String) v.elementAt(i);
    }
    return sa;
  
public voidwrite(java.lang.String s, int off, int len)

    v.addElement(s.substring(off, off+len));
  
public voidwrite(java.lang.String s)

     v.addElement(s);
  
public voidwrite(char[] chars)

    v.addElement(new String(chars));
  
public voidwrite(char[] chars, int off, int len)

    v.addElement(new String(chars, off, len));