Package org.shoal.ha.cache.impl.util
Class ReplicationInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.ByteArrayInputStream
-
- org.shoal.ha.cache.impl.util.ReplicationInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ReplicationInputStream extends ByteArrayInputStream
- Author:
- Mahesh Kannan
-
-
Field Summary
-
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
-
-
Constructor Summary
Constructors Constructor Description ReplicationInputStream(byte[] data)ReplicationInputStream(byte[] data, int offset, int len)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBuffer()intmark()booleanreadBoolean()intreadInt()byte[]readLengthPrefixedBytes()StringreadLengthPrefixedString()longreadLong()voidskipTo(int index)-
Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTo
-
Methods inherited from class java.io.InputStream
nullInputStream, read, readNBytes
-
-
-
-
Method Detail
-
mark
public int mark()
-
skipTo
public void skipTo(int index)
-
readInt
public final int readInt()
-
readLong
public final long readLong()
-
readLengthPrefixedString
public final String readLengthPrefixedString()
-
readLengthPrefixedBytes
public final byte[] readLengthPrefixedBytes()
-
readBoolean
public boolean readBoolean()
-
getBuffer
public byte[] getBuffer()
-
-