Package org.mapdb.elsa
Class ElsaObjectInputStream
java.lang.Object
java.io.InputStream
org.mapdb.elsa.ElsaObjectInputStream
- All Implemented Interfaces:
Closeable,DataInput,ObjectInput,AutoCloseable
Wraps DataInput and Elsa deserializer and provides
InputStream and ObjectInput
This is an alternative to ObjectInputStream.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionElsaObjectInputStream(DataInput input, ElsaSerializerPojo serializer) Construct newElsaObjectInputStream(InputStream stream) Take InputStream and use default Elsa settings to construct new deserializer -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, reset, skipMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.ObjectInput
available, read, read, skip
-
Field Details
-
input
-
serializer
-
-
Constructor Details
-
ElsaObjectInputStream
Take InputStream and use default Elsa settings to construct new deserializer- Parameters:
stream- InputStream from which deserialized object will be read from- Throws:
IOException- an exception from underlying stream
-
ElsaObjectInputStream
Construct new- Parameters:
input- DataInput from which deserialized objects will be read fromserializer- Elsa deserializer used to read objects- Throws:
IOException- an exception from underlying stream
-
-
Method Details
-
readObject
- Specified by:
readObjectin interfaceObjectInput- Throws:
ClassNotFoundExceptionIOException
-
read
- Specified by:
readin interfaceObjectInput- Specified by:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceObjectInput- Overrides:
closein classInputStream- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
skipBytes
- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-
readBoolean
- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readShort
- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readChar
- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readInt
- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLong
- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readFloat
- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readDouble
- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
readLine
- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readUTF
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-