jaxws/src/java.activation/share/classes/com/sun/activation/registries/MailcapTokenizer.java
equal
deleted
inserted
replaced
40 public static final int EQUALS_TOKEN = '='; |
40 public static final int EQUALS_TOKEN = '='; |
41 |
41 |
42 /** |
42 /** |
43 * Constructor |
43 * Constructor |
44 * |
44 * |
45 * @parameter inputString the string to tokenize |
45 * @param inputString the string to tokenize |
46 */ |
46 */ |
47 public MailcapTokenizer(String inputString) { |
47 public MailcapTokenizer(String inputString) { |
48 data = inputString; |
48 data = inputString; |
49 dataIndex = 0; |
49 dataIndex = 0; |
50 dataLength = inputString.length(); |
50 dataLength = inputString.length(); |
71 } |
71 } |
72 |
72 |
73 /** |
73 /** |
74 * Retrieve current token. |
74 * Retrieve current token. |
75 * |
75 * |
76 * @returns The current token value |
76 * @return The current token value |
77 */ |
77 */ |
78 public int getCurrentToken() { |
78 public int getCurrentToken() { |
79 return currentToken; |
79 return currentToken; |
80 } |
80 } |
81 |
81 |
113 } |
113 } |
114 |
114 |
115 /* |
115 /* |
116 * Retrieve current token value. |
116 * Retrieve current token value. |
117 * |
117 * |
118 * @returns A String containing the current token value |
118 * @return A String containing the current token value |
119 */ |
119 */ |
120 public String getCurrentTokenValue() { |
120 public String getCurrentTokenValue() { |
121 return currentTokenValue; |
121 return currentTokenValue; |
122 } |
122 } |
123 /* |
123 /* |
124 * Process the next token. |
124 * Process the next token. |
125 * |
125 * |
126 * @returns the next token |
126 * @return the next token |
127 */ |
127 */ |
128 public int nextToken() { |
128 public int nextToken() { |
129 if (dataIndex < dataLength) { |
129 if (dataIndex < dataLength) { |
130 // skip white space |
130 // skip white space |
131 while ((dataIndex < dataLength) && |
131 while ((dataIndex < dataLength) && |