ar.com.ktulu.dict
Class StringDefinition

java.lang.Object
  |
  +--ar.com.ktulu.dict.StringDefinition
All Implemented Interfaces:
Definition

public class StringDefinition
extends java.lang.Object
implements Definition

A word definition stored in a String.

Author:
Luis Parravicini

Constructor Summary
StringDefinition(java.lang.String s)
           
 
Method Summary
 java.lang.Object getContent()
          Return the word definition.
 java.lang.String getContentEncoding()
          Return the encoding of this definition.
 java.lang.String getContentType()
          Return the content type of this definition.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringDefinition

public StringDefinition(java.lang.String s)
Method Detail

getContentType

public java.lang.String getContentType()
Description copied from interface: Definition
Return the content type of this definition. If it returns null the default mime type defined in the RFC is assumed ("text/plain; charset=utf-8").

Specified by:
getContentType in interface Definition

getContentEncoding

public java.lang.String getContentEncoding()
Description copied from interface: Definition
Return the encoding of this definition. If it returns null the default mime type defined in the RFC is assumed ("8bit").

Specified by:
getContentEncoding in interface Definition

getContent

public java.lang.Object getContent()
Description copied from interface: Definition
Return the word definition. The returned object must do something meaningful in toString() as this is what the server uses to send the definition to the client.

Specified by:
getContent in interface Definition

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object