Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.imagero.uio.buffer.fm
Class FMBufferManagerRO  view FMBufferManagerRO download FMBufferManagerRO.java

java.lang.Object
  extended bycom.imagero.uio.buffer.AbstractBufferManager
      extended bycom.imagero.uio.buffer.RAFBufferManager
          extended bycom.imagero.uio.buffer.fm.FMBufferManagerRO
All Implemented Interfaces:
com.imagero.uio.buffer.BufferManager

class FMBufferManagerRO
extends com.imagero.uio.buffer.RAFBufferManager

Special version of BufferManager for work with FileManager


Nested Class Summary
(package private)  class FMBufferManagerRO.FMBufferRO
           
 
Field Summary
(package private)  java.io.File file
           
(package private)  java.awt.event.ActionListener listener
           
(package private)  boolean reading
           
 
Fields inherited from class com.imagero.uio.buffer.RAFBufferManager
raf
 
Fields inherited from class com.imagero.uio.buffer.AbstractBufferManager
defaultBufferSize
 
Fields inherited from interface com.imagero.uio.buffer.BufferManager
empty
 
Constructor Summary
FMBufferManagerRO(java.io.File file, java.awt.event.ActionListener listener)
           
 
Method Summary
(package private)  void _close()
           
(package private)  boolean canClose()
           
 void close()
          Allows to free all possibly used resources
protected  com.imagero.uio.buffer.Buffer createBuffer(java.io.RandomAccessFile raf, long offset, int dsLength)
           
private  java.io.RandomAccessFile get()
           
 
Methods inherited from class com.imagero.uio.buffer.RAFBufferManager
clear, getData, getDataImpl, getDataLength, getDataStart, getIndex, getLength
 
Methods inherited from class com.imagero.uio.buffer.AbstractBufferManager
clear, clearImpl, createAccessManager, flush, getCount, getDefaultBufferSize, getEnd, getMaxCache, getStart, setDefaultBufferSize, setDirty, setDirty, setMaxCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

java.io.File file

listener

java.awt.event.ActionListener listener

reading

volatile boolean reading
Constructor Detail

FMBufferManagerRO

public FMBufferManagerRO(java.io.File file,
                         java.awt.event.ActionListener listener)
                  throws java.io.IOException
Method Detail

createBuffer

protected com.imagero.uio.buffer.Buffer createBuffer(java.io.RandomAccessFile raf,
                                                     long offset,
                                                     int dsLength)

canClose

boolean canClose()

_close

void _close()

close

public void close()
Description copied from interface: com.imagero.uio.buffer.BufferManager
Allows to free all possibly used resources


get

private java.io.RandomAccessFile get()
                              throws java.io.IOException