ClassLoader rather than the system default.
This is useful in dynamic container environments.
| Modifier and Type | Field and Description |
|---|---|
| private ClassLoader | classLoader
The class loader to use. |
| Access | Constructor and Description |
|---|---|
| public | ClassLoaderObjectInputStream(ClassLoader
the ClassLoader from which classes should be loaded classLoader, InputStream the InputStream to work on inputStream)Constructs a new ClassLoaderObjectInputStream. |
| Modifier and Type | Method and Description |
|---|---|
| protected Class | Returns: the Class object described by the ObjectStreamClassdescriptor of the class objectStreamClass)Overrides java. |
| classLoader | back to summary |
|---|---|
| private ClassLoader classLoader The class loader to use. | |
| ClassLoaderObjectInputStream | back to summary |
|---|---|
| public ClassLoaderObjectInputStream(ClassLoader classLoader, InputStream inputStream) throws IOException, StreamCorruptedException Constructs a new ClassLoaderObjectInputStream.
| |
| resolveClass | back to summary |
|---|---|
| protected Class Overrides java. Resolve a class specified by the descriptor using the specified ClassLoader or the super ClassLoader.
| |