summaryrefslogtreecommitdiff
path: root/libjava/gnu/gcj/convert/Output_SJIS.java
blob: 67470ba7803a4f2a02813d2479024ac2965465e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* 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.  */

package gnu.gcj.convert;

/**
 * Convert Unicode to SJIS (Shift JIS, used on Japanese MS-Windows).
 * @author Per Bothner <bothner@cygnus.com>
 * @date April 1999.
 */

public class Output_SJIS extends UnicodeToBytes
{
  public String getName() { return "SJIS"; }

  public native int write (char[] inbuffer, int inpos, int inlength);

  public native int write (String str, int inpos, int inlength, char[] work);

  public boolean havePendingBytes()
  {
    return pending >= 0;
  }

  int pending = -1;
}