org.neodatis.odb.core.layers.layer3
Interface IO
-
- All Known Implementing Classes:
- AesMd5Cypher, OdbFileIO
public interface IOThe basic IO interface for basic IO operation like reading and writing bytes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidclose()voidflushIO()voidinit(java.lang.String fileName, boolean canWrite, java.lang.String password)booleanisLocked()longlength()booleanlockFile()intread()longread(byte[] bytes, int offset, int size)voidseek(long pos)booleanunlockFile()voidwrite(byte b)voidwrite(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.FileNotFoundExceptionjava.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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG