Exemple #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private java.io.File createMetaDataFile() throws java.io.IOException
        private File CreateMetaDataFile()
        {
            File file = _testDirectory.databaseLayout().metadataStore();

            _fs.create(file).close();
            return(file);
        }
Exemple #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void createFileOfSize(java.io.File file, int size) throws java.io.IOException
        private void CreateFileOfSize(File file, int size)
        {
            using (StoreChannel storeChannel = _fs.create(file))
            {
                sbyte[]    bytes  = new sbyte[size];
                ByteBuffer buffer = ByteBuffer.wrap(bytes);
                storeChannel.WriteAll(buffer);
            }
        }