equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
207 * @param systemId Ignored. |
207 * @param systemId Ignored. |
208 * |
208 * |
209 * @throws UnsupportedOperationException Is <strong>always</strong> |
209 * @throws UnsupportedOperationException Is <strong>always</strong> |
210 * thrown by this method. |
210 * thrown by this method. |
211 */ |
211 */ |
|
212 @Override |
212 public void setSystemId(final String systemId) { |
213 public void setSystemId(final String systemId) { |
213 |
214 |
214 throw new UnsupportedOperationException( |
215 throw new UnsupportedOperationException( |
215 "StAXSource#setSystemId(systemId) cannot set the " |
216 "StAXSource#setSystemId(systemId) cannot set the " |
216 + "system identifier for a StAXSource"); |
217 + "system identifier for a StAXSource"); |
227 * <p>The system identifier may be <code>null</code> or |
228 * <p>The system identifier may be <code>null</code> or |
228 * an empty <code>""</code> <code>String</code>.</p> |
229 * an empty <code>""</code> <code>String</code>.</p> |
229 * |
230 * |
230 * @return System identifier used by this <code>StAXSource</code>. |
231 * @return System identifier used by this <code>StAXSource</code>. |
231 */ |
232 */ |
|
233 @Override |
232 public String getSystemId() { |
234 public String getSystemId() { |
233 |
235 |
234 return systemId; |
236 return systemId; |
235 } |
237 } |
|
238 |
|
239 /** |
|
240 * Indicates whether the {@code StAXSource} object is empty. Since a |
|
241 * {@code StAXSource} object can never be empty, this method always returns |
|
242 * false. |
|
243 * |
|
244 * @return unconditionally false |
|
245 */ |
|
246 @Override |
|
247 public boolean isEmpty() { |
|
248 return false; |
|
249 } |
236 } |
250 } |