org.javaswift.joss.command.impl.object
Class InputStreamWrapper

java.lang.Object
  extended by java.io.InputStream
      extended by org.javaswift.joss.command.impl.object.InputStreamWrapper
All Implemented Interfaces:
Closeable
Direct Known Subclasses:
MockInputStreamWrapper

public class InputStreamWrapper
extends InputStream


Field Summary
protected  InputStream inputStream
           
 
Constructor Summary
InputStreamWrapper(AbstractCommand command, InputStream inputStream)
           
 
Method Summary
 void close()
           
 int read()
           
 int read(byte[] buffer)
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputStream

protected InputStream inputStream
Constructor Detail

InputStreamWrapper

public InputStreamWrapper(AbstractCommand command,
                          InputStream inputStream)
Method Detail

read

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

read

public int read(byte[] buffer)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

close

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


Copyright © 2012-2014 42 BV. All Rights Reserved.