async.net.impl
Class FixedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by async.net.impl.FixedInputStream
All Implemented Interfaces:
Closeable

public class FixedInputStream
extends InputStream


Constructor Summary
FixedInputStream(InputStream stream, int size)
           
 
Method Summary
 int read()
           
 int read(byte[] bs, int start, int length)
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedInputStream

public FixedInputStream(InputStream stream,
                        int size)
Method Detail

read

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

read

public int read(byte[] bs,
                int start,
                int length)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException


Copyright © 2011. All Rights Reserved.