Oracle

com.compoze.util
Class MeteredInputStream.RandomInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.compoze.util.MeteredInputStream.RandomInputStream
All Implemented Interfaces:
java.io.Closeable
Enclosing class:
MeteredInputStream

public static class MeteredInputStream.RandomInputStream
extends java.io.InputStream

A NullInputStream for testing purposes.


Constructor Summary
MeteredInputStream.RandomInputStream()
           
 
Method Summary
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int iOffset, int iLength)
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeteredInputStream.RandomInputStream

public MeteredInputStream.RandomInputStream()
Method Detail

read

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

read

public int read(byte[] b)
Overrides:
read in class java.io.InputStream

read

public int read(byte[] b,
                int iOffset,
                int iLength)
Overrides:
read in class java.io.InputStream

Oracle

Copyright ©1999-2008 Oracle All rights reserved.