1 | void setOutputEncoding(String outputEncoding) {↵ | | 1 | void setErrorEncoding(String errorEncoding) {↵
|
2 | if (outputEncoding == null) {↵ | | 2 | if (errorEncoding == null) {↵
|
3 | throw new IllegalArgumentException(↵ | | 3 | throw new IllegalArgumentException(↵
|
4 | "outputEncoding must not be null");↵ | | 4 | "errorEncoding must not be null");↵
|
5 | } else {↵ | | 5 | } else {↵
|
6 | this.outputEncoding = outputEncoding;↵ | | 6 | this.errorEncoding = errorEncoding;↵
|
7 | }↵ | | 7 | }↵
|
8 | }↵ | | 8 | }↵
|
|
9 | /**↵ | | 9 | /**↵
|
10 | * Set the error encoding.↵ | | 10 | * Set the input encoding.↵
|
11 | *↵ | | 11 | *↵
|
12 | * @param errorEncoding <code>String</code>.↵ | | 12 | * @param inputEncoding <code>String</code>.↵
|
13 | */↵ | | 13 | */↵
|
14 | public synchronized void setErrorEncoding(String errorEncoding) {↵ | | 14 | public synchronized void setInputEncoding(String inputEncoding) {↵
|
15 | if (errorEncoding == null) {↵ | | 15 | if (inputEncoding == null) {↵
|
16 | throw new IllegalArgumentException(↵ | | 16 | throw new IllegalArgumentException(↵
|
17 | "errorEncoding must not be null");↵ | | 17 | "inputEncoding must not be null");↵
|
18 | } else {↵ | | 18 | } else {↵
|
19 | this.errorEncoding = errorEncoding;↵ | | 19 | this.inputEncoding = inputEncoding;↵
|
20 | }↵ | | 20 | }↵
|
21 | | | 21 |
|