All pastes #405042 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-03-21 13:56 UTC
rendered paste body
    public synchronized void seekTo(boolean flag, int i, RandomAccessFile randomaccessfile)
        throws IOException
    {
        if(!flag)
            return;
        if(i < 0 || i > 0x3c00000)
        {
            System.out.println("Badseek - pos:" + i + " len:" + randomaccessfile.length());
            i = 0x3c00000;
            try
            {
                Thread.sleep(1000L);
            }
            catch(Exception _ex) { }
        }
        randomaccessfile.seek(i);