Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.synchrona.jred.irlap
Class UserString  view UserString download UserString.java

java.lang.Object
  extended bycom.synchrona.jred.irlap.UserString

public class UserString
extends java.lang.Object

supported character encodings


Field Summary
private static int ASCII
           
private static int LATIN1
           
private static int LATIN2
           
private static int LATIN3
           
private static int LATIN4
           
private static int LATIN5
           
private static int LATIN6
           
private static int LATIN7
           
private static int LATIN8
           
private static int LATIN9
           
private  int m_nCharset
           
private  java.lang.String m_strEncoding
           
private  java.lang.String m_string
           
static byte TYPE_CODE
          All of the IrLMP datatypes begin with a one-byte type code.
private static int UNICODE
           
 
Constructor Summary
UserString(int nCharset, byte[] ayBytes, int nOffset, int nLength)
           
UserString(java.lang.String strSource)
           
 
Method Summary
 java.lang.String getString()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_CODE

public static final byte TYPE_CODE
All of the IrLMP datatypes begin with a one-byte type code. The UserString datatype's code in IrLMP 1.1 is 3.

See Also:
Constant Field Values

ASCII

private static final int ASCII
See Also:
Constant Field Values

LATIN1

private static final int LATIN1
See Also:
Constant Field Values

LATIN2

private static final int LATIN2
See Also:
Constant Field Values

LATIN3

private static final int LATIN3
See Also:
Constant Field Values

LATIN4

private static final int LATIN4
See Also:
Constant Field Values

LATIN5

private static final int LATIN5
See Also:
Constant Field Values

LATIN6

private static final int LATIN6
See Also:
Constant Field Values

LATIN7

private static final int LATIN7
See Also:
Constant Field Values

LATIN8

private static final int LATIN8
See Also:
Constant Field Values

LATIN9

private static final int LATIN9
See Also:
Constant Field Values

UNICODE

private static final int UNICODE
See Also:
Constant Field Values

m_nCharset

private int m_nCharset

m_strEncoding

private java.lang.String m_strEncoding

m_string

private java.lang.String m_string
Constructor Detail

UserString

public UserString(java.lang.String strSource)

UserString

public UserString(int nCharset,
                  byte[] ayBytes,
                  int nOffset,
                  int nLength)
           throws java.lang.Exception
Method Detail

getString

public java.lang.String getString()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).