Class OpenWrap
java.lang.Object
cloud.opencode.base.string.text.OpenWrap
Text Wrap Utility - Provides text wrapping methods.
文本换行工具 - 提供文本换行方法。
Features | 主要功能:
- Word-based line wrapping - 基于单词的换行
- Configurable line separator - 可配置行分隔符
- Text indentation - 文本缩进
Usage Examples | 使用示例:
String wrapped = OpenWrap.wrap("long text here", 10);
String indented = OpenWrap.indent("line1\nline2", 4);
Security | 安全性:
- Thread-safe: Yes (stateless utility) - 线程安全: 是(无状态工具类)
- Null-safe: Yes - 空值安全: 是
- Since:
- JDK 25, opencode-base-string V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Method Summary
-
Method Details
-
wrap
-
wrap
-
indent
-
indent
-