FileDocCategorySizeDatePackage
SampleInterface.javaAPI DocExample1412Tue Dec 12 18:58:48 GMT 2000None

SampleInterface

public class SampleInterface extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

      try {
          RandomAccessFile r = new RandomAccessFile("myfile", "r");
          printInterfaceNames(r);
      } catch (IOException e) {
          System.out.println(e);
      }
   
static voidprintInterfaceNames(java.lang.Object o)

      Class c = o.getClass();
      Class[] theInterfaces = c.getInterfaces();
      for (int i = 0; i < theInterfaces.length; i++) {
         String interfaceName = theInterfaces[i].getName();
         System.out.println(interfaceName);
      }