Package org.red5.io.object
Class BaseOutput
java.lang.Object
org.red5.io.object.BaseOutput
- Direct Known Subclasses:
Output
BaseOutput represents a way to map input to a HashMap. This class is meant to be extended.
- Author:
- The Red5 Project, Luke Hubbard, Codegent Ltd (luke@codegent.com)
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected short
Reference idprotected Map<BaseOutput.IdentityWrapper,
Short> References map -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the mapprotected short
getReferenceId
(Object obj) Returns the reference id based on the parameter objprotected boolean
hasReference
(Object obj) Returns a boolean stating whether the map contains an object with that keyprotected void
storeReference
(Object obj) Store an object into a map
-
Field Details
-
refMap
References map -
refId
protected short refIdReference id
-
-
Constructor Details
-
BaseOutput
protected BaseOutput()BaseOutput Constructor
-
-
Method Details
-
storeReference
Store an object into a map- Parameters:
obj
- Object to store
-
hasReference
Returns a boolean stating whether the map contains an object with that key- Parameters:
obj
- Object- Returns:
- boolean
true
if it does contain it,false
otherwise
-
clearReferences
public void clearReferences()Clears the map -
getReferenceId
Returns the reference id based on the parameter obj- Parameters:
obj
- Object- Returns:
- short Reference id
-