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) |
public SizeMeasuringReader(Reader Reader, AtomicLong size)
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
Reader.read(char[], int, int)
public int read() throws IOException
read
in class Reader
IOException
Reader.read()
public void mark(int readlimit) throws IOException
mark
in class Reader
IOException
Reader.mark(int)
public boolean markSupported()
markSupported
in class Reader
Reader.markSupported()
public void reset() throws IOException
reset
in class Reader
IOException
Reader.reset()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
Reader.close()
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.