jdk/src/java.desktop/share/classes/javax/swing/text/rtf/RTFReader.java
changeset 32865 f9cb6e427f9e
parent 32491 7b3783f9484d
equal deleted inserted replaced
32864:2a338536e642 32865:f9cb6e427f9e
    84   /** The parameter of the most recently parsed \\ucN keyword,
    84   /** The parameter of the most recently parsed \\ucN keyword,
    85    *  used for skipping alternative representations after a
    85    *  used for skipping alternative representations after a
    86    *  Unicode character. */
    86    *  Unicode character. */
    87   int skippingCharacters;
    87   int skippingCharacters;
    88 
    88 
    89   static private Dictionary<String, RTFAttribute> straightforwardAttributes;
    89   private static Dictionary<String, RTFAttribute> straightforwardAttributes;
    90   static {
    90   static {
    91       straightforwardAttributes = RTFAttributes.attributesByKeyword();
    91       straightforwardAttributes = RTFAttributes.attributesByKeyword();
    92   }
    92   }
    93 
    93 
    94   private MockAttributeSet mockery;
    94   private MockAttributeSet mockery;
  1064         parserState.put("pgf", paragraphAttributes);
  1064         parserState.put("pgf", paragraphAttributes);
  1065         sectionAttributes = rootSectionAttributes();
  1065         sectionAttributes = rootSectionAttributes();
  1066         parserState.put("sec", sectionAttributes);
  1066         parserState.put("sec", sectionAttributes);
  1067     }
  1067     }
  1068 
  1068 
  1069     abstract public void handleText(String text);
  1069     public abstract void handleText(String text);
  1070 
  1070 
  1071     public void handleBinaryBlob(byte[] data)
  1071     public void handleBinaryBlob(byte[] data)
  1072     {
  1072     {
  1073         /* This should really be in TextHandlingDestination, but
  1073         /* This should really be in TextHandlingDestination, but
  1074          * since *nobody* does anything with binary blobs, this
  1074          * since *nobody* does anything with binary blobs, this