Package krati.io

Examples of krati.io.DataWriter.writeInt()


            // Save entry head
            out.writeLong(STORAGE_VERSION); // write the entry file version
            out.writeLong(_minScn);
            out.writeLong(_maxScn);
            out.writeInt(size());

            // Save entry body
            saveDataSection(out);

            // Save entry tail.
View Full Code Here


        raf.setLength(fileLength);
       
        DataWriter writer = createDataWriter(file);
        writer.open();
       
        writer.writeInt(12345);
        writer.writeInt(54321);
        writer.writeInt(Integer.MAX_VALUE);
       
        writer.writeLong(0L);
        writer.writeLong(-123L);
View Full Code Here

       
        DataWriter writer = createDataWriter(file);
        writer.open();
       
        writer.writeInt(12345);
        writer.writeInt(54321);
        writer.writeInt(Integer.MAX_VALUE);
       
        writer.writeLong(0L);
        writer.writeLong(-123L);
        writer.writeLong(Long.MAX_VALUE);
View Full Code Here

        DataWriter writer = createDataWriter(file);
        writer.open();
       
        writer.writeInt(12345);
        writer.writeInt(54321);
        writer.writeInt(Integer.MAX_VALUE);
       
        writer.writeLong(0L);
        writer.writeLong(-123L);
        writer.writeLong(Long.MAX_VALUE);
       
View Full Code Here

        }
       
        DataWriter writer = createDataWriter(file);
        writer.open();
        for(int i = 0, cnt = posList.size(); i < cnt; i++) {
            writer.writeInt(posList.get(i), valList.get(i));
        }
        writer.flush();
        writer.close();
       
        DataReader reader = createDataReader(file);
View Full Code Here

        }
       
        DataWriter writer = createDataWriter(file);
        writer.open();
        for(int i = 0, cnt = posList.size(); i < cnt; i++) {
            writer.writeInt(posList.get(i), valList.get(i));
        }
        writer.flush();
        writer.close();
       
        DataReader reader = createDataReader(file);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.