Lizzy v1.1.1

christophedelory.lizzy
Class ContentTypeInfo

java.lang.Object
  extended by christophedelory.lizzy.ContentTypeInfo

public final class ContentTypeInfo
extends Object

Various representations of a content type.

Since:
0.2.0
Version:
$Revision: 91 $
Author:
Christophe Delory

Method Summary
static void main(String[] args)
          The test program entry point.
static String toHTML(ContentType contentType)
          Returns an HTML fragment representing the input content type.
static String toString(ContentType contentType)
          Returns a string representation of the input content type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toString

public static String toString(ContentType contentType)
Returns a string representation of the input content type.

Parameters:
contentType - a content type. Shall not be null.
Returns:
a string representing the specified content type. Shall not be null.
Throws:
NullPointerException - if contentType is null.

toHTML

public static String toHTML(ContentType contentType)
Returns an HTML fragment representing the input content type.

Parameters:
contentType - a content type. Shall not be null.
Returns:
an HTML fragment representing the specified content type. Shall not be null.
Throws:
NullPointerException - if contentType is null.

main

public static void main(String[] args)
The test program entry point.

Parameters:
args - the input parameters.

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.