org.apache.james.util.stream
Class DisposableFileInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FileInputStream
          extended by org.apache.james.util.stream.DisposableFileInputStream
All Implemented Interfaces:
java.io.Closeable, Disposable

public class DisposableFileInputStream
extends java.io.FileInputStream
implements Disposable

FileInputStream which offers a method to dispose the underlying File


Constructor Summary
DisposableFileInputStream(java.io.File file)
           
 
Method Summary
 void dispose()
          Dispose file
 
Methods inherited from class java.io.FileInputStream
available, close, finalize, getChannel, getFD, read, read, read, skip
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisposableFileInputStream

public DisposableFileInputStream(java.io.File file)
                          throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

dispose

public void dispose()
Dispose file

Specified by:
dispose in interface Disposable


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.