private static class ProxyTrustVerifier.MOStream extends ObjectOutputStream implements ObjectStreamContext
ObjectOutputStream.PutField
Modifier and Type | Field and Description |
---|---|
private String |
bcb
bootstrap proxy codebase
|
private ClassLoader |
bcl
bootstrap proxy class loader
|
(package private) boolean |
replace
true if we see a class with same codebase in different loader
|
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
Constructor and Description |
---|
MOStream(ByteArrayOutputStream out,
String bcb,
ClassLoader bcl) |
Modifier and Type | Method and Description |
---|---|
protected void |
annotateClass(Class c) |
protected void |
annotateProxyClass(Class c) |
Collection |
getObjectStreamContext()
Returns this object stream's collection of context information
objects.
|
private void |
writeAnnotation(Class c) |
close, defaultWriteObject, drain, enableReplaceObject, flush, putFields, replaceObject, reset, useProtocolVersion, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeClassDescriptor, writeDouble, writeFields, writeFloat, writeInt, writeLong, writeObject, writeObjectOverride, writeShort, writeStreamHeader, writeUnshared, writeUTF
private final String bcb
private final ClassLoader bcl
boolean replace
MOStream(ByteArrayOutputStream out, String bcb, ClassLoader bcl) throws IOException
IOException
public Collection getObjectStreamContext()
ObjectStreamContext
The context information available from a given element of the collection is determined by that element's type. The order of the elements is insignificant. The collection may be empty.
The caller of this method cannot assume that the returned collection is modifiable.
getObjectStreamContext
in interface ObjectStreamContext
protected void annotateClass(Class c) throws IOException
annotateClass
in class ObjectOutputStream
IOException
protected void annotateProxyClass(Class c) throws IOException
annotateProxyClass
in class ObjectOutputStream
IOException
private void writeAnnotation(Class c) throws IOException
IOException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.