com.perforce.p4java.impl.generic.core
Class TempFileInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FileInputStream
          extended by com.perforce.p4java.impl.generic.core.TempFileInputStream
All Implemented Interfaces:
java.io.Closeable

public class TempFileInputStream
extends java.io.FileInputStream

A simple extension to the normal FileInputStream to allow us to subvert a few things like close() for our own nefarious purposes.


Constructor Summary
TempFileInputStream(java.io.File file)
           
 
Method Summary
 void close()
           
 java.io.File getTmpFile()
           
 void setTmpFile(java.io.File tmpFile)
           
 
Methods inherited from class java.io.FileInputStream
available, 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

TempFileInputStream

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

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.FileInputStream
Throws:
java.io.IOException

getTmpFile

public java.io.File getTmpFile()

setTmpFile

public void setTmpFile(java.io.File tmpFile)


Copyright (c) 2008-2010 Perforce Software. All rights reserved.