Code example for ShortBufferException

0
            throw new ShortBufferException(Messages.getString("crypto.0E")); //$NON-NLS-1$
        } 
        try { 
            output.put(bOutput);
        } catch (java.nio.BufferOverflowException e) {
            throw new ShortBufferException(Messages.getString("crypto.0F", e)); //$NON-NLS-1$
        } 
        return bOutput.length;
    } 
 
    /*** 
     * Finishes a multi-part transformation (encryption or decryption). 
     * <p> 
     * Processes the {@code inputLen} bytes in {@code input} buffer at {@code 
     * inputOffset}, and any bytes that have been buffered in previous {@code 
     * update} calls. 
     * 
     * @param input 
     *            the input buffer. 
     * @param inputOffset 
     *            the offset in the input buffer.