/** * Reads the next big-endian signed 32-bit integer from the * given stream. * * @param input the input stream to read from * @return the next 32-bit big-endian integer * @throws IOException if an IO error occurs */ public static int bigInt(InputStream input) throws IOException { char hi = bigChar(input); char lo = bigChar(input); return (hi << 16) | lo; } }
/** * Reads the next big-endian signed 32-bit integer from the * given stream. * * @param input the input stream to read from * @return the next 32-bit big-endian integer * @throws IOException if an IO error occurs */ public static int bigInt(InputStream input) throws IOException { char hi = bigChar(input); char lo = bigChar(input); return (hi << 16) | lo; } }
/** * Reads the next big-endian signed 32-bit integer from the * given stream. * * @param input the input stream to read from * @return the next 32-bit big-endian integer * @throws IOException if an IO error occurs */ public static int bigInt(InputStream input) throws IOException { char hi = bigChar(input); char lo = bigChar(input); return (hi << 16) | lo; } }