org.jsesoft.jse.jsegl
Class JseglRoot

java.lang.Object
  |
  +--org.jsesoft.jse.Root
        |
        +--org.jsesoft.jse.jsegl.JseglRoot
Direct Known Subclasses:
Service

public class JseglRoot
extends Root

Base class of all generated wrapper classes.


This class is the module's base class of all generated wrapper classes. It loads the native library of the module and provides wrappers for all the module's static functions not declared in a class.
DO NOT TOUCH! All changes get lost next time this class is generated.

Version:
Mon Mar 31 08:04:55 2003
Author:
JSESoft

Field Summary
protected static org.apache.log4j.Logger logger
           
protected  java.util.ResourceBundle messages
           
protected  java.util.ResourceBundle resources
           
 
Constructor Summary
protected JseglRoot()
          Default constructor.
protected JseglRoot(int delegate)
          Create a subclass instance from inside native code.
 
Method Summary
static int byteArray2Void(byte[] data)
          Converts byte array to void *.
static int byteBuffer2Void(java.nio.ByteBuffer data)
          Converts byte buffer to void *.
static void destroyVoid(int data, int size)
          Destroys void * data.
protected  int get__Delegate()
          Returns the __delegate value.
static java.lang.String getResourceMessage(java.lang.String key)
          Returns the message specified by key.
static java.lang.String getResourceMessage(java.lang.String key, java.util.ResourceBundle bundle)
          Returns the message specified by key from the specified bundle.
 java.lang.Object getResourceObject(java.lang.String key)
          Returns the resource object specified by key.
 java.lang.String getResourceString(java.lang.String key)
          Returns the resource string specified by key.
protected  void set__Delegate(int value)
          Specifies the __delegate value value.
 void setMessageResourceBundle(java.util.ResourceBundle bundle)
          Specifies the message resource bundle used.
 void setPackageResourceBundle(java.util.ResourceBundle bundle)
          Specifies the package resource bundle used.
static byte[] void2ByteArray(int data, int size)
          Converts void * to byte array.
static java.nio.ByteBuffer void2ByteBuffer(int data, int size)
          Converts void * to byte buffer.
 
Methods inherited from class org.jsesoft.jse.Root
decrementNumber, incrementNumber, intFromByteArray, intToByteArray, longFromByteArray, longToByteArray, shortFromByteArray, shortToByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messages

protected java.util.ResourceBundle messages

resources

protected java.util.ResourceBundle resources

logger

protected static org.apache.log4j.Logger logger
Constructor Detail

JseglRoot

protected JseglRoot(int delegate)
Create a subclass instance from inside native code.
This constructor is used by subclasses to create instances on request of native code only.

Parameters:
delegate - a handle to the related delegate instance

JseglRoot

protected JseglRoot()
Default constructor.
This constructor is used by Java code.

Method Detail

set__Delegate

protected void set__Delegate(int value)
Specifies the __delegate value value.
The delegate is a handle to the wrapper class'es adaptee (the native part of the instance).

Parameters:
value - the new value
See Also:
get__Delegate()

get__Delegate

protected int get__Delegate()
Returns the __delegate value.

Returns:
the actual value
See Also:
set__Delegate(int)

getResourceMessage

public static java.lang.String getResourceMessage(java.lang.String key,
                                                  java.util.ResourceBundle bundle)
Returns the message specified by key from the specified bundle.

Parameters:
bundle - the resource bundle to use
key - the key for the message
Returns:
the message

getResourceMessage

public static java.lang.String getResourceMessage(java.lang.String key)
Returns the message specified by key.

Parameters:
key - the key for the message
Returns:
the message

getResourceString

public java.lang.String getResourceString(java.lang.String key)
Returns the resource string specified by key.

Overrides:
getResourceString in class Root
Parameters:
key - the key for the resource string
Returns:
the resource string

getResourceObject

public java.lang.Object getResourceObject(java.lang.String key)
Returns the resource object specified by key.

Overrides:
getResourceObject in class Root
Parameters:
key - the key for the resource object
Returns:
the resource object

setMessageResourceBundle

public void setMessageResourceBundle(java.util.ResourceBundle bundle)
Specifies the message resource bundle used.

Overrides:
setMessageResourceBundle in class Root
Parameters:
bundle - the message resource bundle to use

setPackageResourceBundle

public void setPackageResourceBundle(java.util.ResourceBundle bundle)
Specifies the package resource bundle used.

Overrides:
setPackageResourceBundle in class Root
Parameters:
bundle - the package resource bundle to use

byteArray2Void

public static int byteArray2Void(byte[] data)
Converts byte array to void *.

Parameters:
data - the byte array
Returns:
the void *

void2ByteArray

public static byte[] void2ByteArray(int data,
                                    int size)
Converts void * to byte array.

Parameters:
data - the void *
size - the size of the data
Returns:
the byte array

destroyVoid

public static void destroyVoid(int data,
                               int size)
Destroys void * data.

Parameters:
data - the void *
size - the size of the data

byteBuffer2Void

public static int byteBuffer2Void(java.nio.ByteBuffer data)
Converts byte buffer to void *.

Parameters:
data - the byte buffer
Returns:
the void *

void2ByteBuffer

public static java.nio.ByteBuffer void2ByteBuffer(int data,
                                                  int size)
Converts void * to byte buffer.

Parameters:
data - void *
Returns:
the byte buffer