class LegacyObjectInputStream extends ObjectInputStream
Custom ObjectInputStream that ignores the serialVersionUID check for a provided class during deserialization.
- Alphabetic
- By Inheritance
- LegacyObjectInputStream
- ObjectInputStream
- ObjectStreamConstants
- ObjectInput
- DataInput
- InputStream
- Closeable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new LegacyObjectInputStream(in: ByteArrayInputStream, replacedClass: Class[_], serializedClassName: String)
- in
ByteArrayInputStream of the deserialization
- replacedClass
The class that should be the replacement
- serializedClassName
The name of the serialized class in the input stream
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def available(): Int
- Definition Classes
- ObjectInputStream → ObjectInput → InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def close(): Unit
- Definition Classes
- ObjectInputStream → ObjectInput → InputStream → Closeable → AutoCloseable
- Annotations
- @throws(classOf[java.io.IOException])
- def defaultReadObject(): Unit
- Definition Classes
- ObjectInputStream
- Annotations
- @throws(classOf[java.io.IOException]) @throws(classOf[java.lang.ClassNotFoundException])
- def enableResolveObject(arg0: Boolean): Boolean
- Attributes
- protected[java.io]
- Definition Classes
- ObjectInputStream
- Annotations
- @throws(classOf[java.lang.SecurityException])
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def getObjectInputFilter(): ObjectInputFilter
- Definition Classes
- ObjectInputStream
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mark(arg0: Int): Unit
- Definition Classes
- InputStream
- def markSupported(): Boolean
- Definition Classes
- InputStream
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def read(arg0: Array[Byte], arg1: Int, arg2: Int): Int
- Definition Classes
- ObjectInputStream → ObjectInput → InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def read(): Int
- Definition Classes
- ObjectInputStream → ObjectInput → InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def read(arg0: Array[Byte]): Int
- Definition Classes
- InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def readAllBytes(): Array[Byte]
- Definition Classes
- InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def readBoolean(): Boolean
- Definition Classes
- ObjectInputStream → DataInput
- Annotations
- @throws(classOf[java.io.IOException])
- def readByte(): Byte
- Definition Classes
- ObjectInputStream → DataInput
- Annotations
- @throws(classOf[java.io.IOException])
- def readChar(): Char
- Definition Classes
- ObjectInputStream → DataInput
- Annotations
- @throws(classOf[java.io.IOException])
- def readClassDescriptor(): ObjectStreamClass
Reads the class descriptor from the serialization stream, handling conflicting serialVersionUIDs (SUID) of old Spark NLP objects.
Reads the class descriptor from the serialization stream, handling conflicting serialVersionUIDs (SUID) of old Spark NLP objects.
We try to read the objects regardless of SUID (by ignoring them). In the case of reading old Maps, we need to use the serialization proxy from Scala 2.12 (removed in 2.13).
Taken and adapted from https://stackoverflow.com/questions/795470/how-to-deserialize-an-object-persisted-in-a-db-now-when-the-object-has-different
- returns
The class descriptor to be used for deserialization.
- Attributes
- protected
- Definition Classes
- LegacyObjectInputStream → ObjectInputStream
- Annotations
- @throws("I/O error occurred") @throws("class of a serialized object could not be found")
- Exceptions thrown
ClassNotFoundExceptionif the class of a serialized object could not be foundIOExceptionif an I/O error occurs
- def readDouble(): Double
- Definition Classes
- ObjectInputStream → DataInput
- Annotations
- @throws(classOf[java.io.IOException])
- def readFields(): GetField
- Definition Classes
- ObjectInputStream
- Annotations
- @throws(classOf[java.io.IOException]) @throws(classOf[java.lang.ClassNotFoundException])
- def readFloat(): Float
- Definition Classes
- ObjectInputStream → DataInput
- Annotations
- @throws(classOf[java.io.IOException])
- def readFully(arg0: Array[Byte], arg1: Int, arg2: Int): Unit
- Definition Classes
- ObjectInputStream → DataInput
- Annotations
- @throws(classOf[java.io.IOException])
- def readFully(arg0: Array[Byte]): Unit
- Definition Classes
- ObjectInputStream → DataInput
- Annotations
- @throws(classOf[java.io.IOException])
- def readInt(): Int
- Definition Classes
- ObjectInputStream → DataInput
- Annotations
- @throws(classOf[java.io.IOException])
- def readLong(): Long
- Definition Classes
- ObjectInputStream → DataInput
- Annotations
- @throws(classOf[java.io.IOException])
- def readNBytes(arg0: Array[Byte], arg1: Int, arg2: Int): Int
- Definition Classes
- InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def readNBytes(arg0: Int): Array[Byte]
- Definition Classes
- InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- final def readObject(): AnyRef
- Definition Classes
- ObjectInputStream → ObjectInput
- Annotations
- @throws(classOf[java.io.IOException]) @throws(classOf[java.lang.ClassNotFoundException])
- def readObjectOverride(): AnyRef
- Attributes
- protected[java.io]
- Definition Classes
- ObjectInputStream
- Annotations
- @throws(classOf[java.io.IOException]) @throws(classOf[java.lang.ClassNotFoundException])
- def readShort(): Short
- Definition Classes
- ObjectInputStream → DataInput
- Annotations
- @throws(classOf[java.io.IOException])
- def readStreamHeader(): Unit
- Attributes
- protected[java.io]
- Definition Classes
- ObjectInputStream
- Annotations
- @throws(classOf[java.io.IOException]) @throws(classOf[java.io.StreamCorruptedException])
- def readUTF(): String
- Definition Classes
- ObjectInputStream → DataInput
- Annotations
- @throws(classOf[java.io.IOException])
- def readUnshared(): AnyRef
- Definition Classes
- ObjectInputStream
- Annotations
- @throws(classOf[java.io.IOException]) @throws(classOf[java.lang.ClassNotFoundException])
- def readUnsignedByte(): Int
- Definition Classes
- ObjectInputStream → DataInput
- Annotations
- @throws(classOf[java.io.IOException])
- def readUnsignedShort(): Int
- Definition Classes
- ObjectInputStream → DataInput
- Annotations
- @throws(classOf[java.io.IOException])
- def registerValidation(arg0: ObjectInputValidation, arg1: Int): Unit
- Definition Classes
- ObjectInputStream
- Annotations
- @throws(classOf[java.io.NotActiveException]) @throws(classOf[java.io.InvalidObjectException])
- val replacedClass: Class[_]
- def reset(): Unit
- Definition Classes
- InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def resolveClass(arg0: ObjectStreamClass): Class[_ <: AnyRef]
- Attributes
- protected[java.io]
- Definition Classes
- ObjectInputStream
- Annotations
- @throws(classOf[java.io.IOException]) @throws(classOf[java.lang.ClassNotFoundException])
- def resolveObject(arg0: AnyRef): AnyRef
- Attributes
- protected[java.io]
- Definition Classes
- ObjectInputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def resolveProxyClass(arg0: Array[String]): Class[_ <: AnyRef]
- Attributes
- protected[java.io]
- Definition Classes
- ObjectInputStream
- Annotations
- @throws(classOf[java.io.IOException]) @throws(classOf[java.lang.ClassNotFoundException])
- val serializedClassName: String
- final def setObjectInputFilter(arg0: ObjectInputFilter): Unit
- Definition Classes
- ObjectInputStream
- def skip(arg0: Long): Long
- Definition Classes
- InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def skipBytes(arg0: Int): Int
- Definition Classes
- ObjectInputStream → DataInput
- Annotations
- @throws(classOf[java.io.IOException])
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def transferTo(arg0: OutputStream): Long
- Definition Classes
- InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def readLine(): String
- Definition Classes
- ObjectInputStream → DataInput
- Annotations
- @throws(classOf[java.io.IOException]) @Deprecated
- Deprecated