backtype.storm.utils
Class BufferFileInputStream

java.lang.Object
  extended by backtype.storm.utils.BufferFileInputStream

public class BufferFileInputStream
extends java.lang.Object


Constructor Summary
BufferFileInputStream(java.lang.String file)
           
BufferFileInputStream(java.lang.String file, int bufferSize)
           
 
Method Summary
 void close()
           
 byte[] read()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferFileInputStream

public BufferFileInputStream(java.lang.String file,
                             int bufferSize)
                      throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

BufferFileInputStream

public BufferFileInputStream(java.lang.String file)
                      throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

read

public byte[] read()
            throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException