类 SerialDetector
- java.lang.Object
-
- java.io.InputStream
-
- java.io.ObjectInputStream
-
- com.alibaba.dubbo.common.utils.SerialDetector
-
- 所有已实现的接口:
Closeable
,DataInput
,ObjectInput
,ObjectStreamConstants
,AutoCloseable
public class SerialDetector extends ObjectInputStream
-
-
嵌套类概要
-
从类继承的嵌套类/接口 java.io.ObjectInputStream
ObjectInputStream.GetField
-
-
字段概要
-
从接口继承的字段 java.io.ObjectStreamConstants
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, SERIAL_FILTER_PERMISSION, 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
-
-
构造器概要
构造器 构造器 说明 SerialDetector(InputStream inputStream)
Wrapper Constructor.
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static boolean
isClassInBlacklist(ObjectStreamClass serialInput)
static boolean
shouldCheck()
-
从类继承的方法 java.io.ObjectInputStream
available, close, defaultReadObject, getObjectInputFilter, read, read, readBoolean, readByte, readChar, readDouble, readFields, readFloat, readFully, readFully, readInt, readLine, readLong, readObject, readShort, readUnshared, readUnsignedByte, readUnsignedShort, readUTF, registerValidation, setObjectInputFilter, skipBytes
-
从类继承的方法 java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
从接口继承的方法 java.io.ObjectInput
read, skip
-
-
-
-
构造器详细资料
-
SerialDetector
public SerialDetector(InputStream inputStream) throws IOException
Wrapper Constructor.- 参数:
inputStream
- The original InputStream, used by your service to receive serialized objects- 抛出:
IOException
- File I/O exceptionIllegalStateException
- Invalid configuration exception
-
-
方法详细资料
-
isClassInBlacklist
public static boolean isClassInBlacklist(ObjectStreamClass serialInput)
-
shouldCheck
public static boolean shouldCheck()
-
-