mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-08 00:36:19 +00:00
Prg
This commit is contained in:
@@ -204,12 +204,13 @@ public class IrisObject extends IrisRegistrant
|
||||
center = new BlockVector(w / 2, h / 2, d / 2);
|
||||
}
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
public static BlockVector sampleSize(File file) throws IOException
|
||||
{
|
||||
FileInputStream in = new FileInputStream(file);
|
||||
DataInputStream din = new DataInputStream(in);
|
||||
BlockVector bv = new BlockVector(din.readInt(), din.readInt(), din.readInt());
|
||||
din.close();
|
||||
Iris.later(() -> din.close());
|
||||
return bv;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user