Lines Matching refs:pos
84 * @param pos On input: an alignment field, if desired. On output: the
90 final StringBuffer toAppendTo, final FieldPosition pos) {
92 pos.setBeginIndex(0);
93 pos.setEndIndex(0);
101 getWholeFormat().format(whole, toAppendTo, pos);
107 getNumeratorFormat().format(num, toAppendTo, pos);
109 getDenominatorFormat().format(den, toAppendTo, pos);
131 * @param pos input/ouput parsing parameter.
135 public BigFraction parse(final String source, final ParsePosition pos) {
137 BigFraction ret = super.parse(source, pos);
142 final int initialIndex = pos.getIndex();
145 parseAndIgnoreWhitespace(source, pos);
148 BigInteger whole = parseNextBigInteger(source, pos);
153 pos.setIndex(initialIndex);
158 parseAndIgnoreWhitespace(source, pos);
161 BigInteger num = parseNextBigInteger(source, pos);
166 pos.setIndex(initialIndex);
172 pos.setIndex(initialIndex);
177 final int startIndex = pos.getIndex();
178 final char c = parseNextCharacter(source, pos);
191 pos.setIndex(initialIndex);
192 pos.setErrorIndex(startIndex);
197 parseAndIgnoreWhitespace(source, pos);
200 final BigInteger den = parseNextBigInteger(source, pos);
205 pos.setIndex(initialIndex);
211 pos.setIndex(initialIndex);