package org.simantcs.simulation; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import org.simantics.databoard.Bindings; import org.simantics.utils.FileUtils; public class ReadLockTest { public static void main(String[] args) throws IOException { File file = File.createTempFile("deleteme", ".TMP"); byte[] data = new byte[40]; FileUtils.writeFile(file, data); FileInputStream fis = new FileInputStream(file); FileInputStream fis2 = new FileInputStream(file); FileUtils.readFile(fis, Bindings.INTEGER); FileUtils.readFile(fis2, Bindings.INTEGER); fis.close(); fis2.close(); } }