Examples of MQObjectInputStream


Examples of com.sun.messaging.jmq.io.MQObjectInputStream

                buffer.get(data);
                ByteArrayInputStream bais = new ByteArrayInputStream(data);

                // Use our version of ObjectInputStream so we can load old
                // serialized object from an old store, i.e. store migration
                ObjectInputStream ois = new MQObjectInputStream(bais);
        try {
        key = ois.readObject();
        } catch (Throwable e) {
        if (e instanceof ClassNotFoundException) {
      throw (ClassNotFoundException)e;
        } else {
      kex = e;
        }
    }

    try {
        value = ois.readObject();
    } catch (Throwable e) {
        if (e instanceof ClassNotFoundException) {
      throw (ClassNotFoundException)e;
        } else {
      vex = e;
        }
    }

                // Mark client data starting position
                if (maxClientDataSize > 0) {
                    // Since we've read in all data in the buffer, we need to
                    // reset the position back to client data starting position
                    int pos = limit - bais.available();
                    buffer.position(pos);
                    buffer.mark();
                }

    ois.close();
    bais.close();
      } catch (IOException e) {
    ex = e;
      }
View Full Code Here

Examples of com.sun.messaging.jmq.io.MQObjectInputStream

            return null;
        }

        // Use our version of ObjectInputStream so we can load old
        // serialized object from an old store, i.e. store migration
        ObjectInputStream ois = new MQObjectInputStream(is);
  Object obj = ois.readObject();
  ois.close();
  return obj;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.