javax.swing.text.rtf
Class RTFReader.DiscardingDestination
java.lang.Object
javax.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RTFReader.DiscardingDestination
RTFReader.DiscardingDestination()
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