Platform SDK Java 8.5 API Reference

com.genesyslab.platform.reporting.protocol.runtime
Class BytesBuffer

java.lang.Object
  extended by com.genesyslab.platform.reporting.protocol.runtime.BytesBuffer

public class BytesBuffer
extends java.lang.Object


Constructor Summary
BytesBuffer(byte[] buff, int p)
          Deprecated.  
BytesBuffer(byte[] buff, int p, java.nio.charset.Charset charset)
          Constructor.
 
Method Summary
 byte getByte()
           
 byte[] getBytes()
           
 char getChar()
          Get char and shift pointer.
 java.nio.charset.Charset getCharset()
           
 ConnectionId getConnectionId()
           
 int getDWord()
          Get int (ulong in c++) and to shift pointer on 4 pos`s (GET_ULONG).
 int getPointer()
           
 java.lang.String getString()
          Get string and shift pointer.
 KeyValueCollection getUserData()
          Get user`s TKVList (GET_USER_DATA) and shift pointer.
 int getWord()
          Get short (ushort in C++) value and to shift pointer on 2 pos`s (GET_USHORT).
 boolean isEmpty()
           
 boolean isNull()
           
 void setCharset(java.nio.charset.Charset charset)
           
 void setPointer(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BytesBuffer

@Deprecated
public BytesBuffer(byte[] buff,
                              int p)
Deprecated. 

Constructor.

Parameters:
buff - bytes array
p - shift index from first byte of array
See Also:
BytesBuffer(byte[], int, Charset)

BytesBuffer

public BytesBuffer(byte[] buff,
                   int p,
                   java.nio.charset.Charset charset)
Constructor.

Parameters:
buff - bytes array
p - shift index from first byte of array
charset - charset for string values
Method Detail

isEmpty

public boolean isEmpty()

isNull

public boolean isNull()

getCharset

public java.nio.charset.Charset getCharset()

setCharset

public void setCharset(java.nio.charset.Charset charset)

getBytes

public byte[] getBytes()

getPointer

public int getPointer()

setPointer

public void setPointer(int i)

getByte

public byte getByte()

getWord

public int getWord()
Get short (ushort in C++) value and to shift pointer on 2 pos`s (GET_USHORT).

Returns:
extracted value as int.

getDWord

public int getDWord()
Get int (ulong in c++) and to shift pointer on 4 pos`s (GET_ULONG).

Returns:
extracted value as int.

getConnectionId

public ConnectionId getConnectionId()

getUserData

public KeyValueCollection getUserData()
Get user`s TKVList (GET_USER_DATA) and shift pointer.

Returns:
extracted TKVList or null.

getString

public java.lang.String getString()
Get string and shift pointer.

Returns:
extracted String value or null (if packed string length = 0).

getChar

public char getChar()
Get char and shift pointer.

Returns:
extracted char.

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.