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

ISO8859_1_Writer

public class ISO8859_1_Writer extends StreamWriter
Default class for writing output streams.
version
1.0 10/18/99

Fields Summary
Constructors Summary
Methods Summary
public intsizeOf(char[] array, int offset, int length)
Get the size in bytes of an array of chars

        return length;
    
public synchronized voidwrite(int c)
Write a single character.

exception
IOException If an I/O error occurs

        if(c > 255) {
            c = '?";                // was ---->    throw new RuntimeException("Unknown character "+c);
        }
        out.write(c);
    
public synchronized voidwrite(char[] cbuf, int off, int len)
Write a portion of an array of characters.

param
cbuf Buffer of characters to be written
param
off Offset from which to start reading characters
param
len Number of characters to be written
exception
IOException If an I/O error occurs

        while(len-- > 0) {
            write(cbuf[off++]);
        }
    
public synchronized voidwrite(java.lang.String str, int off, int len)
Write a portion of a string.

param
str String to be written
param
off Offset from which to start reading characters
param
len Number of characters to be written
exception
IOException If an I/O error occurs

        for (int i = 0 ; i < len ; i++) {
            write(str.charAt(off + i));
        }