org.apache.myfaces.custom.stylesheet
Class TextResourceFilterProvider

java.lang.Object
  extended by org.apache.myfaces.custom.stylesheet.TextResourceFilterProvider
All Implemented Interfaces:
ResourceProvider

public class TextResourceFilterProvider
extends java.lang.Object
implements ResourceProvider

provdes a simple string as utf-8 encoded resource


Constructor Summary
TextResourceFilterProvider()
           
 
Method Summary
 boolean exists(javax.servlet.ServletContext context, java.lang.String resource)
          check if the resource exists
 int getContentLength(javax.servlet.ServletContext context, java.lang.String resource)
          get the content length of the resource
 java.lang.String getEncoding(javax.servlet.ServletContext context, java.lang.String resource)
          get resource encoding
 java.io.InputStream getInputStream(javax.servlet.ServletContext context, java.lang.String resource)
          get the input stream of the resource
 long getLastModified(javax.servlet.ServletContext context, java.lang.String resource)
          get the last modified time of the resource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextResourceFilterProvider

public TextResourceFilterProvider()
Method Detail

exists

public boolean exists(javax.servlet.ServletContext context,
                      java.lang.String resource)
Description copied from interface: ResourceProvider
check if the resource exists

Specified by:
exists in interface ResourceProvider

getContentLength

public int getContentLength(javax.servlet.ServletContext context,
                            java.lang.String resource)
                     throws java.io.IOException
Description copied from interface: ResourceProvider
get the content length of the resource

Specified by:
getContentLength in interface ResourceProvider
Throws:
java.io.IOException

getLastModified

public long getLastModified(javax.servlet.ServletContext context,
                            java.lang.String resource)
                     throws java.io.IOException
Description copied from interface: ResourceProvider
get the last modified time of the resource

Specified by:
getLastModified in interface ResourceProvider
Throws:
java.io.IOException

getInputStream

public java.io.InputStream getInputStream(javax.servlet.ServletContext context,
                                          java.lang.String resource)
                                   throws java.io.IOException
Description copied from interface: ResourceProvider
get the input stream of the resource

Specified by:
getInputStream in interface ResourceProvider
Throws:
java.io.IOException

getEncoding

public java.lang.String getEncoding(javax.servlet.ServletContext context,
                                    java.lang.String resource)
                             throws java.io.IOException
Description copied from interface: ResourceProvider
get resource encoding

Specified by:
getEncoding in interface ResourceProvider
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.