public class VirtualizationSerializer extends Object
Modifier and Type | Field and Description |
---|---|
protected List<Class<?>> |
classes |
protected Map<Class<?>,Integer> |
classIndexes |
protected static int |
CLASSLOADER_IDX_NOT_SET |
protected Map<ClassLoader,Integer> |
classLoadersIndexes |
protected List<ClassLoader> |
classLoadersList |
Constructor and Description |
---|
VirtualizationSerializer() |
Modifier and Type | Method and Description |
---|---|
int |
getClassDescriptorIdx(Class<?> clazz) |
Class<?> |
getClassForDescriptorIdx(int descriptorIdx) |
int |
getClassloaderIdx(Class<?> clazz) |
protected static boolean |
isAncestorClassLoader(ClassLoader loader) |
void |
readData(JRVirtualizable o,
InputStream in) |
Class<?> |
resolveClass(ObjectStreamClass desc,
int loaderIdx) |
void |
writeData(JRVirtualizable o,
OutputStream out) |
protected static final int CLASSLOADER_IDX_NOT_SET
protected final Map<ClassLoader,Integer> classLoadersIndexes
protected final List<ClassLoader> classLoadersList
protected static boolean isAncestorClassLoader(ClassLoader loader)
public int getClassloaderIdx(Class<?> clazz)
public Class<?> resolveClass(ObjectStreamClass desc, int loaderIdx) throws ClassNotFoundException
ClassNotFoundException
public int getClassDescriptorIdx(Class<?> clazz)
public Class<?> getClassForDescriptorIdx(int descriptorIdx)
public final void writeData(JRVirtualizable o, OutputStream out) throws IOException
IOException
public final void readData(JRVirtualizable o, InputStream in) throws IOException
IOException
Copyright © 2017. All rights reserved.