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:
Closeable

public class TempFileInputStream
extends 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(File file)
           
 
Method Summary
 void close()
           
 File getTmpFile()
           
 void setTmpFile(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(File file)
                    throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

close

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

getTmpFile

public File getTmpFile()

setTmpFile

public void setTmpFile(File tmpFile)


Copyright © 2015 Perforce Software. All Rights Reserved.