php.java.script
Class DefaultCharsetOutputStreamWriter

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

public abstract class DefaultCharsetOutputStreamWriter
extends java.io.OutputStream

A PrintWriter backed by an OutputStream.

Author:
jostb

Constructor Summary
DefaultCharsetOutputStreamWriter(java.io.Writer out)
          Create a new PhpScriptWriter.
 
Method Summary
 void close()
           
 void flush()
           
abstract  void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
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

DefaultCharsetOutputStreamWriter

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

Parameters:
out - The OutputStream
Method Detail

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public abstract void write(byte[] b,
                           int off,
                           int len)
                    throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException