|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.encode.EncodeUtil
public class EncodeUtil
Utility functions for encoding/decoding strings.
Constructor Summary | |
---|---|
EncodeUtil()
|
Method Summary | |
---|---|
static List<String> |
decodeAll(Collection<String> values,
EncoderDecoder decoder)
Decode all strings in a collection. |
static List<String> |
encodeAll(Collection<String> values,
EncoderDecoder encoder)
Encode all strings in a collection. |
static String |
encodeAndJoin(Collection<String> values,
EncoderDecoder encoder,
String separator,
boolean skipNull)
Encode all strings in a collection and join them into a single string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EncodeUtil()
Method Detail |
---|
public static List<String> encodeAll(Collection<String> values, EncoderDecoder encoder)
values
- A collection with values that should be encodedencoder
- The encoder implemenation to use
public static List<String> decodeAll(Collection<String> values, EncoderDecoder decoder)
values
- A collection with values that should be decodeddecoder
- The decoder implemenation to use
public static String encodeAndJoin(Collection<String> values, EncoderDecoder encoder, String separator, boolean skipNull)
values
- A collection with values that should be encodedencoder
- The encoder implemenation to useseparator
- The separator string that is inserted between the decoded valuesskipNull
- TRUE to skip null values (before and after encoding)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |