mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
15 lines
353 B
Java
15 lines
353 B
Java
import java.io.*;
|
|||
|
|||
public class TwrTest {
|
|||
public void safeTwr(String path) throws IOException {
|
|||
try (FileInputStream fis = new FileInputStream(path)) {
|
|||
fis.read();
|
|||
}
|
|||
}
|
|||
|
|||
public void unsafeManual(String path) throws IOException {
|
|||
FileInputStream fis = new FileInputStream(path);
|
|||
fis.read();
|
|||
}
|
|||
}
|