All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class NET.shudo.moba.io.ThreadReader

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----java.io.FilterInputStream
                   |
                   +----java.io.DataInputStream
                           |
                           +----NET.shudo.moba.io.ObjectReader
                                   |
                                   +----NET.shudo.moba.io.ThreadReader

public class ThreadReader
extends ObjectReader
Thread internalizer。


Constructor Index

 o ThreadReader(InputStream)
 o ThreadReader(InputStream, ClassLoader)
 o ThreadReader(ThreadGroup, InputStream)
 o ThreadReader(ThreadGroup, InputStream, ClassLoader)

Method Index

 o generatedPlaceFromFile(String)
外部化されたスレッドが格納されたファイルから、 スレッド生成元を得る。
 o isSpecificClass(Class)
subclassで特定のクラスに対する処理をするためのhook 特定クラスかどうか判定する。
 o postReadSpecificClass(Object)
subclassで特定のクラスに対する処理をするためのhook。
完成したインスタンスに対する処理を行う。
 o readSpecificClass(Class, Object)
subclassで特定のクラスに対する処理をするためのhook 特定のクラスとその supeclass についての責任がある。

Constructors

 o ThreadReader
 public ThreadReader(ThreadGroup g,
                     InputStream in,
                     ClassLoader loader) throws IOException
 o ThreadReader
 public ThreadReader(ThreadGroup g,
                     InputStream in) throws IOException
 o ThreadReader
 public ThreadReader(InputStream in,
                     ClassLoader loader) throws IOException
 o ThreadReader
 public ThreadReader(InputStream in) throws IOException

Methods

 o generatedPlaceFromFile
 public static PlaceAddress generatedPlaceFromFile(String filename) throws IOException
外部化されたスレッドが格納されたファイルから、 スレッド生成元を得る。

 o isSpecificClass
 protected boolean isSpecificClass(Class clazz)
subclassで特定のクラスに対する処理をするためのhook 特定クラスかどうか判定する。

Returns:
true if the specified class is the target class.
Overrides:
isSpecificClass in class ObjectReader
See Also:
isSpecificClass
 o readSpecificClass
 protected boolean readSpecificClass(Class clazz,
                                     Object obj) throws StreamFormatException, IOException, ClassNotFoundException, InstantiationException, IllegalAccessException
subclassで特定のクラスに対する処理をするためのhook 特定のクラスとその supeclass についての責任がある。

Parameters:
obj - instantiate 済みのオブジェクト
Returns:
true if the specified class is the target class.
Overrides:
readSpecificClass in class ObjectReader
See Also:
readSpecificClass
 o postReadSpecificClass
 protected boolean postReadSpecificClass(Object obj)
subclassで特定のクラスに対する処理をするためのhook。
完成したインスタンスに対する処理を行う。

Returns:
true if the specified class is the target class.
Overrides:
postReadSpecificClass in class ObjectReader
See Also:
postReadSpecificClass

All Packages  Class Hierarchy  This Package  Previous  Next  Index