Package stallone.io

Examples of stallone.io.CachedRandomAccessFile


        // read file header only once.
        if (this.initialized)
            return;
       
        // read input file trajectory
        this.randomAccessFile = new CachedRandomAccessFile(filename);
        // for non cached access
        // this.randomAccessFile2 = new RandomAccessFile( filename, "r" );

        this.fileSize = randomAccessFile.length(); // get amount of bytes randomAccessFile file
View Full Code Here


    @Override
    public void open()
            throws IOException
    {
        this.randomAccessFile = new CachedRandomAccessFile(filename);
    }
View Full Code Here

            IOException
    {
        this.filename = filename;
        this.usedCommentPattern = commentPattern;

        randomAccessFile = new CachedRandomAccessFile(filename);

        this.lineStartOffsets = null;
    }
View Full Code Here

    public void open()
            throws IOException
    {
        if (randomAccessFile != null)
            randomAccessFile.close();
        randomAccessFile = new CachedRandomAccessFile(filename);
        scanned = false;
    }
View Full Code Here

TOP

Related Classes of stallone.io.CachedRandomAccessFile

Copyright © 2018 www.massapicom. 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.