Package one.nio.serial
Class TypeDescriptor
- java.lang.Object
-
- one.nio.serial.TypeDescriptor
-
public class TypeDescriptor extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringclassDescriptor(Class<?> cls)static TypeDescriptorread(ObjectInput in)static Class<?>readClass(ObjectInput in)Classresolve()static Class<?>resolve(String descriptor)StringtoString()voidwrite(ObjectOutput out)static voidwriteClass(ObjectOutput out, Class<?> cls)
-
-
-
Method Detail
-
read
public static TypeDescriptor read(ObjectInput in) throws IOException
- Throws:
IOException
-
write
public void write(ObjectOutput out) throws IOException
- Throws:
IOException
-
resolve
public Class resolve()
-
resolve
public static Class<?> resolve(String descriptor) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
readClass
public static Class<?> readClass(ObjectInput in) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
writeClass
public static void writeClass(ObjectOutput out, Class<?> cls) throws IOException
- Throws:
IOException
-
-