FileDocCategorySizeDatePackage
StreamWriter.javaAPI DocJ2ME CLDC 1.11245Wed Feb 05 15:55:58 GMT 2003com.sun.cldc.i18n

StreamWriter

public abstract class StreamWriter extends Writer
General prototype for character converting stream writers.
author
Nik Shaylor
version
1.0 11/16/99

Fields Summary
public OutputStream
out
Output stream to write to
Constructors Summary
Methods Summary
public voidclose()
Close the writer and the output stream.

exception
IOException If an I/O error occurs

        if (out != null) {
            out.close();      
        }
    
public voidflush()
Flush the writer and the output stream.

exception
IOException If an I/O error occurs

        if (out != null) {
            out.flush();   
        }
    
public java.io.Writeropen(java.io.OutputStream out, java.lang.String enc)
Open the writer


        this.out = out;
        return this;
    
public abstract intsizeOf(char[] array, int offset, int length)
Get the size in bytes of an array of chars