|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.data.PathLib
public class PathLib
Library methods for dealing with Paths and string representations of Paths.
Copyright 2007 Partner Software, Inc.
| Constructor Summary | |
|---|---|
PathLib()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
fileDecode(java.lang.String string)
Decodes a String representing the name of a node in the path. |
static java.lang.String |
fileEncode(java.lang.String string)
Encodes a String representing the name of a node in the path, so that e.g. |
static java.lang.String |
fileEncodeAndJoin(java.lang.String[] parts)
Encodes each part to deal with embedded slashes and other problems, then joins them together into a single slash-separated String. |
static java.lang.String[] |
fileSplitAndDecode(java.lang.String pathString)
Splits the given Path String, decodes each part and returns it as a String array. |
static java.lang.String |
urlDecode(java.lang.String string)
Decodes a String representing the name of a node in the path. |
static java.lang.String |
urlEncode(java.lang.String string)
Encodes a String representing the name of a node in the path, so that e.g. |
static java.lang.String |
urlEncodeAndJoin(java.lang.String[] parts)
Encodes each part to deal with embedded slashes and other problems, then joins them together into a single slash-separated String. |
static java.lang.String[] |
urlSplitAndDecode(java.lang.String pathString)
Splits the given Path String, decodes each part and returns it as a String array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PathLib()
| Method Detail |
|---|
public static java.lang.String urlEncode(java.lang.String string)
URLEncoder.
string - input name
public static java.lang.String urlDecode(java.lang.String string)
URLDecoder.
string - input name
public static java.lang.String[] urlSplitAndDecode(java.lang.String pathString)
pathString - Path represented and encoded as a String.
public static java.lang.String urlEncodeAndJoin(java.lang.String[] parts)
parts - parts to join
public static java.lang.String fileEncode(java.lang.String string)
string - input name
public static java.lang.String fileDecode(java.lang.String string)
string - input name
public static java.lang.String[] fileSplitAndDecode(java.lang.String pathString)
pathString - Path represented and encoded as a String.
public static java.lang.String fileEncodeAndJoin(java.lang.String[] parts)
parts - parts to join
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||