public class TruncatedInputStream extends FilterInputStream
Modifier and Type | Field and Description |
---|---|
private long |
counter |
private long |
limit |
private long |
mark |
in
Constructor and Description |
---|
TruncatedInputStream(InputStream in,
long limit) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
mark(int readlimit) |
private static long |
min(long a,
long b) |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
close, markSupported
public TruncatedInputStream(InputStream in, long limit)
private static long min(long a, long b)
public int available() throws IOException
available
in class FilterInputStream
IOException
public void mark(int readlimit)
mark
in class FilterInputStream
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public void reset() throws IOException
reset
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
Copyright © 2023 ScalAgent D.T.. All rights reserved.