//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private java.io.File file(java.io.File parent, String name, int size) throws java.io.IOException private File File(File parent, string name, int size) { File file = new File(parent, name); using (StoreChannel channel = Fs.create(file)) { ByteBuffer buffer = ByteBuffer.allocate(size); buffer.position(size).flip(); channel.write(buffer); } return(file); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private void createFile(java.io.File file) throws java.io.IOException private void CreateFile(File file) { Fs.mkdirs(file.ParentFile); Fs.create(file).close(); }