SMILA 1.0 API documentation

org.eclipse.smila.connectivity.framework.crawler.web.util
Class StringUtil

java.lang.Object
  extended by org.eclipse.smila.connectivity.framework.crawler.web.util.StringUtil

public class StringUtil
extends java.lang.Object

A collection of String processing utility methods.


Constructor Summary
StringUtil()
           
 
Method Summary
static java.lang.String parseCharacterEncoding(java.lang.String contentType)
          Parse the character encoding from the specified content type header.
static java.lang.String resolveEncodingAlias(java.lang.String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtil

public StringUtil()
Method Detail

parseCharacterEncoding

public static java.lang.String parseCharacterEncoding(java.lang.String contentType)
Parse the character encoding from the specified content type header. If the content type is null, or there is no explicit character encoding, null is returned.
This method was copy from org.apache.catalina.util.RequestUtil is licensed under the Apache License, Version 2.0 (the "License").

Parameters:
contentType - a content type header

resolveEncodingAlias

public static java.lang.String resolveEncodingAlias(java.lang.String encoding)

SMILA 1.0 API documentation