Audiovox P965 Arkusz Danych Strona 103

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 280
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 102
API in Java
100
return;
}
sk = a ^ 0xC00000;
} else {
if (a < 0xF0) {
try {
for (int i = 0; i < 3; i++) {
a = a << 8;
a += in.read();
}
} catch (IOException ex) {
Logger.getLogger(ReadCommand.class.getName()).log(Level.SEVERE, null, ex);
return;
}
sk = a ^ 0xE0000000;
} else {
if (a < 0xF8) {
try {
a = 0;
for (int i = 0; i < 5; i++) {
a = a << 8;
a += in.read();
}
} catch (IOException ex) {
Logger.getLogger(ReadCommand.class.getName()).log(Level.SEVERE, null, ex);
return;
}
} else {
}
}
}
}
}
s += "\n";
byte[] bb = new byte[sk];
try {
a = in.read(bb, 0, sk);
} catch (IOException ex) {
a = 0;
ex.printStackTrace();
return;
}
if (a > 0) {
s += new String(bb);
}
} else if (b == -1) {
System.out.println("Error, it should not happen ever, or connected to wrong port");
Przeglądanie stron 102
1 2 ... 98 99 100 101 102 103 104 105 106 107 108 ... 279 280

Komentarze do niniejszej Instrukcji

Brak uwag