FileDocCategorySizeDatePackage
StreamWriter.javaAPI DocphoneME MR2 API (J2ME)2129Wed May 02 17:59:54 BST 2007com.sun.cldc.i18n

StreamWriter

public abstract class StreamWriter extends Writer
General prototype for character converting stream writers.
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