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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.imagero.uio.buffer.AbstractBufferManager
      extended bycom.imagero.uio.buffer.RAFBufferManager
          extended bycom.imagero.uio.buffer.MutableRAFBufferManager
              extended bycom.imagero.uio.buffer.fm.FMBufferManager
All Implemented Interfaces:
com.imagero.uio.buffer.BufferManager, com.imagero.uio.buffer.MutableBufferManager

class FMBufferManager
extends com.imagero.uio.buffer.MutableRAFBufferManager

Special version of MutableBufferManager for work with FileManger


Nested Class Summary
(package private)  class FMBufferManager.FMBuffer
           
 
Field Summary
(package private)  java.io.File file
           
(package private)  java.awt.event.ActionListener listener
           
(package private)  boolean reading
           
(package private)  boolean writing
           
 
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
FMBufferManager(java.io.File file, java.awt.event.ActionListener listener)
           
FMBufferManager(java.io.RandomAccessFile raf)
           
 
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.MutableRAFBufferManager
clear
 
Methods inherited from class com.imagero.uio.buffer.RAFBufferManager
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
 
Methods inherited from interface com.imagero.uio.buffer.MutableBufferManager
flush, setDirty, setDirty
 
Methods inherited from interface com.imagero.uio.buffer.BufferManager
clear, getCount, getData, getDataLength, getDataStart, getIndex, getLength, getMaxCache, setMaxCache
 

Field Detail

file

java.io.File file

listener

java.awt.event.ActionListener listener

reading

volatile boolean reading

writing

volatile boolean writing
Constructor Detail

FMBufferManager

public FMBufferManager(java.io.File file,
                       java.awt.event.ActionListener listener)
                throws java.io.IOException

FMBufferManager

public FMBufferManager(java.io.RandomAccessFile raf)
                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