public class FitsSubString extends Object
Constructor and Description |
---|
FitsSubString(String originalString)
constructor for the substring, start by representing the whole string.
|
Modifier and Type | Method and Description |
---|---|
void |
appendTo(StringBuilder buffer)
append the current string representation to the StringBuffer.
|
char |
charAt(int pos)
get the character at the specified position.
|
int |
fullLength() |
void |
getAdjustedLength(int max)
check the string and set it to the maximum length specified.
|
int |
length() |
void |
rest()
shift the sting to the rest of the string, the part of the original
string that is after the part of the string this instance currently
represents.
|
void |
skip(int count)
skip over the specified number of characters.
|
boolean |
startsWith(String string) |
public FitsSubString(String originalString)
originalString
- the string to represent.public void appendTo(StringBuilder buffer)
buffer
- the buffer to append to.public char charAt(int pos)
pos
- the position the get the character frompublic int fullLength()
public void getAdjustedLength(int max)
max
- the maximum string legth to set.public int length()
public void rest()
public void skip(int count)
count
- the number of chars to skippublic boolean startsWith(String string)
string
- the string to checkCopyright © 1996–2016 nom-tam-fits. All rights reserved.