Class SegmentStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.jackrabbit.oak.segment.SegmentStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class SegmentStream extends InputStream
For reading any record of type "VALUE" as binary streams.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
long
getLength()
static @Nullable RecordId
getRecordIdIfAvailable(InputStream stream, SegmentStore store)
String
getString()
void
mark(int readLimit)
boolean
markSupported()
int
read()
int
read(@org.jetbrains.annotations.NotNull byte[] b, int off, int len)
void
reset()
long
skip(long n)
-
Methods inherited from class java.io.InputStream
nullInputStream, read, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Method Detail
-
getRecordIdIfAvailable
@Nullable public static @Nullable RecordId getRecordIdIfAvailable(InputStream stream, SegmentStore store)
-
getLength
public long getLength()
-
getString
public String getString()
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classInputStream
-
mark
public void mark(int readLimit)
- Overrides:
mark
in classInputStream
-
reset
public void reset()
- Overrides:
reset
in classInputStream
-
read
public int read()
- Specified by:
read
in classInputStream
-
read
public int read(@NotNull @org.jetbrains.annotations.NotNull byte[] b, int off, int len)
- Overrides:
read
in classInputStream
-
skip
public long skip(long n)
- Overrides:
skip
in classInputStream
-
available
public int available()
- Overrides:
available
in classInputStream
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
-
-