/** * Builds the message body from data * * @throws JMSException * @throws IOException */ private void loadContent() throws JMSException { try { if (getContent() != null && map.isEmpty()) { ByteSequence content = getContent(); InputStream is = new ByteArrayInputStream(content); if (isCompressed()) { is = new InflaterInputStream(is); } DataInputStream dataIn = new DataInputStream(is); map = MarshallingSupport.unmarshalPrimitiveMap(dataIn); dataIn.close(); } } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
/** * Builds the message body from data * * @throws JMSException * @throws IOException */ private void loadContent() throws JMSException { try { if (getContent() != null && map.isEmpty()) { ByteSequence content = getContent(); InputStream is = new ByteArrayInputStream(content); if (isCompressed()) { is = new InflaterInputStream(is); } DataInputStream dataIn = new DataInputStream(is); map = MarshallingSupport.unmarshalPrimitiveMap(dataIn); dataIn.close(); } } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
/** * Builds the message body from data * * @throws JMSException * @throws IOException */ private void loadContent() throws JMSException { try { if (getContent() != null && map.isEmpty()) { ByteSequence content = getContent(); InputStream is = new ByteArrayInputStream(content); if (isCompressed()) { is = new InflaterInputStream(is); } DataInputStream dataIn = new DataInputStream(is); map = MarshallingSupport.unmarshalPrimitiveMap(dataIn); dataIn.close(); } } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
/** * Builds the message body from data * * @throws JMSException * @throws IOException */ private void loadContent() throws JMSException { try { if (getContent() != null && map.isEmpty()) { ByteSequence content = getContent(); InputStream is = new ByteArrayInputStream(content); if (isCompressed()) { is = new InflaterInputStream(is); } DataInputStream dataIn = new DataInputStream(is); map = MarshallingSupport.unmarshalPrimitiveMap(dataIn); dataIn.close(); } } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
/** * Builds the message body from data * * @throws JMSException * @throws IOException */ private void loadContent() throws JMSException { try { if (getContent() != null && map.isEmpty()) { ByteSequence content = getContent(); InputStream is = new ByteArrayInputStream(content); if (isCompressed()) { is = new InflaterInputStream(is); } DataInputStream dataIn = new DataInputStream(is); map = MarshallingSupport.unmarshalPrimitiveMap(dataIn); dataIn.close(); } } catch (IOException e) { throw JMSExceptionSupport.create(e); } }