JXTA

net.jxta.document
Class StructuredDocumentFactory.Instantiator.ExtensionMapping

java.lang.Object
  extended by net.jxta.document.StructuredDocumentFactory.Instantiator.ExtensionMapping
Enclosing interface:
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
 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StructuredDocumentFactory.Instantiator.ExtensionMapping

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

Method Detail

equals

public boolean equals(Object target)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object

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.

JXSE