org.jbehave.core.i18n
Class StringEncoder
java.lang.Object
org.jbehave.core.i18n.StringEncoder
public class StringEncoder
- extends Object
Supports encoding of strings using specified charsets for encoding (i.e. from
String to byte[]) and decoding (i.e. from byte[] to String).
Constructor Summary |
StringEncoder()
Creates an encoder using "UTF-8" for encoding and decoding |
StringEncoder(String encoding,
String decoding)
Creates an encoder using the specifed charsets for encoding and decoding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UTF_8
public static final String UTF_8
- See Also:
- Constant Field Values
StringEncoder
public StringEncoder()
- Creates an encoder using "UTF-8" for encoding and decoding
StringEncoder
public StringEncoder(String encoding,
String decoding)
- Creates an encoder using the specifed charsets for encoding and decoding
- Parameters:
encoding
- the name of the encoding charsetdecoding
- the name of the decoding charset
encode
public String encode(String value)
Copyright © 2003-2010. All Rights Reserved.