public class SizeMeasuringReader extends Reader
Reader
implementation that can wrap another input stream and determine the number of bytes read.Constructor and Description |
---|
SizeMeasuringReader(Reader Reader,
AtomicLong size) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
void |
reset() |
public SizeMeasuringReader(Reader Reader, AtomicLong size)
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public int read() throws IOException
read
in class Reader
IOException
public void mark(int readlimit) throws IOException
mark
in class Reader
IOException
public boolean markSupported()
markSupported
in class Reader
public void reset() throws IOException
reset
in class Reader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.