Code example for ShortBufferException

0
        } 
        int result = input.limit() - input.position();
        try { 
            output.put(input);
        } catch (java.nio.BufferOverflowException e) {
            throw new ShortBufferException(Messages.getString("crypto.0F", e)); //$NON-NLS-1$
        } 
        return result;
    } 
 
    @Override 
    public byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen)
            throws IllegalBlockSizeException, BadPaddingException { 
        if (input == null) {
            return null; 
        } 
        return engineUpdate(input, inputOffset, inputLen);
    } 
 
    @Override 
    public int engineDoFinal(byte[] input, int inputOffset, int inputLen,