Class TempFileInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FileInputStream
-
- com.perforce.p4java.impl.generic.core.TempFileInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
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
Constructors Constructor Description TempFileInputStream(java.io.File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.FileInputStream
- Throws:
java.io.IOException
-
getTmpFile
public java.io.File getTmpFile()
-
setTmpFile
public void setTmpFile(java.io.File tmpFile)
-
-