/** * Convert the bytes within the specified range of the given byte * array into a signed long . The range extends from * <code>start</code> till, but not including <code>end</code>. <p> * * @param b the bytes * @param start the first byte offset * @param end the last byte offset * @return the long value * @exception NumberFormatException for conversion errors */ public static long parseLong(byte[] b, int start, int end) throws NumberFormatException { return parseLong(b, start, end, 10); }
/** * Convert the bytes within the specified range of the given byte * array into a signed long . The range extends from * <code>start</code> till, but not including <code>end</code>. <p> * * @param b the bytes * @param start the first byte offset * @param end the last byte offset * @return the long value * @exception NumberFormatException for conversion errors */ public static long parseLong(byte[] b, int start, int end) throws NumberFormatException { return parseLong(b, start, end, 10); }
/** * Extract a long number, starting at the current position. Updates the * internal index to beyond the number. Returns -1 if a long number * was not found. * * @return a long */ public long readLong() { // Skip leading spaces skipSpaces(); int start = index; while (index < size && Character.isDigit((char)buffer[index])) index++; if (index > start) { try { return ASCIIUtility.parseLong(buffer, start, index); } catch (NumberFormatException nex) { } } return -1; }
/** * Extract a long number, starting at the current position. Updates the * internal index to beyond the number. Returns -1 if a long number * was not found. * * @return a long */ public long readLong() { // Skip leading spaces skipSpaces(); int start = index; while (index < size && Character.isDigit((char)buffer[index])) index++; if (index > start) { try { return ASCIIUtility.parseLong(buffer, start, index); } catch (NumberFormatException nex) { } } return -1; }
/** * Convert the bytes within the specified range of the given byte * array into a signed long . The range extends from * <code>start</code> till, but not including <code>end</code>. <p> */ public static long parseLong(byte[] b, int start, int end) throws NumberFormatException { return parseLong(b, start, end, 10); }
/** * Convert the bytes within the specified range of the given byte * array into a signed long . The range extends from * <code>start</code> till, but not including <code>end</code>. <p> */ public static long parseLong(byte[] b, int start, int end) throws NumberFormatException { return parseLong(b, start, end, 10); }
/** * Convert the bytes within the specified range of the given byte * array into a signed long . The range extends from * <code>start</code> till, but not including <code>end</code>. <p> * * @param b the bytes * @param start the first byte offset * @param end the last byte offset * @return the long value * @exception NumberFormatException for conversion errors */ public static long parseLong(byte[] b, int start, int end) throws NumberFormatException { return parseLong(b, start, end, 10); }
/** * Convert the bytes within the specified range of the given byte * array into a signed long . The range extends from * <code>start</code> till, but not including <code>end</code>. <p> * * @param b the bytes * @param start the first byte offset * @param end the last byte offset * @return the long value * @exception NumberFormatException for conversion errors */ public static long parseLong(byte[] b, int start, int end) throws NumberFormatException { return parseLong(b, start, end, 10); }
/** * Convert the bytes within the specified range of the given byte * array into a signed long . The range extends from * <code>start</code> till, but not including <code>end</code>. <p> * * @param b the bytes * @param start the first byte offset * @param end the last byte offset * @return the long value * @exception NumberFormatException for conversion errors */ public static long parseLong(byte[] b, int start, int end) throws NumberFormatException { return parseLong(b, start, end, 10); }
/** * Convert the bytes within the specified range of the given byte * array into a signed long . The range extends from * <code>start</code> till, but not including <code>end</code>. <p> * * @param b the bytes * @param start the first byte offset * @param end the last byte offset * @return the long value * @exception NumberFormatException for conversion errors */ public static long parseLong(byte[] b, int start, int end) throws NumberFormatException { return parseLong(b, start, end, 10); }
/** * Convert the bytes within the specified range of the given byte * array into a signed long . The range extends from * <code>start</code> till, but not including <code>end</code>. <p> * * @param b the bytes * @param start the first byte offset * @param end the last byte offset * @return the long value * @exception NumberFormatException for conversion errors */ public static long parseLong(byte[] b, int start, int end) throws NumberFormatException { return parseLong(b, start, end, 10); }
/** * Extract a long number, starting at the current position. Updates the * internal index to beyond the number. Returns -1 if a long number * was not found. * * @return a long */ public long readLong() { // Skip leading spaces skipSpaces(); int start = index; while (index < size && Character.isDigit((char)buffer[index])) index++; if (index > start) { try { return ASCIIUtility.parseLong(buffer, start, index); } catch (NumberFormatException nex) { } } return -1; }
/** * Extract a long number, starting at the current position. Updates the * internal index to beyond the number. Returns -1 if a long number * was not found. * * @return a long */ public long readLong() { // Skip leading spaces skipSpaces(); int start = index; while (index < size && Character.isDigit((char)buffer[index])) index++; if (index > start) { try { return ASCIIUtility.parseLong(buffer, start, index); } catch (NumberFormatException nex) { } } return -1; }
/** * Extract a long number, starting at the current position. Updates the * internal index to beyond the number. Returns -1 if a long number * was not found. * * @return a long */ public long readLong() { // Skip leading spaces skipSpaces(); int start = index; while (index < size && Character.isDigit((char)buffer[index])) index++; if (index > start) { try { return ASCIIUtility.parseLong(buffer, start, index); } catch (NumberFormatException nex) { } } return -1; }
/** * Extract a long number, starting at the current position. Updates the * internal index to beyond the number. Returns -1 if a long number * was not found. * * @return a long */ public long readLong() { // Skip leading spaces skipSpaces(); int start = index; while (index < size && Character.isDigit((char)buffer[index])) index++; if (index > start) { try { return ASCIIUtility.parseLong(buffer, start, index); } catch (NumberFormatException nex) { } } return -1; }
/** * Extract a long number, starting at the current position. Updates the * internal index to beyond the number. Returns -1 if a long number * was not found. * * @return a long */ public long readLong() { // Skip leading spaces skipSpaces(); int start = index; while (index < size && Character.isDigit((char)buffer[index])) index++; if (index > start) { try { return ASCIIUtility.parseLong(buffer, start, index); } catch (NumberFormatException nex) { } } return -1; }
/** * Extract a long number, starting at the current position. Updates the * internal index to beyond the number. Returns -1 if a long number * was not found. * * @return a long */ public long readLong() { // Skip leading spaces skipSpaces(); int start = index; while (index < size && Character.isDigit((char)buffer[index])) index++; if (index > start) { try { return ASCIIUtility.parseLong(buffer, start, index); } catch (NumberFormatException nex) { } } return -1; }