private void detailFile(DataInputStream in, ObjectOutputStream oOut) {
try {
String fileName = in.readUTF();
File tmp = new File(file, fileName);
if (tmp.isFile()) {
oOut.writeObject(tmp);
} else {
oOut.writeObject(null);
}
fileName = null;
tmp = null;
} catch (Exception e) {
try {
oOut.writeObject(null);
} catch (Exception e2) {
}
}
} |