org.chromattic.common
Class CopyingInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.chromattic.common.CopyingInputStream
All Implemented Interfaces:
java.io.Closeable

public class CopyingInputStream
extends java.io.InputStream

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
CopyingInputStream(java.io.InputStream in)
           
 
Method Summary
 void close()
           
 byte[] getBytes()
           
 int read()
           
 
Methods inherited from class java.io.InputStream
available, 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

CopyingInputStream

public CopyingInputStream(java.io.InputStream in)
Method Detail

read

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

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException

getBytes

public byte[] getBytes()


Copyright © 2011 eXo Platform SAS. All Rights Reserved.