索引
- PersistentCategoryKeyValueContent
- ITreeContent
- ItemContent
- InstantaneousTreeContent
- ICodedTreeContent
- IKeyValueContent
- InstantaneousCodedTreeContent
- InstantaneousKeyValueContent
- IGlobalizationContent
- EntityUtil
- EntityStore
- ICategoryTreeContent
- ICategoryKeyValueContent
- ICodedCategoryTreeContent
- EntityJoin
- EntityCapsule
- CacheKeyValueContent
- CacheTreeContent
- ClassContent
- ProxySupport
- CacheCodedTreeContent
- Business
- ValidationSupport
- Validation
- IFinallyAspect
- Intercept
- InvokeContext
- IProxyLoader
- ProxyFactory
- IAspect
- IAroundAspect
- FinallyAspectSupport
- AroundAspectSupport
- AOPUnknownBreak
- AOPBreak
- AOPTransactionBreak
- GridView
- JSONOut
- Galleria
- package-frame
- package-summary
- package-tree
- package-use
- LoginSessionListener
- ApplicationContextListener
- TransactionFilter
- FileUploader.FileUploaderStatus
- FileUploader
- CharacterEncodingFilter
- ImageRedirectFilter
- FileUploader.FileUploaderListener
- PrintWriterDecorator
- IFormatter
- TokenPool
- HttpServletResponseDecorator
- HttpServletRequestDecorator
- ICryptography
- DynamicSecret
- CryptographySupport
- OrmTransactionContext
- OrmPersistenceFactory
- OrmPersistenceCollection
- CryptographyFactory
- OrmContexts
- OrmDatabaseTransaction
- OrmDefinitionContext
- OrmManipulationQueryContext
- OrmPersistence
- IOrmPersistence
- IOrmManipulationQuery
- IOrmTransaction
- Order
- OrmConstant
- IOrmDefinition
- DatabaseHelperSupport
- Entity
- FieldProperty
- Fields
- XMLFormatter
- SetList
- AggregateField
- Condition
- DatabaseHelper
- JSONFormatter
- ISetList
- MapList
- Names
- NameValue
- ServiceRouter
- StreamView
- TextView
- XMLView
- IMapList
- ServiceController
- RouterSupport
- Router
- RedirectView
- MVCRenderException
- MVCNotFoundException
- MVCInternalException
- JSPRouter
- JSPView
- Model
- MVCException
- MVCInstantiationException
- IModel
- IRouter
- IView
- JSONView
- JSPController
- ImageView
- IController
- HTMLView
- ForwardView
- Controller
- MailSender
- RandomGenerator
- ReflectionUtil
- ReservedWord
- QRCode
- LoggerSupport
- ChinesePinYin
- HttpExecuter
- IdCardValidator
- ImageValidateCode
- User32.RECT
- User32.SIZE
- KCLInformation
- IAppender
- Logger
- User32.POINT
- User32
- Identify
- FacadeDirectory
- FacadeIO
- TextReader
- TextWriter
- LocalizationLanguage
- Convert
- Comments
- WinFormInstallationBuilder
- WebFormInstallationBuilder
- PersistentTreeContent
- ServiceBusiness
- TreeContent
- CallingOnly
- CodeBuilder
- PersistentCategoryTreeContent
- PersistentCodedCategoryTreeContent
- PersistentCodedTreeContent
- PersistentGlobalizationContent
- PersistentKeyValueContent
- XMLDocumentEx
- WxOAuthAdapter
- WxPayAdapter
- WxSupport
- KCLConfig
- XMLDocument
- WxOAthAdapter
- WxAdapterSupport
- WxBasicAdapter
- WxMenuAdapter
- WxMessageDispatcher
- IWxReceivedListener
- TreeNode
- TreeLeaf
- Tree
- Train
- IWxEventListener
- ITreeNode
- MapQueue
- DateTime
- Forest
- ICache
- IMapQueue
- ThreadUnsafe
- UnimplementedException
- Untested
- ThreadSafe
- Cache
- MultiThreadUnitTest
- Debugger
- IUnitTest
- UnitTest
- Tested
- UploadView
- TreeView
- Paging
- StringHelper
- RichText
- Video
- Music
- ListView
- Label
- KCLTag
com.knots.kcl
Class StringHelper
java.lang.Object com.knots.kcl.StringHelper
public class StringHelper
- extends java.lang.Object
Provide some useful operation of string.
Constructor Summary | |
---|---|
StringHelper() |
Method Summary | |
---|---|
static java.lang.String | decodeHTMLChars(java.lang.String str) Unchange special characters to html format. |
static java.lang.String | empty() Get the empty string ending with '\0'. |
static java.lang.String | encodeHTMLChars(java.lang.String str) Change special characters to html format. |
static java.lang.String | inline(java.lang.String str) Remove blank characters of string. |
static boolean | isNotNullOrEmpty(java.lang.Object obj) Check whether a stirng is not null or empty. |
static boolean | isNullOrEmpty(java.lang.Object obj) Check whether a stirng is null or empty. |
static java.lang.String | left(java.lang.String str, int length) Get the left sub=string. |
static java.lang.String | omit(java.lang.String str, int limit) Append omit text to a string. |
static java.lang.String | plain(java.lang.String text, java.lang.Integer arg1) |
static java.lang.String | right(java.lang.String str, int length) Get the right sub=string. |
static java.lang.String | slashes(java.lang.String str) Add slashes to string. |
static java.lang.String | strip(java.lang.String str) Strip HTML tags. |
static java.lang.String | unslashes(java.lang.String str) Remove slashes to string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
StringHelper
public StringHelper()
Method Detail |
---|
empty
public static java.lang.String empty()
- Get the empty string ending with '\0'.
left
public static java.lang.String left(java.lang.String str, int length)
- Get the left sub=string.
right
public static java.lang.String right(java.lang.String str, int length)
- Get the right sub=string.
inline
public static java.lang.String inline(java.lang.String str)
- Remove blank characters of string.
omit
public static java.lang.String omit(java.lang.String str, int limit)
- Append omit text to a string.
strip
public static java.lang.String strip(java.lang.String str)
- Strip HTML tags.
plain
public static java.lang.String plain(java.lang.String text, java.lang.Integer arg1)
slashes
public static java.lang.String slashes(java.lang.String str)
- Add slashes to string.
unslashes
public static java.lang.String unslashes(java.lang.String str)
- Remove slashes to string.
encodeHTMLChars
public static java.lang.String encodeHTMLChars(java.lang.String str)
- Change special characters to html format. Special characters: '&', ' ', '"', '<', '>'.
decodeHTMLChars
public static java.lang.String decodeHTMLChars(java.lang.String str)
- Unchange special characters to html format. Special characters: '&', ' ', '"', '<', '>'.
isNullOrEmpty
public static boolean isNullOrEmpty(java.lang.Object obj)
- Check whether a stirng is null or empty.
isNotNullOrEmpty
public static boolean isNotNullOrEmpty(java.lang.Object obj)
- Check whether a stirng is not null or empty.