468469470471472473474475476477478
sequentialFile.open(1, false); if (init) { sequentialFile.fill(0, fileSize, JournalImpl.FILL_CHARACTER); JournalImpl.initFileHeader(fileFactory, sequentialFile, userVersion, fileID); } long position = sequentialFile.position();
605606607608609610611612613614615
602603604605606607608609610611612
580581582583584585586587588589590
284285286287288289290291292293294
sf.open(); try { sf.fill(0, 3 * 512, (byte)0); String s1 = "orange"; byte[] bytes1 = s1.getBytes("UTF-8"); byte[] bytes2 = s1.getBytes("UTF-8");
365366367368369370371372373374375
{ SequentialFile sf = factory.createSequentialFile("openclose.hq", 1); sf.open(); sf.fill(0, 512, (byte)0); String s1 = "cheesecake"; byte[] bytes1 = s1.getBytes("UTF-8"); long initialPos = sf.position();
603604605606607608609610611612613
30233024302530263027302830293030303130323033
sequentialFile.open(1, false); if (init) { sequentialFile.fill(0, fileSize, JournalImpl.FILL_CHARACTER); initFileHeader(this.fileFactory, sequentialFile, userVersion, fileID); } long position = sequentialFile.position();
31713172317331743175317631773178317931803181
111112113114115116117118119120121
file.delete(); } file.open(); file.fill(0, fileSize, (byte)'X'); if (!AIO) { file.sync(); }