org.neodatis.odb.core.layers.layer3
Interface IO

All Known Implementing Classes:
AesMd5Cypher, OdbFileIO

public interface IO

The basic IO interface for basic IO operation like reading and writing bytes

Author:
olivier

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[] bytes, int offset, int size)
           
 void seek(long pos)
           
 boolean unlockFile()
           
 void write(byte b)
           
 void write(byte[] bytes, int offset, int size)
           
 

Method Detail

init

void init(java.lang.String fileName,
          boolean canWrite,
          java.lang.String password)
          throws java.io.FileNotFoundException,
                 java.lang.Exception
Throws:
java.io.FileNotFoundException
java.lang.Exception

seek

void seek(long pos)
          throws java.io.IOException
Throws:
java.io.IOException

close

void close()
           throws java.io.IOException
Throws:
java.io.IOException

write

void write(byte b)
           throws java.io.IOException
Throws:
java.io.IOException

write

void write(byte[] bytes,
           int offset,
           int size)
           throws java.io.IOException
Throws:
java.io.IOException

read

long read(byte[] bytes,
          int offset,
          int size)
          throws java.io.IOException
Throws:
java.io.IOException

read

int read()
         throws java.io.IOException
Throws:
java.io.IOException

length

long length()
            throws java.io.IOException
Throws:
java.io.IOException

lockFile

boolean lockFile()
                 throws java.io.IOException
Throws:
java.io.IOException

unlockFile

boolean unlockFile()
                   throws java.io.IOException
Throws:
java.io.IOException

isLocked

boolean isLocked()
                 throws java.io.IOException
Throws:
java.io.IOException

flushIO

void flushIO()
             throws java.io.IOException
Throws:
java.io.IOException