2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / gnu / gcj / convert / Output_SJIS.java
blob67470ba7803a4f2a02813d2479024ac2965465e0
1 /* Copyright (C) 1999, 2003 Free Software Foundation
3 This file is part of libgcj.
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
7 details. */
9 package gnu.gcj.convert;
11 /**
12 * Convert Unicode to SJIS (Shift JIS, used on Japanese MS-Windows).
13 * @author Per Bothner <bothner@cygnus.com>
14 * @date April 1999.
17 public class Output_SJIS extends UnicodeToBytes
19 public String getName() { return "SJIS"; }
21 public native int write (char[] inbuffer, int inpos, int inlength);
23 public native int write (String str, int inpos, int inlength, char[] work);
25 public boolean havePendingBytes()
27 return pending >= 0;
30 int pending = -1;