Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.facelets.util
Class FastWriter  view FastWriter download FastWriter.java

java.lang.Object
  extended byjava.io.Writer
      extended bycom.sun.facelets.util.FastWriter

public final class FastWriter
extends java.io.Writer

Version:
$Id: FastWriter.java,v 1.3 2005/10/06 13:40:55 jhook Exp $

Field Summary
private  char[] buff
           
private  int size
           
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
FastWriter()
           
FastWriter(int initialSize)
           
 
Method Summary
 void close()
          This method closes the stream.
 void flush()
          This method forces any data that may have been buffered to be written to the underlying output device.
private  void overflow(int len)
           
 void reset()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 void write(char[] cbuf)
          This method all the writes char from the passed array to the output stream.
 void write(char[] cbuf, int off, int len)
          This method writes len char from the specified array buf starting at index offset into the array.
 void write(int c)
          This method writes a single char to the output stream.
 void write(java.lang.String str)
          This method writes all the characters in a String to the output.
 void write(java.lang.String str, int off, int len)
          This method writes len chars from the String starting at position offset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

buff

private char[] buff

size

private int size
Constructor Detail

FastWriter

public FastWriter()

FastWriter

public FastWriter(int initialSize)
Method Detail

close

public void close()
           throws java.io.IOException
Description copied from class: java.io.Writer
This method closes the stream. Any internal or native resources associated with this stream are freed. Any subsequent attempt to access the stream might throw an exception.

This method in this class does nothing.


flush

public void flush()
           throws java.io.IOException
Description copied from class: java.io.Writer
This method forces any data that may have been buffered to be written to the underlying output device. Please note that the host environment might perform its own buffering unbeknowst to Java. In that case, a write made (for example, to a disk drive) might be cached in OS buffers instead of actually being written to disk.


overflow

private final void overflow(int len)

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws java.io.IOException
Description copied from class: java.io.Writer
This method writes len char from the specified array buf starting at index offset into the array.

Subclasses must provide an implementation of this abstract method.


write

public void write(char[] cbuf)
           throws java.io.IOException
Description copied from class: java.io.Writer
This method all the writes char from the passed array to the output stream. This method is equivalent to write(buf, 0, buf.length) which is exactly how it is implemented in this class.


write

public void write(int c)
           throws java.io.IOException
Description copied from class: java.io.Writer
This method writes a single char to the output stream.


write

public void write(java.lang.String str,
                  int off,
                  int len)
           throws java.io.IOException
Description copied from class: java.io.Writer
This method writes len chars from the String starting at position offset.


write

public void write(java.lang.String str)
           throws java.io.IOException
Description copied from class: java.io.Writer
This method writes all the characters in a String to the output.


reset

public void reset()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).