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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Thread
private static final int
private String
private IOException
private OutputStream
private static final Logger
private InputStream
private final Process
private final Thread
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private void
handledOccuredException
(int result) int
read()
int
read
(byte[] b, int off, int len) private void
start()
start all threads.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
-
Field Details
-
LOG
-
COPY_BUFFER_SIZE
private static final int COPY_BUFFER_SIZE- See Also:
-
output
-
input
-
errorText
-
exception
-
stdError
-
copier
-
proc
-
-
Constructor Details
-
CloseIS
-
-
Method Details
-
start
private void start()start all threads. -
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
handledOccuredException
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
- Throws:
IOException
-