aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/io/BufferedOutputStream.java
AgeCommit message (Expand)AuthorFilesLines
2002-01-22Add license clarification.Mark Wielaard1-5/+16
2000-05-19BufferedWriter.java: Merged with Classpath.Tom Tromey1-66/+209
2000-03-07All files: Updated copyright information.Tom Tromey1-1/+1
2000-01-19* All files: Updated copyright to reflect Cygnus purchase.Tom Tromey1-1/+1
1999-07-01[multiple changes]Warren Levy1-1/+4
1999-04-07Initial revisionTom Tromey1-0/+76
n class="hl com">/** * @author Tom Tromey <tromey@cygnus.com> * @date March 25, 1999 */ /* Written using "Java Class Libraries", 2nd edition, plus online * API docs for JDK 1.2 from http://www.javasoft.com. * Status: Believed complete and correct to JDK 1.1. */ public final class CollationElementIterator { public static final int NULLORDER = 0xffffffff; public int next () { if (index == text.length()) return NULLORDER; return collator.ceiNext(this); } // This one returns int while the others return short. public static final int primaryOrder (int order) { // From the JDK 1.2 spec. return order >>> 16; } public void reset () { index = 0; } public static final short secondaryOrder (int order) { // From the JDK 1.2 spec. return (short) ((order >>> 8) & 255); } public static final short tertiaryOrder (int order) { // From the JDK 1.2 spec. return (short) (order & 255); } // Non-public constructor. CollationElementIterator (String text, RuleBasedCollator collator) { this.text = text; this.index = 0; this.lookahead_set = false; this.lookahead = 0; this.collator = collator; } // Text over which we iterate. String text; // Index of next character to examine in TEXT. int index; // A piece of lookahead. boolean lookahead_set; int lookahead; // The RuleBasedCollator which created this object. RuleBasedCollator collator; }