6 3 4 3 UserSpace Class

LANSA Integrator

6.3.4.3 UserSpace Class

Constructors

 

UserSpace ( String library, String name )

 

Methods

 

String getEncoding ()

 

String check ()

String check ( String authority )

 

boolean create ()

boolean create ( int initialSize )

boolean create ( int initialSize, String description )

boolean create ( int initialSize, String authority, String description )

 

boolean delete ()

 

boolean write ( String data )

boolean write ( byte[] data )

boolean write ( int startPosition, String data )

boolean write ( int startPosition, byte[] data )

 

byte[] read ( int readLength )

byte[] read ( int startPosition, int readLength )

 

String readString ( int readLength )

String readString ( int startPosition, int readLength )

 

Maximum sizes

 

Library length

10 bytes

Name length

10 bytes

Authority length

10 bytes

Description length

50 bytes

Max user space size

16776704 bytes

 

  

Defaults

 

Default user space size

8192 bytes

Default description

"Created by Java Service Manager (JSM)"

Default create authority

*CHANGE

Default check authority

*USE

Default start position

1

 

 

Public static constants

 

AUTHORITY_ALL

*ALL

AUTHORITY_USE

*USE

AUTHORITY_EXCLUDE

*EXCLUDE

AUTHORITY_CHANGE

*CHANGE

AUTHORITY_LIBCRTAUT

*LIBCRTAUT

 

 

Comments

The check method has the same functionality as the DataQueue class.

The write method will convert the Unicode String into bytes using the CCSID of the job.

The read method will read the specified number of bytes from the user space.

The readString method will read the specified number of bytes from the user space and return it as a Unicode string.