javax.swing.text.html
Class StyleSheet.SearchBuffer
java.lang.Object
javax.swing.text.html.StyleSheet.SearchBuffer
- Enclosing class:
- StyleSheet
- private static class StyleSheet.SearchBuffer
- extends Object
A temporary class used to hold a Vector, a StringBuffer and a
Hashtable. This is used to avoid allocing a lot of garbage when
searching for rules. Use the static method obtainSearchBuffer and
releaseSearchBuffer to get a SearchBuffer, and release it when
done.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
searchBuffers
static Stack searchBuffers
- A stack containing instances of SearchBuffer. Used in getting
rules.
vector
Vector vector
stringBuffer
StringBuffer stringBuffer
hashtable
Hashtable hashtable
StyleSheet.SearchBuffer
private StyleSheet.SearchBuffer()
obtainSearchBuffer
static StyleSheet.SearchBuffer obtainSearchBuffer()
- Returns an instance of SearchBuffer. Be sure and issue
a releaseSearchBuffer when done with it.
releaseSearchBuffer
static void releaseSearchBuffer(StyleSheet.SearchBuffer sb)
- Adds
sb
to the stack of SearchBuffers that can
be used.
getStringBuffer
StringBuffer getStringBuffer()
getVector
Vector getVector()
getHashtable
Hashtable getHashtable()
empty
void empty()