gnu.gcj.convert
Class Output_SJIS
Convert Unicode to SJIS (Shift JIS, used on Japanese MS-Windows).
String | getName()
|
boolean | havePendingBytes() - Returns true when the converter has consumed some bytes that are
not yet converted to characters because further continuation
bytes are needed.
|
int | write(char[] inbuffer, int inpos, int inlength) - Convert chars to bytes.
|
int | write(String str, int inpos, int inlength, char[] work) - Convert chars to bytes.
|
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
havePendingBytes
public boolean havePendingBytes()
Returns true when the converter has consumed some bytes that are
not yet converted to characters because further continuation
bytes are needed. Defaults to false, should be overridden by
decoders that internally store some bytes.
- havePendingBytes in interface UnicodeToBytes
write
public int write(char[] inbuffer,
int inpos,
int inlength)
Convert chars to bytes.
Converted bytes are written to buf, starting at count.
- write in interface UnicodeToBytes
inbuffer
- source of characters to convertinpos
- index of initial character in inbuffer to convertinlength
- number of characters to convert
- number of chars converted
Also, this.count is increment by the number of bytes 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.
- write in interface UnicodeToBytes
str
- source of characters to convertinpos
- index of initial character in str to convertinlength
- number of characters to convertwork
- if non-null, a buffer than can be used
- number of chars converted
Also, this.count is increment by the number of bytes converted.
Copyright (C) 1999, 2003 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.