1 |
|
package org.europa.together.domain; |
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (8) |
Complexity: 3 |
Complexity Density: 0.6 |
|
6 |
|
public enum ByteOrderMark { |
7 |
|
|
8 |
|
NONE("NONE", new byte[]{}), |
9 |
|
UTF_8("UTF-8", new byte[]{(byte) 0xEF, (byte) 0xBB, (byte) 0xBF}), |
10 |
|
UTF_16LE("UTF-16LE", new byte[]{(byte) 0xFF, (byte) 0xFE}), |
11 |
|
UTF_16BE("UTF-16BE", new byte[]{(byte) 0xFE, (byte) 0xFF}), |
12 |
|
UTF_32LE("UTF-32LE", new byte[]{(byte) 0xFF, (byte) 0xFE, (byte) 0x00, (byte) 0x00}), |
13 |
|
UTF_32BE("UTF-32BE", new byte[]{(byte) 0x00, (byte) 0x00, (byte) 0xFE, (byte) 0xFF}); |
14 |
|
|
15 |
|
private final String type; |
16 |
|
private final byte[] value; |
17 |
|
|
18 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
19 |
6 |
ByteOrderMark(final String type, final byte[] value) {... |
20 |
6 |
this.type = type; |
21 |
6 |
this.value = value; |
22 |
|
} |
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
@return |
28 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
29 |
87 |
public byte[] getBytes() {... |
30 |
87 |
byte[] val = this.value; |
31 |
87 |
return val; |
32 |
|
} |
33 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
34 |
32 |
@Override... |
35 |
|
public String toString() { |
36 |
32 |
return this.type; |
37 |
|
} |
38 |
|
} |