mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 01:20:53 +07:00
16 lines
349 B
Java
16 lines
349 B
Java
import java.io.FileInputStream;
|
|
import java.io.IOException;
|
|
import java.nio.channels.FileChannel;
|
|
|
|
class C {
|
|
void m(File file) throws IOException {
|
|
int x;
|
|
FileChannel ch;
|
|
try (FileInputStream stream = new FileInputStream(file)) {
|
|
ch = stream.getChannel();
|
|
}
|
|
ch.close();
|
|
x = 0;
|
|
}
|
|
}
|