com.starbase.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 length()
          Returns the length of the sequence.
 

Method Detail

charAt

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


length

public int length()
Returns the length of the sequence.



StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.