Package com.webmethods.rtl.encode
Class JavaEncoder
java.lang.Object
com.webmethods.rtl.encode.Encoder
com.webmethods.rtl.encode.JavaEncoder
Encodes to and from Java.
Escapes \" \' \\ \n \r and \t.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.webmethods.rtl.encode.Encoder
Encoder.FixedCharArrayWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final char[]
protected static Encoder
protected static final char[]
protected static final char[]
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LINE_FEED
protected static final char[] LINE_FEED -
CARRIAGE_RETURN
protected static final char[] CARRIAGE_RETURN -
UNICODE
protected static final char[] UNICODE -
encoder
-
-
Constructor Details
-
JavaEncoder
public JavaEncoder()
-
-
Method Details
-
encoder
Returns the encoder instance. -
encode
Encodes to Java.- Specified by:
encode
in classEncoder
- Parameters:
src
- Char array to encode.soff
- Offset in the src array at which to begin reading.len
- Length of src array to encode.dst
- Writer in which to write the encoded chars.- Returns:
- Length of chars written to dst.
- Throws:
IOException
-
decode
Decodes from Java.- Specified by:
decode
in classEncoder
- Parameters:
src
- Char array to decode.soff
- Offset in the src array at which to begin reading.len
- Length of src array to decode.dst
- Writer in which to write the decoded chars.- Returns:
- Length of chars written to dst.
- Throws:
IOException
-