You can add extra characters that you want preserved, for example while encoding a URL you can add "/".
| Modifier and Type | Field and Description |
|---|---|
| private ByteChunk | |
| private C2BConverter | |
| private static final int | |
| private String | |
| private static final BitSet | |
| private static final Logger | |
| private final BitSet |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String | |
| public String | |
| private static void | |
| private static void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| bb | back to summary |
|---|---|
| private ByteChunk bb | |
| c2b | back to summary |
|---|---|
| private C2BConverter c2b | |
| debug | back to summary |
|---|---|
| private static final int debug | |
| encoding | back to summary |
|---|---|
| private String encoding | |
| initialSafeChars | back to summary |
|---|---|
| private static final BitSet initialSafeChars | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| safeChars | back to summary |
|---|---|
| private final BitSet safeChars | |
| UEncoder | back to summary |
|---|---|
| public UEncoder() | |
| addSafeCharacter | back to summary |
|---|---|
| public void addSafeCharacter(char c) | |
| encodeURL | back to summary |
|---|---|
| public String encodeURL(String url) Utility funtion to re-encode the URL. Still has problems with charset, since UEncoder mostly ignores it. | |
| encodeURL | back to summary |
|---|---|
| public String encodeURL(String uri, boolean toHexUpperCase) Utility function to re-encode the URL. Still has problems with charset, since UEncoder mostly ignores it.
| |
| initSafeChars | back to summary |
|---|---|
| private static void initSafeChars() | |
| log | back to summary |
|---|---|
| private static void log(String s) | |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String s) | |
| urlEncode | back to summary |
|---|---|
| public void urlEncode(Writer buf, String s) throws IOException URL Encode string, using a specified encoding. | |
| urlEncode | back to summary |
|---|---|
| public void urlEncode(Writer buf, String s, boolean toHexUpperCase) throws IOException URL Encode string, using a specified encoding. | |
| urlEncode | back to summary |
|---|---|
| public void urlEncode(Writer buf, byte[] bytes, int off, int len) throws IOException | |
| urlEncode | back to summary |
|---|---|
| public void urlEncode(Writer buf, byte[] bytes, int off, int len, boolean toHexUpperCase) throws IOException | |