01: /*
02: * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
03: * Copyright (C) 2005 - Javolution (http://javolution.org/)
04: * All rights reserved.
05: *
06: * Permission to use, copy, modify, and distribute this software is
07: * freely granted, provided that this notice is preserved.
08: */
09: 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: }
|