php.java.script
Class OutputStreamWriter

java.lang.Object
  extended by java.io.OutputStream
      extended by php.java.script.DefaultCharsetOutputStreamWriter
          extended by php.java.script.OutputStreamWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public final class OutputStreamWriter
extends DefaultCharsetOutputStreamWriter

A PrintWriter backed by an OutputStream.

Author:
jostb

Constructor Summary
OutputStreamWriter(java.io.Writer out)
          Create a new PhpScriptWriter.
 
Method Summary
 void setEncoding(java.lang.String charsetName)
           
 void write(byte[] b, int off, int len)
           
 
Methods inherited from class php.java.script.DefaultCharsetOutputStreamWriter
close, flush, write
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamWriter

public OutputStreamWriter(java.io.Writer out)
Create a new PhpScriptWriter.

Parameters:
out - The OutputStream
Method Detail

setEncoding

public void setEncoding(java.lang.String charsetName)

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Specified by:
write in class DefaultCharsetOutputStreamWriter
Throws:
java.io.IOException