ist.palcom.base.storage
Class RandomAccessFileWrapper

java.lang.Object
  extended by ist.palcom.base.storage.RandomAccessFileWrapper

public class RandomAccessFileWrapper
extends Object


Constructor Summary
RandomAccessFileWrapper(FileWrapper pfile, int mode)
           
 
Method Summary
 void close()
           
 boolean delete()
           
 long getFilePointer()
           
 long length()
           
 int open(FileWrapper pfile, int mode)
           
 int read()
           
 int read(String file, byte[] b, int off, int len)
           
 void seek(long pos)
           
 void write(int b)
           
 void write(String file, byte[] b, int off, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, println, toString
 

Constructor Detail

RandomAccessFileWrapper

public RandomAccessFileWrapper(FileWrapper pfile,
                               int mode)
                        throws IOException
Throws:
IOException
Method Detail

open

public int open(FileWrapper pfile,
                int mode)

close

public void close()
           throws IOException
Throws:
IOException

getFilePointer

public long getFilePointer()
                    throws IOException
Throws:
IOException

seek

public void seek(long pos)
          throws IOException
Throws:
IOException

read

public int read()
         throws IOException
Throws:
IOException

write

public void write(int b)
           throws IOException
Throws:
IOException

read

public int read(String file,
                byte[] b,
                int off,
                int len)
         throws IOException
Throws:
IOException

write

public void write(String file,
                  byte[] b,
                  int off,
                  int len)
           throws IOException
Throws:
IOException

length

public long length()
            throws IOException
Throws:
IOException

delete

public boolean delete()