Back to index

im-sdk  12.3.91
Static Public Attributes | Package Functions | Static Package Functions | Package Attributes
sun.awt.im.iiimp.StringData Class Reference
Inheritance diagram for sun.awt.im.iiimp.StringData:
Inheritance graph
[legend]
Collaboration diagram for sun.awt.im.iiimp.StringData:
Collaboration graph
[legend]

List of all members.

Static Public Attributes

static final int VERSION = 1
static final int FOURBYTES_PACKET = 0
static final int EIGHTBYTES_PACKET = 1
static final int IM_NO_PROTOCOL = 0
static final int IM_CONNECT = 1
static final int IM_CONNECT_REPLY = 2
static final int IM_DISCONNECT = 3
static final int IM_DISCONNECT_REPLY = 4
static final int IM_REGISTER_TRIGGER_KEYS = 5
static final int IM_TRIGGER_NOTIFY = 6
static final int IM_TRIGGER_NOTIFY_REPLY = 7
static final int IM_SETIMVALUES = 8
static final int IM_SETIMVALUES_REPLY = 9
static final int IM_GETIMVALUES = 10
static final int IM_GETIMVALUES_REPLY = 11
static final int IM_FORWARD_EVENT = 12
static final int IM_FORWARD_EVENT_REPLY = 13
static final int IM_COMMIT_STRING = 14
static final int IM_FORWARD_EVENT_WITH_OPERATIONS = 15
static final int IM_FORWARD_EVENT_WITH_OPERATIONS_REPLY = 16
static final int IM_CREATEIC = 20
static final int IM_CREATEIC_REPLY = 21
static final int IM_DESTROYIC = 22
static final int IM_DESTROYIC_REPLY = 23
static final int IM_SETICVALUES = 24
static final int IM_SETICVALUES_REPLY = 25
static final int IM_GETICVALUES = 26
static final int IM_GETICVALUES_REPLY = 27
static final int IM_SETICFOCUS = 28
static final int IM_SETICFOCUS_REPLY = 29
static final int IM_UNSETICFOCUS = 30
static final int IM_UNSETICFOCUS_REPLY = 31
static final int IM_RESETIC = 32
static final int IM_RESETIC_REPLY = 33
static final int IM_PREEDIT_START = 40
static final int IM_PREEDIT_START_REPLY = 41
static final int IM_PREEDIT_DRAW = 42
static final int IM_PREEDIT_DRAW_REPLY = 43
static final int IM_PREEDIT_DONE = 46
static final int IM_PREEDIT_DONE_REPLY = 47
static final int IM_STATUS_START = 50
static final int IM_STATUS_START_REPLY = 51
static final int IM_STATUS_DRAW = 52
static final int IM_STATUS_DRAW_REPLY = 53
static final int IM_STATUS_DONE = 54
static final int IM_STATUS_DONE_REPLY = 55
static final int IM_LOOKUP_CHOICE_START = 70
static final int IM_LOOKUP_CHOICE_START_REPLY = 71
static final int IM_LOOKUP_CHOICE_DRAW = 72
static final int IM_LOOKUP_CHOICE_DRAW_REPLY = 73
static final int IM_LOOKUP_CHOICE_DONE = 74
static final int IM_LOOKUP_CHOICE_DONE_REPLY = 75
static final int IM_LOOKUP_CHOICE_PROCESS = 76
static final int IM_LOOKUP_CHOICE_PROCESS_REPLY = 77
static final int IM_AUX_START = 90
static final int IM_AUX_START_REPLY = 91
static final int IM_AUX_DRAW = 92
static final int IM_AUX_DRAW_REPLY = 93
static final int IM_AUX_DONE = 94
static final int IM_AUX_DONE_REPLY = 95
static final int IM_AUX_SETVALUES = 96
static final int IM_AUX_SETVALUES_REPLY = 97
static final int BIGENDIAN = 0x42
static final int LITTLEENDIAN = 0x6c
static final int LOOKUP_MAX_NUMBER = 1
static final int LOOKUP_STYLE = 2
static final int QUERY_LOOKUP_STYLE = 3
static final int INPUT_LANGUAGE = 4
static final int PRIMARY_LANGUAGE = 5
static final int STRING = 0
static final int TEXT = 1
static final int KEYEVENT = 2
static final int INPUTMETHOD_LIST = 0x1001
static final int OBJECT_DESCRIPTER_LIST = 0x1010
static final int CLIENT_DESCRIPTER = 0x1011
static final int CCDEF = 0x1030
static final int GUI_OBJECT = 0x1031
static final int LWE_OBJECT = 0x1032
static final int IC_INPUT_LANGUAGE = 1
static final int IC_CHARACTER_SUBSETS = 2
static final int IC_INPUT_METHOD = 3
static final int NOID = -1
static final int GUI_CATEGORY = 0
static final int LWE_CATEGORY = 1
static final int SYNTAX_RULE_CATEGORY = 2
static final int MANAGE_RULE_CATEGORY = 3
static final int DECORATION_FEEDBACK = 0
static final int FOREGROUND_RGB_FEEDBACK = 1
static final int BACKGROUND_RGB_FEEDBACK = 2
static final int UNDERLINE_RGB_FEEDBACK = 3
static final int INPUT_STRING = 0
static final int READING = 1
static final int PART_OF_SPEECH = 2
static final int CLAUSE = 3
static final int IM_OPEN_NS = 80
static final int IM_OPEN_NS_REPLY = 81

Package Functions

 StringData (byte b[], int len)
 StringData (String str) throws IOException
 StringData (ProtocolData d)
String[] toStringArray () throws IOException
String[] toStringArray2 () throws IOException
 StringData (byte b[], int len)
 StringData (String str) throws IOException
 StringData (ProtocolData d)
String[] toStringArray () throws IOException
String[] toStringArray2 () throws IOException
void write (int b) throws IOException
void write (IIIMPOutputStream out)
void write (int b) throws IOException
void write (IIIMPOutputStream out)
void write2 (int b) throws IOException
void write2 (int b) throws IOException
void write4 (int b) throws IOException
void write4 (int b) throws IOException
void writeBytes (byte b[]) throws IOException
void writeBytes (byte b[], int length) throws IOException
void writeBytes (byte b[]) throws IOException
void writeBytes (byte b[], int length) throws IOException
void writeString (String utf) throws IOException
void writeString (String utf) throws IOException
int read () throws IOException
int read (byte b[], int offset, int size) throws IOException
void read (IIIMPInputStream in, int count)
int read () throws IOException
int read (byte b[], int offset, int size) throws IOException
void read (IIIMPInputStream in, int count)
int read2 () throws IOException
int read2 () throws IOException
int read4 () throws IOException
int read4 () throws IOException
String readString () throws IOException
String readString () throws IOException
AnnotationValue[] readStringAnnotationValues (Attribute attribute) throws IOException
AnnotationValue[] readStringAnnotationValues (Attribute attribute) throws IOException
AnnotationValue[] readTextAnnotationValues (Attribute attribute) throws IOException
AnnotationValue[] readTextAnnotationValues (Attribute attribute) throws IOException
void ensureCapacity (int minimumNum)
void ensureCapacity (int minimumNum)
void pad () throws IOException
void pad () throws IOException
void skipBytes (int skip)
void skipBytes (int skip)
int available ()
int available ()

Static Package Functions

static final int paddings (int len)
static final int paddings (int len)

Package Attributes

int pos
int count
byte buf []

Detailed Description

Definition at line 2717 of file ProtocolDriver.java.


Constructor & Destructor Documentation

sun.awt.im.iiimp.StringData.StringData ( byte  b[],
int  len 
) [inline, package]

Definition at line 2719 of file ProtocolDriver.java.

                                  {
       super(b, len);
    }
sun.awt.im.iiimp.StringData.StringData ( String  str) throws IOException [inline, package]

Definition at line 2723 of file ProtocolDriver.java.

                                              {
       super();
       writeString(str);
    }

Here is the call graph for this function:

Definition at line 2728 of file ProtocolDriver.java.

                               {
       super(d);
    }
sun.awt.im.iiimp.StringData.StringData ( byte  b[],
int  len 
) [inline, package]

Definition at line 2743 of file ProtocolDriver.java.

                                  {
       super(b, len);
    }
sun.awt.im.iiimp.StringData.StringData ( String  str) throws IOException [inline, package]

Definition at line 2747 of file ProtocolDriver.java.

                                              {
       super();
       writeString(str);
    }

Here is the call graph for this function:

Definition at line 2752 of file ProtocolDriver.java.

                               {
       super(d);
    }

Member Function Documentation

int sun.awt.im.iiimp.ProtocolData.available ( ) [inline, package, inherited]

Definition at line 319 of file ProtocolData.java.

                    {
       return (count > pos) ? (count - pos) : 0;
    }

Here is the caller graph for this function:

int sun.awt.im.iiimp.ProtocolData.available ( ) [inline, package, inherited]

Definition at line 319 of file ProtocolData.java.

                    {
       return (count > pos) ? (count - pos) : 0;
    }
void sun.awt.im.iiimp.ProtocolData.ensureCapacity ( int  minimumNum) [inline, package, inherited]

Definition at line 289 of file ProtocolData.java.

                                        {
       int maxNum = buf.length;
       if (minimumNum > maxNum) {
           int newNum = (maxNum + 1) * 2;
           if (minimumNum > newNum) {
              newNum = minimumNum;
           }
           byte newValue[] = new byte[newNum];
           System.arraycopy(buf, 0, newValue, 0, count);
           buf = newValue;
       }
    }

Here is the caller graph for this function:

void sun.awt.im.iiimp.ProtocolData.ensureCapacity ( int  minimumNum) [inline, package, inherited]

Definition at line 289 of file ProtocolData.java.

                                        {
       int maxNum = buf.length;
       if (minimumNum > maxNum) {
           int newNum = (maxNum + 1) * 2;
           if (minimumNum > newNum) {
              newNum = minimumNum;
           }
           byte newValue[] = new byte[newNum];
           System.arraycopy(buf, 0, newValue, 0, count);
           buf = newValue;
       }
    }
void sun.awt.im.iiimp.ProtocolData.pad ( ) throws IOException [inline, package, inherited]

Definition at line 306 of file ProtocolData.java.

                                  {
       int pad = paddings(count);
       int total = count + pad;
       for (int i = count; i < total; i++) {
           write(0);
       }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void sun.awt.im.iiimp.ProtocolData.pad ( ) throws IOException [inline, package, inherited]

Definition at line 306 of file ProtocolData.java.

                                  {
       int pad = paddings(count);
       int total = count + pad;
       for (int i = count; i < total; i++) {
           write(0);
       }
    }

Here is the call graph for this function:

static final int sun.awt.im.iiimp.ProtocolData.paddings ( int  len) [inline, static, package, inherited]

Definition at line 302 of file ProtocolData.java.

                                       {
       return ((DATA_BOUNDARY -((len) % DATA_BOUNDARY)) % DATA_BOUNDARY);
    }

Here is the caller graph for this function:

static final int sun.awt.im.iiimp.ProtocolData.paddings ( int  len) [inline, static, package, inherited]

Definition at line 302 of file ProtocolData.java.

                                       {
       return ((DATA_BOUNDARY -((len) % DATA_BOUNDARY)) % DATA_BOUNDARY);
    }
int sun.awt.im.iiimp.ProtocolData.read ( ) throws IOException [inline, package, inherited]

Definition at line 155 of file ProtocolData.java.

                                  {
       if (pos >= count) {
           throw new EOFException();
       }
       int ch = (int) (buf[pos++] & 0x000000FF);
       if (ch < 0) {
           throw new EOFException();
       }
       return ch;
    }
int sun.awt.im.iiimp.ProtocolData.read ( ) throws IOException [inline, package, inherited]

Definition at line 155 of file ProtocolData.java.

                                  {
       if (pos >= count) {
           throw new EOFException();
       }
       int ch = (int) (buf[pos++] & 0x000000FF);
       if (ch < 0) {
           throw new EOFException();
       }
       return ch;
    }

Here is the caller graph for this function:

int sun.awt.im.iiimp.ProtocolData.read ( byte  b[],
int  offset,
int  size 
) throws IOException [inline, package, inherited]

Definition at line 180 of file ProtocolData.java.

                                                                {
       if (size <= 0) {
           return 0;
       }

       int c = read();
       if (c == -1) {
           return -1;
       }
       b[offset] = (byte) c;

       int i = 1;
       try {
           for (; i < size ; i++) {
              c = read();
              if (c == -1) {
                  break;
              }
              if (b != null) {
                  b[offset + i] = (byte) c;
              }
           }
       } catch (IOException ee) {
       }
       return i;
    }

Here is the call graph for this function:

int sun.awt.im.iiimp.ProtocolData.read ( byte  b[],
int  offset,
int  size 
) throws IOException [inline, package, inherited]

Definition at line 180 of file ProtocolData.java.

                                                                {
       if (size <= 0) {
           return 0;
       }

       int c = read();
       if (c == -1) {
           return -1;
       }
       b[offset] = (byte) c;

       int i = 1;
       try {
           for (; i < size ; i++) {
              c = read();
              if (c == -1) {
                  break;
              }
              if (b != null) {
                  b[offset + i] = (byte) c;
              }
           }
       } catch (IOException ee) {
       }
       return i;
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.ProtocolData.read ( IIIMPInputStream  in,
int  count 
) [inline, package, inherited]

Definition at line 323 of file ProtocolData.java.

                                              {
        try {
            pos = 0;
        
            this.count = count;
        
            buf = new byte[count];
            
            in.readFully(buf);
        } catch(IOException e) {
            debug("e = " + e);
        }
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.ProtocolData.read ( IIIMPInputStream  in,
int  count 
) [inline, package, inherited]

Definition at line 323 of file ProtocolData.java.

                                              {
        try {
            pos = 0;
        
            this.count = count;
        
            buf = new byte[count];
            
            in.readFully(buf);
        } catch(IOException e) {
            debug("e = " + e);
        }
    }

Here is the call graph for this function:

int sun.awt.im.iiimp.ProtocolData.read2 ( ) throws IOException [inline, package, inherited]

Definition at line 166 of file ProtocolData.java.

                                   {
       int ch1 = read();
       int ch2 = read();
       return (ch1 << 8) + (ch2 << 0);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

int sun.awt.im.iiimp.ProtocolData.read2 ( ) throws IOException [inline, package, inherited]

Definition at line 166 of file ProtocolData.java.

                                   {
       int ch1 = read();
       int ch2 = read();
       return (ch1 << 8) + (ch2 << 0);
    }

Here is the call graph for this function:

int sun.awt.im.iiimp.ProtocolData.read4 ( ) throws IOException [inline, package, inherited]

Definition at line 172 of file ProtocolData.java.

                                   {
       int ch1 = read();
       int ch2 = read();
       int ch3 = read();
       int ch4 = read();
       return ((ch1 << 24) + (ch2 << 16) + (ch3 << 8) + (ch4 << 0));
    }

Here is the call graph for this function:

Here is the caller graph for this function:

int sun.awt.im.iiimp.ProtocolData.read4 ( ) throws IOException [inline, package, inherited]

Definition at line 172 of file ProtocolData.java.

                                   {
       int ch1 = read();
       int ch2 = read();
       int ch3 = read();
       int ch4 = read();
       return ((ch1 << 24) + (ch2 << 16) + (ch3 << 8) + (ch4 << 0));
    }

Here is the call graph for this function:

String sun.awt.im.iiimp.ProtocolData.readString ( ) throws IOException [inline, package, inherited]

Definition at line 207 of file ProtocolData.java.

                                           {
       int len = read2();
       if (len == 0) {
           // need to read 2 bytes for padding
           read2();
           return (String)null;
       }

       int utflen = len / 2;
        char str[] = new char[utflen];
       int i = 0;
       while (i < utflen) {
           int ch1 = read();
           int ch2 = read();
           str[i++] = (char) ((ch1 << 8) + (ch2 << 0));
       }
       int pad = paddings(len + 2);
       for (int j = 0; j < pad; j++) {
           read();
       }
        return new String(str, 0, utflen);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

String sun.awt.im.iiimp.ProtocolData.readString ( ) throws IOException [inline, package, inherited]

Definition at line 207 of file ProtocolData.java.

                                           {
       int len = read2();
       if (len == 0) {
           // need to read 2 bytes for padding
           read2();
           return (String)null;
       }

       int utflen = len / 2;
        char str[] = new char[utflen];
       int i = 0;
       while (i < utflen) {
           int ch1 = read();
           int ch2 = read();
           str[i++] = (char) ((ch1 << 8) + (ch2 << 0));
       }
       int pad = paddings(len + 2);
       for (int j = 0; j < pad; j++) {
           read();
       }
        return new String(str, 0, utflen);
    }

Here is the call graph for this function:

AnnotationValue [] sun.awt.im.iiimp.ProtocolData.readStringAnnotationValues ( Attribute  attribute) throws IOException [inline, package, inherited]

Definition at line 230 of file ProtocolData.java.

                          {
       int size = read4();
       if (size < 4 * 3) {
           // size must be bigger than start+end+value_size
           skipBytes(size);
           return null;
       }
       HashSet hs = new HashSet();
       while (size > 0) {
           int start = read4();
           int end = read4();
           int len = read4();
           String value = readString();
           pad();
           hs.add(new AnnotationValue(start, end, attribute, value));
       }
       Object[] oa = hs.toArray();
       AnnotationValue[] ava = new AnnotationValue[oa.length];
       for (int i = 0; i < oa.length; i++) {
           ava[i] = (AnnotationValue)oa[i];
       }

       return ava;
    }

Here is the call graph for this function:

AnnotationValue [] sun.awt.im.iiimp.ProtocolData.readStringAnnotationValues ( Attribute  attribute) throws IOException [inline, package, inherited]

Definition at line 230 of file ProtocolData.java.

                          {
       int size = read4();
       if (size < 4 * 3) {
           // size must be bigger than start+end+value_size
           skipBytes(size);
           return null;
       }
       HashSet hs = new HashSet();
       while (size > 0) {
           int start = read4();
           int end = read4();
           int len = read4();
           String value = readString();
           pad();
           hs.add(new AnnotationValue(start, end, attribute, value));
       }
       Object[] oa = hs.toArray();
       AnnotationValue[] ava = new AnnotationValue[oa.length];
       for (int i = 0; i < oa.length; i++) {
           ava[i] = (AnnotationValue)oa[i];
       }

       return ava;
    }

Here is the call graph for this function:

AnnotationValue [] sun.awt.im.iiimp.ProtocolData.readTextAnnotationValues ( Attribute  attribute) throws IOException [inline, package, inherited]

Definition at line 256 of file ProtocolData.java.

                          {
       int size = read4();
       if (size < 4 * 3) { 
           // size must be bigger than start+end+value_size
           skipBytes(size);
           return null;
       }
       HashSet hs = new HashSet();
       while (size > 0) {
           int start = read4();
           int end = read4();
           int len = read4();
           int feedbackCharLen = read4();
           StringBuffer sb = new StringBuffer();
           while (feedbackCharLen > 0) {
              sb.append(read2());
              int sk = read2();
              skipBytes(sk);
           }
           String value = sb.toString();
           pad();
           hs.add(new AnnotationValue(start, end, attribute, value));
       }
       Object[] oa = hs.toArray();
       AnnotationValue[] ava = new AnnotationValue[oa.length];
       for (int i = 0; i < oa.length; i++) {
           ava[i] = (AnnotationValue)oa[i];
       }

       return ava;
    }

Here is the call graph for this function:

AnnotationValue [] sun.awt.im.iiimp.ProtocolData.readTextAnnotationValues ( Attribute  attribute) throws IOException [inline, package, inherited]

Definition at line 256 of file ProtocolData.java.

                          {
       int size = read4();
       if (size < 4 * 3) { 
           // size must be bigger than start+end+value_size
           skipBytes(size);
           return null;
       }
       HashSet hs = new HashSet();
       while (size > 0) {
           int start = read4();
           int end = read4();
           int len = read4();
           int feedbackCharLen = read4();
           StringBuffer sb = new StringBuffer();
           while (feedbackCharLen > 0) {
              sb.append(read2());
              int sk = read2();
              skipBytes(sk);
           }
           String value = sb.toString();
           pad();
           hs.add(new AnnotationValue(start, end, attribute, value));
       }
       Object[] oa = hs.toArray();
       AnnotationValue[] ava = new AnnotationValue[oa.length];
       for (int i = 0; i < oa.length; i++) {
           ava[i] = (AnnotationValue)oa[i];
       }

       return ava;
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.ProtocolData.skipBytes ( int  skip) [inline, package, inherited]

Definition at line 314 of file ProtocolData.java.

                             {
       int num = (count < (pos + skip)) ? (count - pos) : skip;
       pos += num;
    }

Here is the caller graph for this function:

void sun.awt.im.iiimp.ProtocolData.skipBytes ( int  skip) [inline, package, inherited]

Definition at line 314 of file ProtocolData.java.

                             {
       int num = (count < (pos + skip)) ? (count - pos) : skip;
       pos += num;
    }
String [] sun.awt.im.iiimp.StringData.toStringArray ( ) throws IOException [inline, package]

Definition at line 2732 of file ProtocolDriver.java.

                                                {
       final int MAX = 8;

       // reads the length of string to follow
       int len = read2();
       if (len == 0) {
           return (String[]) null;
       }

       int upto = pos + len;

       int num = 0;
       int num_array = MAX;
       String[] array = new String[num_array];

       for (; pos < upto; num++) {
           if (num == num_array) {
              num_array += MAX;
              String[] tmp = new String[num_array];
              System.arraycopy(array, 0, tmp, 0, num);
              array = tmp;
           }
           array[num] = readString();
       }

       // Shrink array to make the right size
       if (array.length != num) {
           String tmp[] = new String[num];
           System.arraycopy(array, 0, tmp, 0, num);
           array = tmp;
       }

       return array;
    }

Here is the call graph for this function:

Here is the caller graph for this function:

String [] sun.awt.im.iiimp.StringData.toStringArray ( ) throws IOException [inline, package]

Definition at line 2756 of file ProtocolDriver.java.

                                                {
       final int MAX = 8;

       // reads the length of string to follow
       int len = read2();
       if (len == 0) {
           return (String[]) null;
       }

       int upto = pos + len;

       int num = 0;
       int num_array = MAX;
       String[] array = new String[num_array];

       for (; pos < upto; num++) {
           if (num == num_array) {
              num_array += MAX;
              String[] tmp = new String[num_array];
              System.arraycopy(array, 0, tmp, 0, num);
              array = tmp;
           }
           array[num] = readString();
       }

       // Shrink array to make the right size
       if (array.length != num) {
           String tmp[] = new String[num];
           System.arraycopy(array, 0, tmp, 0, num);
           array = tmp;
       }

       return array;
    }

Here is the call graph for this function:

String [] sun.awt.im.iiimp.StringData.toStringArray2 ( ) throws IOException [inline, package]

Definition at line 2767 of file ProtocolDriver.java.

                                                 {
       final int MAX = 8;

       // reads the length of string to follow
       int len = read4();
       if (len == 0) {
           return (String[]) null;
       }

       int upto = pos + len;

       int num = 0;
       int num_array = MAX;
       String[] array = new String[num_array];

       for (; pos < upto; num++) {
           if (num == num_array) {
              num_array += MAX;
              String[] tmp = new String[num_array];
              System.arraycopy(array, 0, tmp, 0, num);
              array = tmp;
           }
           array[num] = readString();
       }

       // Shrink array to make the right size
       if (array.length != num) {
           String tmp[] = new String[num];
           System.arraycopy(array, 0, tmp, 0, num);
           array = tmp;
       }

       return array;
    }

Here is the call graph for this function:

Here is the caller graph for this function:

String [] sun.awt.im.iiimp.StringData.toStringArray2 ( ) throws IOException [inline, package]

Definition at line 2791 of file ProtocolDriver.java.

                                                 {
       final int MAX = 8;

       // reads the length of string to follow
       int len = read4();
       if (len == 0) {
           return (String[]) null;
       }

       int upto = pos + len;

       int num = 0;
       int num_array = MAX;
       String[] array = new String[num_array];

       for (; pos < upto; num++) {
           if (num == num_array) {
              num_array += MAX;
              String[] tmp = new String[num_array];
              System.arraycopy(array, 0, tmp, 0, num);
              array = tmp;
           }
           array[num] = readString();
       }

       // Shrink array to make the right size
       if (array.length != num) {
           String tmp[] = new String[num];
           System.arraycopy(array, 0, tmp, 0, num);
           array = tmp;
       }

       return array;
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.ProtocolData.write ( int  b) throws IOException [inline, package, inherited]

Definition at line 103 of file ProtocolData.java.

                                         {
       ensureCapacity(count + 1);
       buf[count++] = (byte) (b & 0xFF);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void sun.awt.im.iiimp.ProtocolData.write ( int  b) throws IOException [inline, package, inherited]

Definition at line 103 of file ProtocolData.java.

                                         {
       ensureCapacity(count + 1);
       buf[count++] = (byte) (b & 0xFF);
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.ProtocolData.write ( IIIMPOutputStream  out) [inline, package, inherited]

Definition at line 337 of file ProtocolData.java.

                                      {
        try {
            out.write(buf, 0 , count);
        } catch(IOException e) {
            debug("e = " + e);
        }
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.ProtocolData.write ( IIIMPOutputStream  out) [inline, package, inherited]

Definition at line 337 of file ProtocolData.java.

                                      {
        try {
            out.write(buf, 0 , count);
        } catch(IOException e) {
            debug("e = " + e);
        }
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.ProtocolData.write2 ( int  b) throws IOException [inline, package, inherited]

Definition at line 108 of file ProtocolData.java.

                                          {
       ensureCapacity(count + 2);
       buf[count++] = (byte) ((b >>> 8) & 0xFF);
       buf[count++] = (byte) ((b >>> 0) & 0xFF);
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.ProtocolData.write2 ( int  b) throws IOException [inline, package, inherited]

Definition at line 108 of file ProtocolData.java.

                                          {
       ensureCapacity(count + 2);
       buf[count++] = (byte) ((b >>> 8) & 0xFF);
       buf[count++] = (byte) ((b >>> 0) & 0xFF);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void sun.awt.im.iiimp.ProtocolData.write4 ( int  b) throws IOException [inline, package, inherited]

Definition at line 114 of file ProtocolData.java.

                                          {
       ensureCapacity(count + 4);
       buf[count++] = (byte) ((b >>> 24) & 0xFF);
       buf[count++] = (byte) ((b >>> 16) & 0xFF);
       buf[count++] = (byte) ((b >>>  8) & 0xFF);
       buf[count++] = (byte) ((b >>>  0) & 0xFF);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void sun.awt.im.iiimp.ProtocolData.write4 ( int  b) throws IOException [inline, package, inherited]

Definition at line 114 of file ProtocolData.java.

                                          {
       ensureCapacity(count + 4);
       buf[count++] = (byte) ((b >>> 24) & 0xFF);
       buf[count++] = (byte) ((b >>> 16) & 0xFF);
       buf[count++] = (byte) ((b >>>  8) & 0xFF);
       buf[count++] = (byte) ((b >>>  0) & 0xFF);
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.ProtocolData.writeBytes ( byte  b[]) throws IOException [inline, package, inherited]

Definition at line 122 of file ProtocolData.java.

                                                 {
       ensureCapacity(count + b.length);
       System.arraycopy(b, 0, buf, count, b.length);
       count += b.length;
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void sun.awt.im.iiimp.ProtocolData.writeBytes ( byte  b[]) throws IOException [inline, package, inherited]

Definition at line 122 of file ProtocolData.java.

                                                 {
       ensureCapacity(count + b.length);
       System.arraycopy(b, 0, buf, count, b.length);
       count += b.length;
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.ProtocolData.writeBytes ( byte  b[],
int  length 
) throws IOException [inline, package, inherited]

Definition at line 128 of file ProtocolData.java.

                                                             {
       ensureCapacity(count + length);
       System.arraycopy(b, 0, buf, count, length);
       count += length;
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.ProtocolData.writeBytes ( byte  b[],
int  length 
) throws IOException [inline, package, inherited]

Definition at line 128 of file ProtocolData.java.

                                                             {
       ensureCapacity(count + length);
       System.arraycopy(b, 0, buf, count, length);
       count += length;
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.ProtocolData.writeString ( String  utf) throws IOException [inline, package, inherited]

Definition at line 134 of file ProtocolData.java.

                                                    {
       int utflen = utf.length();
       int len = utflen * 2;

       write2(len);

       int pad = paddings(len + 2);

       ensureCapacity(count + len + pad);

       for (int i = 0 ; i < utflen ; i++) {
           char c = utf.charAt(i);
           buf[count++] = (byte) ((c >>  8) & 0xFF);
           buf[count++] = (byte) ((c >>  0) & 0xFF);
       }

       for (int j = 0; j < pad; j++) {
           buf[count++] = (byte) 0;
       }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void sun.awt.im.iiimp.ProtocolData.writeString ( String  utf) throws IOException [inline, package, inherited]

Definition at line 134 of file ProtocolData.java.

                                                    {
       int utflen = utf.length();
       int len = utflen * 2;

       write2(len);

       int pad = paddings(len + 2);

       ensureCapacity(count + len + pad);

       for (int i = 0 ; i < utflen ; i++) {
           char c = utf.charAt(i);
           buf[count++] = (byte) ((c >>  8) & 0xFF);
           buf[count++] = (byte) ((c >>  0) & 0xFF);
       }

       for (int j = 0; j < pad; j++) {
           buf[count++] = (byte) 0;
       }
    }

Here is the call graph for this function:


Member Data Documentation

static final int IIIMProtocol.BACKGROUND_RGB_FEEDBACK = 2 [static, inherited]

Definition at line 153 of file IIIMProtocol.java.

static final int IIIMProtocol.BIGENDIAN = 0x42 [static, inherited]

Definition at line 116 of file IIIMProtocol.java.

byte sun.awt.im.iiimp.ProtocolData.buf [package, inherited]

Definition at line 54 of file ProtocolData.java.

static final int IIIMProtocol.CCDEF = 0x1030 [static, inherited]

Definition at line 134 of file IIIMProtocol.java.

static final int IIIMProtocol.CLAUSE = 3 [static, inherited]

Definition at line 160 of file IIIMProtocol.java.

static final int IIIMProtocol.CLIENT_DESCRIPTER = 0x1011 [static, inherited]

Definition at line 133 of file IIIMProtocol.java.

int sun.awt.im.iiimp.ProtocolData.count [package, inherited]

Definition at line 53 of file ProtocolData.java.

static final int IIIMProtocol.DECORATION_FEEDBACK = 0 [static, inherited]

Definition at line 151 of file IIIMProtocol.java.

static final int IIIMProtocol.EIGHTBYTES_PACKET = 1 [static, inherited]

Definition at line 52 of file IIIMProtocol.java.

static final int IIIMProtocol.FOREGROUND_RGB_FEEDBACK = 1 [static, inherited]

Definition at line 152 of file IIIMProtocol.java.

static final int IIIMProtocol.FOURBYTES_PACKET = 0 [static, inherited]

Definition at line 51 of file IIIMProtocol.java.

static final int IIIMProtocol.GUI_CATEGORY = 0 [static, inherited]

Definition at line 145 of file IIIMProtocol.java.

static final int IIIMProtocol.GUI_OBJECT = 0x1031 [static, inherited]

Definition at line 135 of file IIIMProtocol.java.

static final int IIIMProtocol.IC_CHARACTER_SUBSETS = 2 [static, inherited]

Definition at line 140 of file IIIMProtocol.java.

static final int IIIMProtocol.IC_INPUT_LANGUAGE = 1 [static, inherited]

Definition at line 139 of file IIIMProtocol.java.

static final int IIIMProtocol.IC_INPUT_METHOD = 3 [static, inherited]

Definition at line 141 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_AUX_DONE = 94 [static, inherited]

Definition at line 110 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_AUX_DONE_REPLY = 95 [static, inherited]

Definition at line 111 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_AUX_DRAW = 92 [static, inherited]

Definition at line 108 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_AUX_DRAW_REPLY = 93 [static, inherited]

Definition at line 109 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_AUX_SETVALUES = 96 [static, inherited]

Definition at line 112 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_AUX_SETVALUES_REPLY = 97 [static, inherited]

Definition at line 113 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_AUX_START = 90 [static, inherited]

Definition at line 106 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_AUX_START_REPLY = 91 [static, inherited]

Definition at line 107 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_COMMIT_STRING = 14 [static, inherited]

Definition at line 69 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_CONNECT = 1 [static, inherited]

Definition at line 56 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_CONNECT_REPLY = 2 [static, inherited]

Definition at line 57 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_CREATEIC = 20 [static, inherited]

Definition at line 72 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_CREATEIC_REPLY = 21 [static, inherited]

Definition at line 73 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_DESTROYIC = 22 [static, inherited]

Definition at line 74 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_DESTROYIC_REPLY = 23 [static, inherited]

Definition at line 75 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_DISCONNECT = 3 [static, inherited]

Definition at line 58 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_DISCONNECT_REPLY = 4 [static, inherited]

Definition at line 59 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_FORWARD_EVENT = 12 [static, inherited]

Definition at line 67 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_FORWARD_EVENT_REPLY = 13 [static, inherited]

Definition at line 68 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_FORWARD_EVENT_WITH_OPERATIONS = 15 [static, inherited]

Definition at line 70 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_FORWARD_EVENT_WITH_OPERATIONS_REPLY = 16 [static, inherited]

Definition at line 71 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_GETICVALUES = 26 [static, inherited]

Definition at line 78 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_GETICVALUES_REPLY = 27 [static, inherited]

Definition at line 79 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_GETIMVALUES = 10 [static, inherited]

Definition at line 65 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_GETIMVALUES_REPLY = 11 [static, inherited]

Definition at line 66 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_LOOKUP_CHOICE_DONE = 74 [static, inherited]

Definition at line 102 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_LOOKUP_CHOICE_DONE_REPLY = 75 [static, inherited]

Definition at line 103 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_LOOKUP_CHOICE_DRAW = 72 [static, inherited]

Definition at line 100 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_LOOKUP_CHOICE_DRAW_REPLY = 73 [static, inherited]

Definition at line 101 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_LOOKUP_CHOICE_PROCESS = 76 [static, inherited]

Definition at line 104 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_LOOKUP_CHOICE_PROCESS_REPLY = 77 [static, inherited]

Definition at line 105 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_LOOKUP_CHOICE_START = 70 [static, inherited]

Definition at line 98 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_LOOKUP_CHOICE_START_REPLY = 71 [static, inherited]

Definition at line 99 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_NO_PROTOCOL = 0 [static, inherited]

Definition at line 55 of file IIIMProtocol.java.

final int sun.awt.im.iiimp.IIIMProtocol.IM_OPEN_NS = 80 [static, inherited]

Definition at line 107 of file IIIMProtocol.java.

final int sun.awt.im.iiimp.IIIMProtocol.IM_OPEN_NS_REPLY = 81 [static, inherited]

Definition at line 108 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_PREEDIT_DONE = 46 [static, inherited]

Definition at line 90 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_PREEDIT_DONE_REPLY = 47 [static, inherited]

Definition at line 91 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_PREEDIT_DRAW = 42 [static, inherited]

Definition at line 88 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_PREEDIT_DRAW_REPLY = 43 [static, inherited]

Definition at line 89 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_PREEDIT_START = 40 [static, inherited]

Definition at line 86 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_PREEDIT_START_REPLY = 41 [static, inherited]

Definition at line 87 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_REGISTER_TRIGGER_KEYS = 5 [static, inherited]

Definition at line 60 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_RESETIC = 32 [static, inherited]

Definition at line 84 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_RESETIC_REPLY = 33 [static, inherited]

Definition at line 85 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_SETICFOCUS = 28 [static, inherited]

Definition at line 80 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_SETICFOCUS_REPLY = 29 [static, inherited]

Definition at line 81 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_SETICVALUES = 24 [static, inherited]

Definition at line 76 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_SETICVALUES_REPLY = 25 [static, inherited]

Definition at line 77 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_SETIMVALUES = 8 [static, inherited]

Definition at line 63 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_SETIMVALUES_REPLY = 9 [static, inherited]

Definition at line 64 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_STATUS_DONE = 54 [static, inherited]

Definition at line 96 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_STATUS_DONE_REPLY = 55 [static, inherited]

Definition at line 97 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_STATUS_DRAW = 52 [static, inherited]

Definition at line 94 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_STATUS_DRAW_REPLY = 53 [static, inherited]

Definition at line 95 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_STATUS_START = 50 [static, inherited]

Definition at line 92 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_STATUS_START_REPLY = 51 [static, inherited]

Definition at line 93 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_TRIGGER_NOTIFY = 6 [static, inherited]

Definition at line 61 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_TRIGGER_NOTIFY_REPLY = 7 [static, inherited]

Definition at line 62 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_UNSETICFOCUS = 30 [static, inherited]

Definition at line 82 of file IIIMProtocol.java.

static final int IIIMProtocol.IM_UNSETICFOCUS_REPLY = 31 [static, inherited]

Definition at line 83 of file IIIMProtocol.java.

static final int IIIMProtocol.INPUT_LANGUAGE = 4 [static, inherited]

Definition at line 122 of file IIIMProtocol.java.

static final int IIIMProtocol.INPUT_STRING = 0 [static, inherited]

Definition at line 157 of file IIIMProtocol.java.

static final int IIIMProtocol.INPUTMETHOD_LIST = 0x1001 [static, inherited]

Definition at line 131 of file IIIMProtocol.java.

static final int IIIMProtocol.KEYEVENT = 2 [static, inherited]

Definition at line 128 of file IIIMProtocol.java.

static final int IIIMProtocol.LITTLEENDIAN = 0x6c [static, inherited]

Definition at line 117 of file IIIMProtocol.java.

static final int IIIMProtocol.LOOKUP_MAX_NUMBER = 1 [static, inherited]

Definition at line 119 of file IIIMProtocol.java.

static final int IIIMProtocol.LOOKUP_STYLE = 2 [static, inherited]

Definition at line 120 of file IIIMProtocol.java.

static final int IIIMProtocol.LWE_CATEGORY = 1 [static, inherited]

Definition at line 146 of file IIIMProtocol.java.

static final int IIIMProtocol.LWE_OBJECT = 0x1032 [static, inherited]

Definition at line 136 of file IIIMProtocol.java.

static final int IIIMProtocol.MANAGE_RULE_CATEGORY = 3 [static, inherited]

Definition at line 148 of file IIIMProtocol.java.

static final int IIIMProtocol.NOID = -1 [static, inherited]

Definition at line 144 of file IIIMProtocol.java.

static final int IIIMProtocol.OBJECT_DESCRIPTER_LIST = 0x1010 [static, inherited]

Definition at line 132 of file IIIMProtocol.java.

static final int IIIMProtocol.PART_OF_SPEECH = 2 [static, inherited]

Definition at line 159 of file IIIMProtocol.java.

int sun.awt.im.iiimp.ProtocolData.pos [package, inherited]

Definition at line 52 of file ProtocolData.java.

static final int IIIMProtocol.PRIMARY_LANGUAGE = 5 [static, inherited]

Definition at line 123 of file IIIMProtocol.java.

static final int IIIMProtocol.QUERY_LOOKUP_STYLE = 3 [static, inherited]

Definition at line 121 of file IIIMProtocol.java.

static final int IIIMProtocol.READING = 1 [static, inherited]

Definition at line 158 of file IIIMProtocol.java.

static final int IIIMProtocol.STRING = 0 [static, inherited]

Definition at line 126 of file IIIMProtocol.java.

static final int IIIMProtocol.SYNTAX_RULE_CATEGORY = 2 [static, inherited]

Definition at line 147 of file IIIMProtocol.java.

static final int IIIMProtocol.TEXT = 1 [static, inherited]

Definition at line 127 of file IIIMProtocol.java.

static final int IIIMProtocol.UNDERLINE_RGB_FEEDBACK = 3 [static, inherited]

Definition at line 154 of file IIIMProtocol.java.

static final int IIIMProtocol.VERSION = 1 [static, inherited]

Definition at line 48 of file IIIMProtocol.java.


The documentation for this class was generated from the following files: