Brooklyn

Package brooklyn.util.text

 

Interface Summary
StringShortener.ShorteningRule
 


Class Summary
ByteSizeStrings
ComparableVersion takes a version string, and compares to other versions, using NaturalOrderComparator
DataUriSchemeParser implementation (currently hokey) of RFC-2397 data: URI scheme.
FormattedString wraps a call to String#format(String, Object...) in a toString, i.e. using %s syntax, useful for places where we want deferred evaluation (e.g. as message to Preconditions to skip concatenation when not needed)
Identifiers
KeyValueParser Parses a String that consists of multiple arguments, which are either single or key-value pairs.
NaturalOrderComparator comparator which takes two strings and puts them in an order with special rules for numbers to be placed in numeric order; e.g. "10">"9", including when those numbers occur in the midst of equal text; e.g.
QuotedStringTokenizer As 'StringTokenizer' but items in quotes (single or double) are treated as single tokens (cf mortbay's QuotedStringTokenizer)
QuotedStringTokenizer.Builder
StringEscapes
StringEscapes.BashStringEscapes
StringEscapes.JavaStringEscapes
StringFunctions
StringPredicates
StringPredicates.EqualToAny
StringShortener utility which takes a bunch of segments and applies shortening rules to them
StringShortener.RemovalRule
StringShortener.TruncationRule
Strings
TemplateProcessor
WildcardGlobs
WildcardGlobs.ExpressionToExpand returns true iff the target matches the given pattern, under simplified bash rules -- viz permitting * and ?
WildcardGlobs.SpecialistGlobExpander expands glob, including custom syntax for numeric part
 


Enum Summary
WildcardGlobs.PhraseTreatment if a string contains a demarcated phrase, e.g. between open and close parentheses, or inside unescaped quotes this argument determines how that phrase is treated with regards to brace expansion
 


Exception Summary
WildcardGlobs.InvalidPatternException
 


Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.