|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CharSequence
The ByteSequence interface is used by the diff engine. The intention is that a file be broken down into "lines" which are exposed as a ByteSequence. The interface is quite simple, it need only support the ability to determine the length of the sequence and the ability to get a byte at a specific location (0 based). In this respect is very similar to a byte array.
| Method Summary | |
|---|---|
char |
charAt(int n)
Returns the char located at the nth position (zero-based). |
int |
getLength()
Returns the length of the sequence. |
| Method Detail |
|---|
char charAt(int n)
n - the nth position
int getLength()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||