com.hs.mail.io
Class CountingInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.hs.mail.io.CountingInputStream
All Implemented Interfaces:
Closeable

public class CountingInputStream
extends InputStream


Constructor Summary
CountingInputStream(InputStream in)
           
 
Method Summary
 int getLineCount()
           
 int getOctetCount()
           
 int read()
           
 void readAll()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountingInputStream

public CountingInputStream(InputStream in)
Method Detail

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

getLineCount

public int getLineCount()

getOctetCount

public int getOctetCount()

readAll

public void readAll()
             throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.