Search in sources :

Example 11 with CharSequenceReader

use of org.eclipse.wst.sse.core.internal.text.CharSequenceReader in project webtools.sourceediting by eclipse.

the class TestCharSequenceReader method testStandardEnd.

public void testStandardEnd() {
    CharSequenceReader reader = new CharSequenceReader(fStandardString, 4, 3);
    char char1 = (char) reader.read();
    assertTrue(char1 == '1');
    char char2 = (char) reader.read();
    assertTrue(char2 == '2');
    char char3 = (char) reader.read();
    assertTrue(char3 == '3');
    int eof = reader.read();
    assertTrue(eof == -1);
}
Also used : CharSequenceReader(org.eclipse.wst.sse.core.internal.text.CharSequenceReader)

Aggregations

CharSequenceReader (org.eclipse.wst.sse.core.internal.text.CharSequenceReader)11 IDocument (org.eclipse.jface.text.IDocument)1 DocumentReader (org.eclipse.wst.sse.core.internal.document.DocumentReader)1