/[classpath]/classpath/java/awt/datatransfer/DataFlavor.java
ViewVC logotype

Diff of /classpath/java/awt/datatransfer/DataFlavor.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by mkoch, Thu Feb 13 19:32:37 2003 UTC revision 1.12 by mkoch, Sat Feb 15 09:29:18 2003 UTC
# Line 47  import java.io.ObjectInput; Line 47  import java.io.ObjectInput;
47  import java.io.Reader;  import java.io.Reader;
48  import java.io.StringReader;  import java.io.StringReader;
49  import java.io.UnsupportedEncodingException;  import java.io.UnsupportedEncodingException;
50    import java.nio.ByteBuffer;
51    import java.nio.CharBuffer;
52    
53  /**  /**
54    * This class represents a particular data format used for transferring    * This class represents a particular data format used for transferring
# Line 999  public Reader getReaderForText(Transfera Line 1001  public Reader getReaderForText(Transfera
1001      throw new UnsupportedFlavorException(this);      throw new UnsupportedFlavorException(this);
1002  }  }
1003    
1004      /**
1005       * Returns whether the representation class for this DataFlavor is
1006       * @see java.nio.ByteBuffer or a subclass thereof.
1007       *
1008       * @since 1.4
1009       */
1010      public boolean isRepresentationClassByteBuffer ()
1011      {
1012        try
1013          {
1014            return ByteBuffer.class.isAssignableFrom (representationClass);
1015          }
1016        catch (ClassNotFoundException e)
1017          {
1018            return false;
1019          }
1020      }
1021    
1022      /**
1023       * Returns whether the representation class for this DataFlavor is
1024       * @see java.nio.CharBuffer or a subclass thereof.
1025       *
1026       * @since 1.4
1027       */
1028      public boolean isRepresentationClassCharBuffer ()
1029      {
1030        try
1031          {
1032            return CharBuffer.class.isAssignableFrom (representationClass);
1033          }
1034        catch (ClassNotFoundException e)
1035          {
1036            return false;
1037          }
1038      }
1039    
1040      /**
1041       * Returns whether the representation class for this DataFlavor is
1042       * @see java.io.Reader or a subclass thereof.
1043       *
1044       * @since 1.4
1045       */
1046      public boolean isRepresentationClassReader ()
1047      {
1048        try
1049          {
1050            return Reader.class.isAssignableFrom (representationClass);
1051          }
1052        catch (ClassNotFoundException e)
1053          {
1054            return false;
1055          }
1056      }
1057    
1058  } // class DataFlavor  } // class DataFlavor
1059    

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26