src/com/makina/security/OpenFIPS201/TLVReader.java
public byte toByte() {
        byte[] data = (byte[])dataPtr[0];
        short length = getLength();

        if ((short)1 == length) {
            return data[getDataOffset()];
        } else {
            ISOException.throwIt(ISO7816.SW_DATA_INVALID);
            //TlvException.throwIt(TlvException.TAG_LENGTH_EXCEEDS_MAX);
            return (short)0; // Dummy
        }
    }
/**
     * Reads the current tag value as a byte value
     * @return The current tag value as a byte
     */
Reads the current tag value as a byte value
@return The current tag value as a byte
Reads the current tag value as a byte value @return The current tag value as a byte
public byte toByte() {
        byte[] data = (byte[])dataPtr[0];
        short length = getLength();
        if ((short)1 == length) {
            return data[getDataOffset()];
        } else {
            ISOException.throwIt(ISO7816.SW_DATA_INVALID);
            return (short)0; 
        }
    }
public byte toByte ( ) { byte [ ] data = ( byte [ ] ) dataPtr [ 0 ] ; short length = getLength ( ) ; if ( ( short ) 1 == length ) { return data [ getDataOffset ( ) ] ; } else { ISOException . throwIt ( ISO7816 . SW_DATA_INVALID ) ; return ( short ) 0 ; } }
Reads the current tag value as a byte value
 @return The current tag value as a byte
Reads the current tag value as a byte value @return The current tag value as a byte
//TlvException.throwIt(TlvException.TAG_LENGTH_EXCEEDS_MAX); // Dummy