use of com.swiftmq.tools.util.DataByteArrayInputStream in project swiftmq-client by iitsoftware.
the class AuthResponseRequest method readContent.
/**
* Read the content of this object from the stream.
*
* @param in input stream
* @throws IOException if an error occurs
*/
public void readContent(DataInput in) throws IOException {
super.readContent(in);
byte set = in.readByte();
if (set == 0) {
response = null;
} else {
try {
byte[] b = new byte[in.readInt()];
in.readFully(b);
response = (Serializable) (new ObjectInputStream(new DataByteArrayInputStream(b))).readObject();
} catch (ClassNotFoundException ignored) {
}
}
}
use of com.swiftmq.tools.util.DataByteArrayInputStream in project swiftmq-client by iitsoftware.
the class GetAuthChallengeReply method readContent.
/**
* Read the content of this object from the stream.
*
* @param in input stream
* @throws IOException if an error occurs
*/
public void readContent(DataInput in) throws IOException {
super.readContent(in);
byte set = in.readByte();
if (set == 0) {
challenge = null;
} else {
try {
byte[] b = new byte[in.readInt()];
in.readFully(b);
challenge = (Serializable) (new ObjectInputStream(new DataByteArrayInputStream(b))).readObject();
} catch (ClassNotFoundException ignored) {
}
}
set = in.readByte();
if (set == 0) {
challengeResponseFactoryClass = null;
} else {
challengeResponseFactoryClass = in.readUTF();
}
}
use of com.swiftmq.tools.util.DataByteArrayInputStream in project swiftmq-client by iitsoftware.
the class GenericReply method readContent.
/**
* Read the content of this object from the stream.
*
* @param in input stream
* @throws IOException if an error occurs
*/
public void readContent(DataInput in) throws IOException {
super.readContent(in);
byte set = in.readByte();
if (set == 0)
result = null;
else {
try {
byte[] b = new byte[in.readInt()];
in.readFully(b);
result = (Serializable) (new ObjectInputStream(new DataByteArrayInputStream(b))).readObject();
} catch (ClassNotFoundException ignored) {
}
}
}
use of com.swiftmq.tools.util.DataByteArrayInputStream in project swiftmq-client by iitsoftware.
the class Reply method readContent.
/**
* Read the content of this object from the stream.
*
* @param in input stream
* @throws IOException if an error occurs
*/
public void readContent(DataInput in) throws IOException {
ok = in.readBoolean();
byte set = in.readByte();
if (set == 0)
exception = null;
else {
try {
byte[] b = new byte[in.readInt()];
in.readFully(b);
exception = (Exception) (new ObjectInputStream(new DataByteArrayInputStream(b))).readObject();
} catch (ClassNotFoundException ignored) {
}
}
timeout = in.readBoolean();
requestNumber = in.readInt();
}
use of com.swiftmq.tools.util.DataByteArrayInputStream in project swiftmq-client by iitsoftware.
the class ReplyRequest method readContent.
/**
* Read the content of this object from the stream.
*
* @param in input stream
* @throws IOException if an error occurs
*/
public void readContent(DataInput in) throws IOException {
ok = in.readBoolean();
byte set = in.readByte();
if (set == 0)
exception = null;
else {
try {
byte[] b = new byte[in.readInt()];
in.readFully(b);
exception = (Exception) (new ObjectInputStream(new DataByteArrayInputStream(b))).readObject();
} catch (ClassNotFoundException ignored) {
}
}
}
Aggregations