com.starteam.diff
Interface CharSequence

All Known Implementing Classes:
SharedCharSequence, StringCharSequence

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

charAt

char charAt(int n)
Returns the char located at the nth position (zero-based).

Parameters:
n - the nth position
Returns:
the char at that position

getLength

int getLength()
Returns the length of the sequence.

Returns:
the length of the sequence


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.