|
Remote System Explorer DataStore Release 3.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.dstore.core.model.ByteStreamHandlerRegistry
public class ByteStreamHandlerRegistry
Stores the set of registered byte stream handlers using the handler id as the key. Whenever a bytestream operation is required (i.e. for a save of bytes) The appropriate byte stream handler is retrieved via the specified id. If no such handler exists, then the default byte stream handler is returned.
| Constructor Summary | |
|---|---|
ByteStreamHandlerRegistry()
|
|
| Method Summary | |
|---|---|
IByteStreamHandler |
getByteStreamHandler(String id)
Returns the byte stream handler with the specified id. |
IByteStreamHandler |
getDefault()
Returns the default byte stream handler |
void |
registerByteStreamHandler(IByteStreamHandler handler)
Registers a byte stream handler. |
void |
setDefaultByteStreamHandler(IByteStreamHandler handler)
Registers the default byte stream handler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteStreamHandlerRegistry()
| Method Detail |
|---|
public void setDefaultByteStreamHandler(IByteStreamHandler handler)
handler - the default byte stream handlerpublic void registerByteStreamHandler(IByteStreamHandler handler)
handler - the handler to registerpublic IByteStreamHandler getByteStreamHandler(String id)
id - the id of the byte stream handler
public IByteStreamHandler getDefault()
|
Remote System Explorer DataStore Release 3.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||