Class SegmentStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.jackrabbit.oak.segment.SegmentStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class SegmentStream extends java.io.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(java.io.InputStream stream, SegmentStore store)
java.lang.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)
-
-
-
Method Detail
-
getRecordIdIfAvailable
@Nullable public static @Nullable RecordId getRecordIdIfAvailable(java.io.InputStream stream, SegmentStore store)
-
getLength
public long getLength()
-
getString
public java.lang.String getString()
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classjava.io.InputStream
-
mark
public void mark(int readLimit)
- Overrides:
mark
in classjava.io.InputStream
-
reset
public void reset()
- Overrides:
reset
in classjava.io.InputStream
-
read
public int read()
- Specified by:
read
in classjava.io.InputStream
-
read
public int read(@NotNull @org.jetbrains.annotations.NotNull byte[] b, int off, int len)
- Overrides:
read
in classjava.io.InputStream
-
skip
public long skip(long n)
- Overrides:
skip
in classjava.io.InputStream
-
available
public int available()
- Overrides:
available
in classjava.io.InputStream
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
-
-