Package com.webmethods.rtl.encode
Class RegexpEncoder
java.lang.Object
com.webmethods.rtl.encode.Encoder
com.webmethods.rtl.encode.RegexpEncoder
Encodes to and from Regexp.
Escapes /\{}().*+?|[]^$ plus cr and lf.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.webmethods.rtl.encode.Encoder
Encoder.FixedCharArrayWriter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
encoder
-
-
Constructor Details
-
RegexpEncoder
public RegexpEncoder()
-
-
Method Details
-
encoder
Returns the encoder instance. -
encode
Encodes to the format. -
decode
Decodes from the format. -
encode
Encodes to Regexp.- 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 Regexp.- 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
-