public class BytesBuffer
extends java.lang.Object
Constructor | Description |
---|---|
BytesBuffer(byte[] buff,
int p) |
Deprecated.
|
BytesBuffer(byte[] buff,
int p,
java.nio.charset.Charset charset) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
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) |
@Deprecated public BytesBuffer(byte[] buff, int p)
buff
- bytes arrayp
- shift index from first byte of arrayBytesBuffer(byte[], int, Charset)
public BytesBuffer(byte[] buff, int p, java.nio.charset.Charset charset)
buff
- bytes arrayp
- shift index from first byte of arraycharset
- charset for string valuespublic boolean isEmpty()
public boolean isNull()
public java.nio.charset.Charset getCharset()
public void setCharset(java.nio.charset.Charset charset)
public byte[] getBytes()
public int getPointer()
public void setPointer(int i)
public byte getByte()
public int getWord()
public int getDWord()
public ConnectionId getConnectionId()
public KeyValueCollection getUserData()
public java.lang.String getString()
public char getChar()
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.