KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > j2me > text > ParsePosition


1 /*
2  * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
3  * Copyright (C) 2005 - Javolution (http://javolution.org/)
4  * All rights reserved.
5  *
6  * Permission to use, copy, modify, and distribute this software is
7  * freely granted, provided that this notice is preserved.
8  */

9 package j2me.text;
10
11 // Stub for javolution.lang.TextFormat.Cursor to be compatible with ParsePosition.
12
public class ParsePosition {
13     
14     int _index = 0;
15     int _errorIndex = -1;
16     
17     public ParsePosition(int index) {
18     }
19     
20     public int getIndex() {
21         return _index;
22     }
23     
24     public void setIndex(int index) {
25         _index = index;
26     }
27     
28     public int getErrorIndex() {
29         return _errorIndex;
30     }
31     
32     public void setErrorIndex(int index) {
33         _errorIndex = index;
34     }
35     
36 }
37
Popular Tags