Class StringResourceRepositoryImpl

  • All Implemented Interfaces:
    StringResourceRepository

    public class StringResourceRepositoryImpl
    extends java.lang.Object
    implements StringResourceRepository
    Default implementation of StringResourceRepository. Uses a HashMap for storage
    Since:
    1.5
    Version:
    $Id: StringResourceRepositoryImpl.java 685724 2008-08-13 23:12:12Z nbubna $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String encoding
      Current Repository encoding.
      protected java.util.Map resources
      mem store
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getEncoding()
      Returns the current encoding of this repository.
      StringResource getStringResource​(java.lang.String name)
      get the string resource that is stored with given key
      void putStringResource​(java.lang.String name, java.lang.String body)
      add a string resource with given key.
      void putStringResource​(java.lang.String name, java.lang.String body, java.lang.String encoding)
      add a string resource with given key.
      void removeStringResource​(java.lang.String name)
      delete a string resource with given key.
      void setEncoding​(java.lang.String encoding)
      Sets the default encoding of the repository.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait