1 /* |
1 /* |
2 * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2013, 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 |
89 */ |
89 */ |
90 public boolean isEmpty() { |
90 public boolean isEmpty() { |
91 return (stringContent.length() == 0); |
91 return (stringContent.length() == 0); |
92 } |
92 } |
93 |
93 |
|
94 public int charCount() { |
|
95 return stringContent.length(); |
|
96 } |
|
97 |
94 /** |
98 /** |
95 * {@inheritDoc} |
99 * {@inheritDoc} |
96 */ |
100 */ |
97 public String toString() { |
101 public String toString() { |
98 return stringContent.toString(); |
102 return stringContent.toString(); |