Package com.gigaspaces.serialization.pbs
Class PbsInputStream
java.lang.Object
java.io.InputStream
com.gigaspaces.internal.io.GSByteArrayInputStream
com.gigaspaces.serialization.pbs.PbsInputStream
- All Implemented Interfaces:
IThreadLocalResource,Closeable,AutoCloseable
This class is an extension of a ByteArrayInputStream with PBS functionality.
- Since:
- 6.6
- Author:
- niv
-
Field Summary
Fields inherited from class com.gigaspaces.internal.io.GSByteArrayInputStream
_buffer, _count, _position -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisUsed()boolean[]booleanBoolean[]byte[]Byte[]charreadChar()char[]Date[]doubledouble[]Double[]byte[]floatfloat[]Float[]intreadInt()int[]Integer[]intlongreadLong()long[]longLong[]String[]shortshort[]Short[]String[]readUUID()UUID[]voidrelease()Release the resource, set is as unusedvoidSet the resource as usedMethods inherited from class com.gigaspaces.internal.io.GSByteArrayInputStream
available, getBuffer, getPosition, read, read, readByte, readUnsignedByte, reset, setBuffer, setBuffer, setPosition, skipMethods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
PbsInputStream
public PbsInputStream(byte[] buf)
-
-
Method Details
-
readShort
public short readShort() -
readInt
public int readInt() -
readIntFixed
public int readIntFixed() -
readLong
public long readLong() -
readLongFixed
public long readLongFixed() -
readFloat
public float readFloat() -
readDouble
public double readDouble() -
readBoolean
public boolean readBoolean() -
readChar
public char readChar() -
readString
-
readRepetitiveString
-
readRepetitiveStringArray
-
readDateTime
-
readDecimal
-
readUUID
-
readByteArray
public byte[] readByteArray() -
readFixedByteArray
public byte[] readFixedByteArray() -
readShortArray
public short[] readShortArray() -
readIntArray
public int[] readIntArray() -
readLongArray
public long[] readLongArray() -
readFloatArray
public float[] readFloatArray() -
readDoubleArray
public double[] readDoubleArray() -
readBoolArray
public boolean[] readBoolArray() -
readCharArray
public char[] readCharArray() -
readStringArray
-
readDateTimeArray
-
readDecimalArray
-
readUUIDArray
-
readByteWrapperArray
-
readShortWrapperArray
-
readIntegerWrapperArray
-
readLongWrapperArray
-
readFloatWrapperArray
-
readDoubleWrapperArray
-
readBooleanWrapperArray
-
readCharWrapperArray
-
readProperties
-
readStringProperties
-
readBinaryObject
-
readNullableBoolean
-
readNullableInt
-
readNullableLong
-
readNullableUUID
-
isUsed
public boolean isUsed()- Specified by:
isUsedin interfaceIThreadLocalResource- Returns:
- is the resource in use
-
release
public void release()Description copied from interface:IThreadLocalResourceRelease the resource, set is as unused- Specified by:
releasein interfaceIThreadLocalResource
-
setAsUsed
public void setAsUsed()Description copied from interface:IThreadLocalResourceSet the resource as used- Specified by:
setAsUsedin interfaceIThreadLocalResource
-