/** * Equivalent to {@code nextTo(String.valueOf(excluded))}. */ public String nextTo(char excluded) { return nextToInternal(String.valueOf(excluded)).trim(); }
/** * Equivalent to {@code nextTo(String.valueOf(excluded))}. * * @param excluded The limiting character. * @return a possibly-empty string */ public String nextTo(char excluded) { return nextToInternal(String.valueOf(excluded)).trim(); }
/** * Returns the {@link String#trim trimmed} string holding the characters up to but not including * the first of: * <ul> * <li>any character in {@code excluded} * <li>a newline character '\n' * <li>a carriage return '\r' * </ul> * * <p> * The returned string shares its backing character array with this tokener's input string. If a * reference to the returned string may be held indefinitely, you should use * {@code new String(result)} to copy it first to avoid memory leaks. * * @param excluded The limiting string where the search should stop. * @return a possibly-empty string */ public String nextTo(String excluded) { if (excluded == null) { throw new NullPointerException("excluded == null"); } return nextToInternal(excluded).trim(); }
/** * Returns the {@link String#trim trimmed} string holding the characters up * to but not including the first of: * <ul> * <li>any character in {@code excluded} * <li>a newline character '\n' * <li>a carriage return '\r' * </ul> * * <p>The returned string shares its backing character array with this * tokener's input string. If a reference to the returned string may be held * indefinitely, you should use {@code new String(result)} to copy it first * to avoid memory leaks. * * @return a possibly-empty string */ public String nextTo(String excluded) { if (excluded == null) { throw new NullPointerException("excluded == null"); } return nextToInternal(excluded).trim(); }
String literal = nextToInternal("{}[]/\\:,=;# \t\f");
String literal = nextToInternal("{}[]/\\:,=;# \t\f");
/** * Equivalent to {@code nextTo(String.valueOf(excluded))}. */ public String nextTo(char excluded) { return nextToInternal(String.valueOf(excluded)).trim(); }
/** * Equivalent to {@code nextTo(String.valueOf(excluded))}. */ public String nextTo(char excluded) { return nextToInternal(String.valueOf(excluded)).trim(); }
/** * Equivalent to {@code nextTo(String.valueOf(excluded))}. */ public String nextTo(char excluded) { return nextToInternal(String.valueOf(excluded)).trim(); }
/** * Equivalent to {@code nextTo(String.valueOf(excluded))}. */ public String nextTo(char excluded) { return nextToInternal(String.valueOf(excluded)).trim(); }
/** * Equivalent to {@code nextTo(String.valueOf(excluded))}. */ public String nextTo(char excluded) { return nextToInternal(String.valueOf(excluded)).trim(); }
/** * Returns the {@link String#trim trimmed} string holding the characters up * to but not including the first of: * <ul> * <li>any character in {@code excluded} * <li>a newline character '\n' * <li>a carriage return '\r' * </ul> * * <p>The returned string shares its backing character array with this * tokener's input string. If a reference to the returned string may be held * indefinitely, you should use {@code new String(result)} to copy it first * to avoid memory leaks. * * @return a possibly-empty string */ public String nextTo(String excluded) { if (excluded == null) { throw new NullPointerException("excluded == null"); } return nextToInternal(excluded).trim(); }
/** * Returns the {@link String#trim trimmed} string holding the characters up * to but not including the first of: * <ul> * <li>any character in {@code excluded} * <li>a newline character '\n' * <li>a carriage return '\r' * </ul> * * <p>The returned string shares its backing character array with this * tokener's input string. If a reference to the returned string may be held * indefinitely, you should use {@code new String(result)} to copy it first * to avoid memory leaks. * * @return a possibly-empty string */ public String nextTo(String excluded) { if (excluded == null) { throw new NullPointerException("excluded == null"); } return nextToInternal(excluded).trim(); }
/** * Returns the {@link String#trim trimmed} string holding the characters up * to but not including the first of: * <ul> * <li>any character in {@code excluded} * <li>a newline character '\n' * <li>a carriage return '\r' * </ul> * * <p>The returned string shares its backing character array with this * tokener's input string. If a reference to the returned string may be held * indefinitely, you should use {@code new String(result)} to copy it first * to avoid memory leaks. * * @return a possibly-empty string */ public String nextTo(String excluded) { if (excluded == null) { throw new NullPointerException("excluded == null"); } return nextToInternal(excluded).trim(); }
/** * Returns the {@link String#trim trimmed} string holding the characters up * to but not including the first of: * <ul> * <li>any character in {@code excluded} * <li>a newline character '\n' * <li>a carriage return '\r' * </ul> * * <p>The returned string shares its backing character array with this * tokener's input string. If a reference to the returned string may be held * indefinitely, you should use {@code new String(result)} to copy it first * to avoid memory leaks. * * @return a possibly-empty string */ public String nextTo(String excluded) { if (excluded == null) { throw new NullPointerException("excluded == null"); } return nextToInternal(excluded).trim(); }
/** * Returns the {@link String#trim trimmed} string holding the characters up * to but not including the first of: * <ul> * <li>any character in {@code excluded} * <li>a newline character '\n' * <li>a carriage return '\r' * </ul> * * <p>The returned string shares its backing character array with this * tokener's input string. If a reference to the returned string may be held * indefinitely, you should use {@code new String(result)} to copy it first * to avoid memory leaks. * * @return a possibly-empty string */ public String nextTo(String excluded) { if (excluded == null) { throw new NullPointerException("excluded == null"); } return nextToInternal(excluded).trim(); }
String literal = nextToInternal("{}[]/\\:,=;# \t\f");
String literal = nextToInternal("{}[]/\\:,=;# \t\f");
String literal = nextToInternal("{}[]/\\:,=;# \t\f");
String literal = nextToInternal("{}[]/\\:,=;# \t\f");