com.threerings.nexus.io
Class Streamers.Streamer_Enum<T extends Enum<T>>

java.lang.Object
  extended by com.threerings.nexus.io.Streamers.Streamer_Enum<T>
All Implemented Interfaces:
Streamer<T>
Enclosing class:
Streamers

public static class Streamers.Streamer_Enum<T extends Enum<T>>
extends Object
implements Streamer<T>

A streamer for Enum classes.


Constructor Summary
Streamers.Streamer_Enum(Class<T> eclass)
           
 
Method Summary
 Class<?> getObjectClass()
          Returns the concrete class handled by this streamer.
 T readObject(Streamable.Input in)
          Instantiates an instance of the appropriate type using data read from the supplied input.
 void writeObject(Streamable.Output out, T value)
          Writes the supplied instance to the supplied output.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Streamers.Streamer_Enum

public Streamers.Streamer_Enum(Class<T> eclass)
Method Detail

getObjectClass

public Class<?> getObjectClass()
Description copied from interface: Streamer
Returns the concrete class handled by this streamer.

Specified by:
getObjectClass in interface Streamer<T extends Enum<T>>

writeObject

public void writeObject(Streamable.Output out,
                        T value)
Description copied from interface: Streamer
Writes the supplied instance to the supplied output.

Specified by:
writeObject in interface Streamer<T extends Enum<T>>

readObject

public T readObject(Streamable.Input in)
Description copied from interface: Streamer
Instantiates an instance of the appropriate type using data read from the supplied input.

Specified by:
readObject in interface Streamer<T extends Enum<T>>


Copyright © 2013. All Rights Reserved.