依赖
compile 'org.greenrobot:essentials:3.0.0-RC1'
APIDoc
GitHub
功能
- IO utilities help with streams (byte and character based) and digests (e.g. MD5 and SHA-1).
- File utilities simplify reading and writing strings/bytes/objects from or to files. Also includes getting hashes from files and copying files.
- String utilities allow efficient splitting and joining of strings, hex and MD5 creation, and other useful string helpers.
- Date utilities.
- Better hash functions: our Murmur3 implementation provides superior hash quality and outperforms standard Java hash functions
- Specialized Streams: for example an optimized PipedOutputStream replacement (based on a circular byte buffer)
- Hash set and map for primitive long keys outperform the generic versions of the Java Collection APIs
- Multimaps provide a map of lists or sets to simplify storing multiple values for a single key
- Object cache with powerful configuration options: soft/weak/strong references, maximum size, and time-based expiration
- Base64 implementation (bundled from iharder.net) for lower versions of Java & Android (includes input/output streams)
StringUtils
encodeUrl 生成URL成字符串(UTF-8编码)
encodeUrlIso 生成URL成字符串(ISO-8859-1编码)