javax.swing.text.rtf
Class RTFReader.StylesheetDestination

java.lang.Object
  extended byjavax.swing.text.rtf.RTFReader.DiscardingDestination
      extended byjavax.swing.text.rtf.RTFReader.StylesheetDestination
All Implemented Interfaces:
RTFReader.Destination
Enclosing class:
RTFReader

class RTFReader.StylesheetDestination
extends RTFReader.DiscardingDestination
implements RTFReader.Destination

Handles the stylesheet keyword. Styles are read and sorted into the three style arrays in the RTFReader.


Nested Class Summary
(package private)  class RTFReader.StylesheetDestination.StyleDefiningDestination
          This subclass handles an individual style
 
Field Summary
(package private)  Dictionary definedStyles
           
 
Constructor Summary
RTFReader.StylesheetDestination()
           
 
Method Summary
 void begingroup()
           
 void close()
           
 void endgroup(Dictionary oldState)
           
 void handleBinaryBlob(byte[] data)
           
 boolean handleKeyword(String keyword)
           
 boolean handleKeyword(String keyword, int parameter)
           
 void handleText(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

definedStyles

Dictionary definedStyles
Constructor Detail

RTFReader.StylesheetDestination

public RTFReader.StylesheetDestination()
Method Detail

begingroup

public void begingroup()
Specified by:
begingroup in interface RTFReader.Destination
Overrides:
begingroup in class RTFReader.DiscardingDestination

close

public void close()
Specified by:
close in interface RTFReader.Destination
Overrides:
close in class RTFReader.DiscardingDestination

handleBinaryBlob

public void handleBinaryBlob(byte[] data)

handleText

public void handleText(String text)

handleKeyword

public boolean handleKeyword(String keyword)

handleKeyword

public boolean handleKeyword(String keyword,
                             int parameter)

endgroup

public void endgroup(Dictionary oldState)