public class MdsMessage extends Object
| Modifier and Type | Field and Description |
|---|---|
byte[] |
body |
byte |
descr_idx |
int[] |
dims |
byte |
dtype |
short |
length |
byte |
message_id |
int |
msglen |
byte |
nargs |
byte |
ndims |
int |
status |
| Constructor and Description |
|---|
MdsMessage() |
MdsMessage(byte c) |
MdsMessage(byte descr_idx,
byte dtype,
byte nargs,
int[] dims,
byte[] body) |
MdsMessage(byte descr_idx,
byte dtype,
byte nargs,
int[] dims,
byte[] body,
Vector<ConnectionListener> v) |
MdsMessage(byte c,
Vector<ConnectionListener> v) |
MdsMessage(String s) |
MdsMessage(String s,
Vector<ConnectionListener> v) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
ByteToInt(byte[] b,
int idx) |
protected int |
ByteToIntSwap(byte[] b,
int idx) |
protected short |
ByteToShort(byte[] b,
int idx) |
protected short |
ByteToShortSwap(byte[] b,
int idx) |
protected void |
dispatchConnectionEvent(ConnectionEvent e) |
protected void |
Flip(byte[] bytes,
int size) |
protected boolean |
IsRoprand(byte[] arr,
int idx) |
protected void |
ReadBuf(byte[] buf,
InputStream dis) |
protected byte[] |
ReadCompressedBuf(InputStream dis) |
void |
Receive(InputStream dis) |
void |
Send(DataOutputStream dos) |
double[] |
ToDoubleArray() |
protected float |
ToFloat(byte[] bytes) |
float[] |
ToFloatArray() |
protected int |
ToInt(byte[] bytes) |
int[] |
ToIntArray() |
long[] |
ToLongArray() |
protected short |
ToShort(byte[] bytes) |
short[] |
ToShortArray() |
String |
ToString() |
long[] |
ToUIntArray() |
int[] |
ToUShortArray() |
void |
useCompression(boolean use_cmp) |
public byte[] body
public byte descr_idx
public final int[] dims
public byte dtype
public short length
public byte message_id
public int msglen
public byte nargs
public byte ndims
public int status
public MdsMessage()
public MdsMessage(byte c)
public MdsMessage(byte descr_idx,
byte dtype,
byte nargs,
int[] dims,
byte[] body)
public MdsMessage(byte descr_idx,
byte dtype,
byte nargs,
int[] dims,
byte[] body,
Vector<ConnectionListener> v)
public MdsMessage(byte c,
Vector<ConnectionListener> v)
public MdsMessage(String s)
public MdsMessage(String s, Vector<ConnectionListener> v)
protected int ByteToInt(byte[] b,
int idx)
protected int ByteToIntSwap(byte[] b,
int idx)
protected short ByteToShort(byte[] b,
int idx)
protected short ByteToShortSwap(byte[] b,
int idx)
protected void dispatchConnectionEvent(ConnectionEvent e)
protected void Flip(byte[] bytes,
int size)
protected final boolean IsRoprand(byte[] arr,
int idx)
protected void ReadBuf(byte[] buf,
InputStream dis)
throws IOException
IOExceptionprotected byte[] ReadCompressedBuf(InputStream dis) throws IOException
IOExceptionpublic void Receive(InputStream dis) throws IOException
IOExceptionpublic void Send(DataOutputStream dos) throws IOException
IOExceptionpublic double[] ToDoubleArray()
throws IOException
IOExceptionprotected float ToFloat(byte[] bytes)
throws IOException
IOExceptionpublic float[] ToFloatArray()
throws IOException
IOExceptionprotected int ToInt(byte[] bytes)
throws IOException
IOExceptionpublic int[] ToIntArray()
throws IOException
IOExceptionpublic long[] ToLongArray()
throws IOException
IOExceptionprotected short ToShort(byte[] bytes)
throws IOException
IOExceptionpublic short[] ToShortArray()
throws IOException
IOExceptionpublic String ToString()
public long[] ToUIntArray()
throws IOException
IOExceptionpublic int[] ToUShortArray()
throws IOException
IOExceptionpublic void useCompression(boolean use_cmp)
Copyright © 2022. All rights reserved.