public abstract class UnicodeEncoder extends Object
Constructor and Description |
---|
UnicodeEncoder() |
Modifier and Type | Method and Description |
---|---|
static String |
encode(String string)
Encodes the given string, so that it can be used within a html page.
|
static void |
encode(Writer writer,
char[] cbuf,
int off,
int len) |
static void |
encode(Writer writer,
String string) |
static void |
encode(Writer writer,
String cbuf,
int off,
int len) |
public static String encode(String string)
string
- the string to convertpublic static void encode(Writer writer, String string) throws IOException
IOException
public static void encode(Writer writer, char[] cbuf, int off, int len) throws IOException
IOException
public static void encode(Writer writer, String cbuf, int off, int len) throws IOException
IOException
Copyright © 2020 The Apache Software Foundation. All rights reserved.