summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/parserutils/splitter/TokenSplitter.java
blob: 6fd9f7b1438f82575869c5c109494cfe1bd1f95f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package bjc.utils.parserutils.splitter;

/**
 * Split a string and keep given delimiters.
 *
 * @author Ben Culkin
 */
@Deprecated
public interface TokenSplitter {
	/**
	 * Split a provided string using configured delimiters, and keeping the
	 * delimiters.
	 *
	 * <p>
	 * The splitter must be compiled first.
	 * </p>
	 *
	 * @param inp
	 *                The string to split.
	 *
	 * @return The split string, including delimiters.
	 *
	 * @throws IllegalStateException
	 *                 If the splitter isn't compiled.
	 */
	String[] split(String inp);
}