|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.io.BufferPool.BufferFactory
public abstract static class BufferPool.BufferFactory
A BufferFactory is responsible for creating buffer and BufferPool.BufferContainer instances, and for returning the buffer
Class. The Class returned by getBufferClass() may be a superclass or superinterface of the actual
objects returned by newBuffer(int).
| Constructor Summary | |
|---|---|
BufferPool.BufferFactory()
|
|
| Method Summary | |
|---|---|
protected abstract java.lang.Class |
getBufferClass()
Returns the Class of buffer instances this factory creates. |
protected boolean |
matchesBufferClass(java.lang.Class bufferClass)
Returns true if the class returned by getBufferClass() is equal or a
superclass/superinterface of the specified buffer class. |
protected abstract java.lang.Object |
newBuffer(int size)
Creates and returns a buffer instance of the specified size. |
protected abstract BufferPool.BufferContainer |
newBufferContainer(java.lang.Object buffer)
Creates and returns a BufferPool.BufferContainer for the specified buffer instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferPool.BufferFactory()
| Method Detail |
|---|
protected boolean matchesBufferClass(java.lang.Class bufferClass)
true if the class returned by getBufferClass() is equal or a
superclass/superinterface of the specified buffer class.
bufferClass - the buffer Class to test
#getBufferClass() is equal or a superclass/superinterface
of the specified buffer classprotected abstract java.lang.Object newBuffer(int size)
size - size of the buffer to create
protected abstract BufferPool.BufferContainer newBufferContainer(java.lang.Object buffer)
BufferPool.BufferContainer for the specified buffer instance.
buffer - the buffer to wrap in a BufferContainer
protected abstract java.lang.Class getBufferClass()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard