gnu.gcj.convert

Class Output_ASCII


public class Output_ASCII
extends UnicodeToBytes

Convert Unicode ASCII Unrecognized characters are printed as `?'.

Field Summary

Fields inherited from class gnu.gcj.convert.UnicodeToBytes

buf, count

Fields inherited from class gnu.gcj.convert.IOConverter

iconv_byte_swap

Method Summary

String
getName()
int
write(char[] inbuffer, int inpos, int inlength)
int
write(String str, int inpos, int inlength, char[] work)
Convert chars to bytes.

Methods inherited from class gnu.gcj.convert.UnicodeToBytes

done, getDefaultEncoder, getEncoder, getName, havePendingBytes, setFinished, setOutput, write, write

Methods inherited from class gnu.gcj.convert.IOConverter

canonicalize

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

getName

public String getName()
Overrides:
getName in interface UnicodeToBytes

write

public int write(char[] inbuffer,
                 int inpos,
                 int inlength)
Overrides:
write in interface UnicodeToBytes
Returns:
number of chars converted.

write

public int write(String str,
                 int inpos,
                 int inlength,
                 char[] work)
Convert chars to bytes. Converted bytes are written to buf, starting at count.
Overrides:
write in interface UnicodeToBytes
Parameters:
str - source of characters to convert
inpos - index of initial character in str to convert
inlength - number of characters to convert
work - if non-null, a buffer than can be used
Returns:
number of chars converted Also, this.count is increment by the number of bytes converted.

Copyright (C) 2000 Free Software Foundation This file is part of libgcj. This software is copyrighted work licensed under the terms of the Libgcj License. Please consult the file "LIBGCJ_LICENSE" for details.