javax.swing.text.html
Class StyleSheet.SearchBuffer

java.lang.Object
  extended byjavax.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.


Field Summary
(package private)  Hashtable hashtable
           
(package private) static Stack searchBuffers
          A stack containing instances of SearchBuffer.
(package private)  StringBuffer stringBuffer
           
(package private)  Vector vector
           
 
Constructor Summary
private StyleSheet.SearchBuffer()
           
 
Method Summary
(package private)  void empty()
           
(package private)  Hashtable getHashtable()
           
(package private)  StringBuffer getStringBuffer()
           
(package private)  Vector getVector()
           
(package private) static StyleSheet.SearchBuffer obtainSearchBuffer()
          Returns an instance of SearchBuffer.
(package private) static void releaseSearchBuffer(StyleSheet.SearchBuffer sb)
          Adds sb to the stack of SearchBuffers that can be used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

searchBuffers

static Stack searchBuffers
A stack containing instances of SearchBuffer. Used in getting rules.


vector

Vector vector

stringBuffer

StringBuffer stringBuffer

hashtable

Hashtable hashtable
Constructor Detail

StyleSheet.SearchBuffer

private StyleSheet.SearchBuffer()
Method Detail

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()