mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 11:36:59 +07:00
11 lines
333 B
Java
11 lines
333 B
Java
// "Replace with 'StandardCharsets.ISO_8859_1'" "true"
|
|
import java.io.UnsupportedEncodingException;
|
|
|
|
class Test {
|
|
void test(byte[] bytes) throws UnsupportedEncodingException {
|
|
String string = new String(bytes, 0, 100, "ISO-8859<caret>-1");
|
|
if(string.startsWith("Foo")) {
|
|
System.out.println("It's a foo!");
|
|
}
|
|
}
|
|
} |