Package nom.tam.fits.compress
Class CloseIS
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
nom.tam.fits.compress.CloseIS
- All Implemented Interfaces:
Closeable
,AutoCloseable
Deprecated.
Needed only by deprecated compression classes. And it should not have visibility outside of this package
anyway.
(for internal use) Ensures that input streams aren't left open when decompressing with an external system
tool, such as the UNIX compress or bzip2 commands. It is discouraged to use system tools for
decompressing such files, especially since we have native Java implementations through Apache's
commons-compress classes. The system tools are not portable, whereas the commons-compress
implementation is. Therefore, you should neer really need to use this class, which is provided only for compatibility
with earlier versions of this library.
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorsConstructorDescriptionCloseIS
(Process proc, InputStream compressed) Deprecated.Instantiates a new thread that will watch and close the input stream whenever the process using it compeletes. -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
CloseIS
Deprecated.Instantiates a new thread that will watch and close the input stream whenever the process using it compeletes.- Parameters:
proc
- The process that is using the input streamcompressed
- the compressed input stream that is used by the process.
-
-
Method Details
-
read
Deprecated.- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
Deprecated.- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
close
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
- Throws:
IOException
-