public static class InStream.UncompressedStream extends InStream
InStream.CompressedStream, InStream.EncryptedStream, InStream.StreamOptions, InStream.UncompressedStream
Modifier and Type | Field and Description |
---|---|
protected long |
currentOffset |
protected DiskRangeList |
currentRange |
protected ByteBuffer |
decrypted |
Constructor and Description |
---|
UncompressedStream(Object name,
DiskRangeList input,
long offset,
long length) |
UncompressedStream(Object name,
long offset,
long length)
Create the stream without calling reset on it.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
changeIv(Consumer<byte[]> modifier) |
void |
close() |
int |
read() |
int |
read(byte[] data,
int offset,
int length) |
void |
seek(long desired) |
void |
seek(PositionProvider index) |
protected void |
setCurrent(DiskRangeList newRange,
boolean isJump)
Set the current range
|
String |
toString() |
create, create, createCodedInputStream, options, reset
mark, markSupported, read, reset, skip
protected ByteBuffer decrypted
protected DiskRangeList currentRange
protected long currentOffset
public UncompressedStream(Object name, long offset, long length)
name
- name of the streamlength
- the number of bytes for the streampublic UncompressedStream(Object name, DiskRangeList input, long offset, long length)
public int read()
read
in class InputStream
protected void setCurrent(DiskRangeList newRange, boolean isJump)
InStream
setCurrent
in class InStream
newRange
- the block that is currentisJump
- if this was a seek instead of a natural readpublic int read(byte[] data, int offset, int length)
read
in class InputStream
public int available()
available
in class InputStream
public void close()
public void seek(PositionProvider index) throws IOException
seek
in class InStream
IOException
public void seek(long desired) throws IOException
IOException
Copyright © 2013–2022 The Apache Software Foundation. All rights reserved.