equal
deleted
inserted
replaced
148 ei = new EncodingInfo(null,null); |
148 ei = new EncodingInfo(null,null); |
149 } |
149 } |
150 } |
150 } |
151 |
151 |
152 return ei; |
152 return ei; |
|
153 } |
|
154 |
|
155 /** |
|
156 * Determines if the encoding specified was recognized by the |
|
157 * serializer or not. |
|
158 * |
|
159 * @param encoding The encoding |
|
160 * @return boolean - true if the encoding was recognized else false |
|
161 */ |
|
162 public static boolean isRecognizedEncoding(String encoding) |
|
163 { |
|
164 EncodingInfo ei; |
|
165 |
|
166 String normalizedEncoding = toUpperCaseFast(encoding); |
|
167 ei = _encodingInfos.findEncoding(normalizedEncoding); |
|
168 if (ei != null) |
|
169 return true; |
|
170 return false; |
153 } |
171 } |
154 |
172 |
155 /** |
173 /** |
156 * A fast and cheap way to uppercase a String that is |
174 * A fast and cheap way to uppercase a String that is |
157 * only made of printable ASCII characters. |
175 * only made of printable ASCII characters. |