public class StringSplitter extends Object
| Constructor and Description |
|---|
StringSplitter(String input) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentOffset()
Returns the current read pointer position (in number of characters).
|
byte[] |
getNextBytes(int numBytes)
Starting from the current reading position, extract the next numBytes bytes.
|
String |
getNextToken(int numCharacters)
Starting from the current reading position, extract the next numCharacters characters.
|
String |
getNextToken(String delimiter)
Starting from the current reading position, extract the next token terminated by delimiter.
|
String |
peek(int numChars) |
void |
skipDelimiter(String delimiter) |
public StringSplitter(String input)
public String getNextToken(String delimiter)
delimiter - a regular expression that describes the next delimiterIllegalStateException - if the current string value doesn't contain the delimiter sequencepublic String getNextToken(int numCharacters)
public byte[] getNextBytes(int numBytes)
public void skipDelimiter(String delimiter)
public String peek(int numChars)
public int getCurrentOffset()
Copyright © 2012 Last.fm. All Rights Reserved.