Project JXTA

net.jxta.document
Class StructuredDocumentFactory.Instantiator.ExtensionMapping

java.lang.Object
  extended bynet.jxta.document.StructuredDocumentFactory.Instantiator.ExtensionMapping
Enclosing class:
StructuredDocumentFactory.Instantiator

public static class StructuredDocumentFactory.Instantiator.ExtensionMapping
extends Object

For mapping between extensions and mime types.


Constructor Summary
StructuredDocumentFactory.Instantiator.ExtensionMapping(String extension, MimeMediaType mimetype)
          default constructor
 
Method Summary
protected  Object clone()
           
 boolean equals(Object target)
           
 String getExtension()
          returns the extension which is part of this mapping.
 MimeMediaType getMimeMediaType()
          returns the MIME Media Type which is part of this mapping.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StructuredDocumentFactory.Instantiator.ExtensionMapping

public StructuredDocumentFactory.Instantiator.ExtensionMapping(String extension,
                                                               MimeMediaType mimetype)
default constructor

Method Detail

clone

protected Object clone()

equals

public boolean equals(Object target)

hashCode

public int hashCode()

toString

public String toString()

getExtension

public String getExtension()
returns the extension which is part of this mapping.

Returns:
the extension which is part of this mapping.

getMimeMediaType

public MimeMediaType getMimeMediaType()
returns the MIME Media Type which is part of this mapping.

Returns:
the MIME Media Type which is part of this mapping.

JXTA J2SE