|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.io.nio.AbstractBuffer
ome.io.nio.FileBuffer
public class FileBuffer
Raw file buffer which provides I/O operations within the OMERO file repository.
Method Summary | |
---|---|
void |
close()
Closes the buffer, cleaning up file state. |
int |
read(ByteBuffer dst)
Delegates to FileChannel |
int |
read(ByteBuffer dst,
long position)
Delegates to FileChannel |
long |
size()
|
void |
truncate(long size)
|
int |
write(ByteBuffer src)
Delegates to FileChannel |
int |
write(ByteBuffer src,
long position)
Delegates to FileChannel |
Methods inherited from class ome.io.nio.AbstractBuffer |
---|
getPath, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void close() throws IOException
IOException
- if an I/O error occurs.public int read(ByteBuffer dst) throws IOException
FileChannel
IOException
FileChannel
public int read(ByteBuffer dst, long position) throws IOException
FileChannel
IOException
FileChannel
public int write(ByteBuffer src, long position) throws IOException
FileChannel
IOException
FileChannel
public int write(ByteBuffer src) throws IOException
FileChannel
IOException
FileChannel
public long size() throws IOException
IOException
public void truncate(long size) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.