org.neodatis.tool.wrappers.io
Class OdbFileIO
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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