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

 class OutputStreamWriter
extends DefaultCharsetOutputStreamWriter

A PrintWriter backed by an OutputStream.

Author:
jostb

Field Summary
protected  java.lang.String charsetName
           
 
Fields inherited from class php.java.script.DefaultCharsetOutputStreamWriter
out
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

charsetName

protected java.lang.String charsetName
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