@Override
	public int readBytes(byte[] value) throws JMSException
    {
    	backupState();
        try
        {
            return getInput().read(value);
        }
        catch (EOFException e)
        {
        	restoreState();
            throw new MessageEOFException("End of body reached");
        }
        catch (IOException e)
        {
        	restoreState();
            throw new FFMQException("Cannot read message body","IO_ERROR",e);
        }
        catch (RuntimeException e)
        {
        	restoreState();
            throw e;
        }
    }
@ Override public int readBytes ( byte [ ] value ) throws JMSException { backupState ( ) ; try { return getInput ( ) . read ( value ) ; } catch ( EOFException e ) { restoreState ( ) ; throw new MessageEOFException ( "End of body reached" ) ; } catch ( IOException e ) { restoreState ( ) ; throw new FFMQException ( "Cannot read message body" , "IO_ERROR" , e ) ; } catch ( RuntimeException e ) { restoreState ( ) ; throw e ; } }
/*
(non-Javadoc)
@see javax.jms.BytesMessage#readBytes(byte[])