org.neodatis.tool.wrappers.io
Class OdbFileIO

java.lang.Object
  extended by org.neodatis.tool.wrappers.io.OdbFileIO
All Implemented Interfaces:
IO

public class OdbFileIO
extends java.lang.Object
implements IO

Author:
olivier

Constructor Summary
OdbFileIO()
           
OdbFileIO(java.lang.String fileName, boolean canWrite, java.lang.String password)
           
 
Method Summary
 void close()
           
 void flushIO()
           
 void init(java.lang.String fileName, boolean canWrite, java.lang.String password)
           
 boolean isLocked()
           
 long length()
           
 boolean lockFile()
           
 int read()
           
 long read(byte[] array, int offset, int size)
           
 void seek(long position)
           
 boolean unlockFile()
           
 void write(byte b)
           
 void write(byte[] bs, int offset, int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OdbFileIO

public OdbFileIO()
          throws java.io.IOException
Throws:
java.io.IOException

OdbFileIO

public OdbFileIO(java.lang.String fileName,
                 boolean canWrite,
                 java.lang.String password)
          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

init

public void init(java.lang.String fileName,
                 boolean canWrite,
                 java.lang.String password)
          throws java.io.IOException
Specified by:
init in interface IO
Throws:
java.io.IOException

length

public long length()
            throws java.io.IOException
Specified by:
length in interface IO
Throws:
java.io.IOException

seek

public void seek(long position)
          throws java.io.IOException
Specified by:
seek in interface IO
Throws:
java.io.IOException

write

public void write(byte b)
           throws java.io.IOException
Specified by:
write in interface IO
Throws:
java.io.IOException

write

public void write(byte[] bs,
                  int offset,
                  int size)
           throws java.io.IOException
Specified by:
write in interface IO
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Specified by:
read in interface IO
Throws:
java.io.IOException

read

public long read(byte[] array,
                 int offset,
                 int size)
          throws java.io.IOException
Specified by:
read in interface IO
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface IO
Throws:
java.io.IOException

lockFile

public boolean lockFile()
                 throws java.io.IOException
Specified by:
lockFile in interface IO
Throws:
java.io.IOException

unlockFile

public boolean unlockFile()
                   throws java.io.IOException
Specified by:
unlockFile in interface IO
Throws:
java.io.IOException

isLocked

public boolean isLocked()
Specified by:
isLocked in interface IO

flushIO

public void flushIO()
             throws java.io.IOException
Specified by:
flushIO in interface IO
Throws:
java.io.IOException