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

Quick Search    Search Deep

com.opensymphony.module.sitemesh.util
Class OutputConverter.ResinWriter  view OutputConverter.ResinWriter download OutputConverter.ResinWriter.java

java.lang.Object
  extended byjava.io.Writer
      extended bycom.opensymphony.module.sitemesh.util.OutputConverter.ResinWriter
Enclosing class:
OutputConverter

static class OutputConverter.ResinWriter
extends java.io.Writer

To get internationalised characters to work on Resin, some conversions need to take place.


Field Summary
private  java.io.CharArrayWriter buffer
           
private  java.io.Writer target
           
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
OutputConverter.ResinWriter(java.io.Writer target)
           
 
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.
 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.
 
Methods inherited from class java.io.Writer
write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

private final java.io.Writer target

buffer

private final java.io.CharArrayWriter buffer
Constructor Detail

OutputConverter.ResinWriter

public OutputConverter.ResinWriter(java.io.Writer target)
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.


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.