Audiovox P965 Scheda Tecnica Pagina 103

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 280
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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");
Vedere la pagina 102
1 2 ... 98 99 100 101 102 103 104 105 106 107 108 ... 279 280

Commenti su questo manuale

Nessun commento