Package org.aoju.bus.core.toolkit
Class UriKit.Path
java.lang.Object
org.aoju.bus.core.toolkit.UriKit.Path
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(CharSequence segment) 添加到path最后面addBefore(CharSequence segment) 添加到path最前面构建path,前面带'/'getSegment(int index) 获得指定节点获取path的节点列表static UriKit.Path构建Path解析pathsetWithEndTag(boolean withEngTag) 是否path的末尾加/toString()
-
Constructor Details
-
Path
public Path()
-
-
Method Details
-
of
构建Path- Parameters:
pathStr- 初始化的路径字符串charset- decode用的编码,null表示不做decode- Returns:
UriKit.Path
-
setWithEndTag
是否path的末尾加/- Parameters:
withEngTag- 是否path的末尾加/- Returns:
- this
-
getSegments
-
getSegment
-
add
-
addBefore
添加到path最前面- Parameters:
segment- Path节点- Returns:
- this
-
parse
解析path- Parameters:
path- 路径,类似于aaa/bb/ccccharset- decode编码,null表示不解码- Returns:
- this
-
build
-
toString
-