javax.swing.text.rtf
Class RTFReader.DiscardingDestination

java.lang.Object
  extended byjavax.swing.text.rtf.RTFReader.DiscardingDestination
All Implemented Interfaces:
RTFReader.Destination
Direct Known Subclasses:
RTFReader.InfoDestination, RTFReader.StylesheetDestination
Enclosing class:
RTFReader

class RTFReader.DiscardingDestination
extends Object
implements RTFReader.Destination

This data-sink class is used to implement ignored destinations (e.g. {\*\blegga blah blah blah} ) It accepts all keywords and text but does nothing with them.


Constructor Summary
(package private) RTFReader.DiscardingDestination()
           
 
Method Summary
 void begingroup()
           
 void close()
           
 void endgroup(Dictionary oldState)
           
 void handleBinaryBlob(byte[] data)
           
 boolean handleKeyword(String text)
           
 boolean handleKeyword(String text, int parameter)
           
 void handleText(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTFReader.DiscardingDestination

RTFReader.DiscardingDestination()
Method Detail

handleBinaryBlob

public void handleBinaryBlob(byte[] data)
Specified by:
handleBinaryBlob in interface RTFReader.Destination

handleText

public void handleText(String text)
Specified by:
handleText in interface RTFReader.Destination

handleKeyword

public boolean handleKeyword(String text)
Specified by:
handleKeyword in interface RTFReader.Destination

handleKeyword

public boolean handleKeyword(String text,
                             int parameter)
Specified by:
handleKeyword in interface RTFReader.Destination

begingroup

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

endgroup

public void endgroup(Dictionary oldState)
Specified by:
endgroup in interface RTFReader.Destination

close

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