class InitPassportPanel {
public void run() {
try {
FileInputStream in = new FileInputStream(fileToUpload);
service.writeFile(wrapper,
(short) (((fid[0] & 0x000000FF) << 8)
| (fid[1] & 0x000000FF)), in);
in.close();
} catch (IOException ioe) {
ioe.printStackTrace();
}
}
}
class InitPassportPanel {
public void run() {
try {
service.selectFile(wrapper, fid);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
class InitPassportPanel {
public void run() {
service.createFile(wrapper, fid, len);
}
}
|