org.wso2.carbon.usage.agent.util
Class MonitoredReader

java.lang.Object
  extended by java.io.Reader
      extended by org.wso2.carbon.usage.agent.util.MonitoredReader
All Implemented Interfaces:
Closeable, Readable

public class MonitoredReader
extends Reader

this class is used to wrap the Reader object


Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
MonitoredReader(Reader reader)
           
 
Method Summary
 void close()
           
 long getTotalRead()
           
 int read(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, read, ready, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoredReader

public MonitoredReader(Reader reader)
Method Detail

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Specified by:
read in class Reader
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class Reader
Throws:
IOException

getTotalRead

public long getTotalRead()


Copyright © 2015 WSO2. All rights reserved.