fullRuntime/src/sc/util/zip/ZipUtil.java
public static int signedByteToUnsignedInt(byte b) {
        if (b >= 0) {
            return b;
        } else {
            return 256 + b;
        }
    }
/**
     * Converts a signed byte into an unsigned integer representation
     * (e.g., -1 becomes 255).
     *
     * @param b byte to convert to int
     * @return int representation of the provided byte
     * @since 1.5
     */
Converts a signed byte into an unsigned integer representation
.

@param b byte to convert to int
@return int representation of the provided byte
@since 1.5
Converts a signed byte into an unsigned integer representation . @param b byte to convert to int @return int representation of the provided byte @since 1 . 5
public static int signedByteToUnsignedInt(byte b) {
        if (b >= 0) {
            return b;
        } else {
            return 256 + b;
        }
    }
public static int signedByteToUnsignedInt ( byte b ) { if ( b >= 0 ) { return b ; } else { return 256 + b ; } }
Converts a signed byte into an unsigned integer representation
 (e.g., -1 becomes 255).
Converts a signed byte into an unsigned integer representation ( e . g . - 1 becomes 255 ) .