How Can I create a custom Class in Dataflavor?
<pre><code>private static final DataFlavor flavors[] = { DataFlavor.javaFileListFlavor};
</code></pre>

<p>I want to create a custom dataflavor with custom class just like code below except string class. I want to set a class created by me. </p>

<pre><code>class MyClass extends DataFlavor
{   
    public MyClass MyClass() 
    {       

    }   
}

static DataFlavor flavor1 = new DataFlavor(MyClass.class, null);
</code></pre>

<p>How do I create a class which is suitable in Dataflavor?</p>
