mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2025-02-20 13:02:36 +01:00
small
This commit is contained in:
parent
3f8121e157
commit
7f4336cc61
@ -195,11 +195,7 @@ public class HPacket implements StringifyAble {
|
||||
private String readString(int index, int length) {
|
||||
byte[] x = new byte[length];
|
||||
for (int i = 0; i < x.length; i++) { x[i] = readByte(index); index++; }
|
||||
try {
|
||||
return new String(x, "ISO-8859-1");
|
||||
} catch (UnsupportedEncodingException e) { }
|
||||
|
||||
return null;
|
||||
return new String(x, StandardCharsets.ISO_8859_1);
|
||||
}
|
||||
|
||||
public String readLongString() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user