Package oracle.stellent.ridc.common.io
Class CloseNotifyInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
oracle.stellent.ridc.common.io.CloseNotifyInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Inputstream that will only read up to a given content length
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA callback that allows notifications of the close method -
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionCloseNotifyInputStream(InputStream in, CloseNotifyInputStream.CloseMethod closeMethod) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this input stream and releases any system resources associated with the stream.Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
CloseNotifyInputStream
-
-
Method Details
-
getWrappedStream
- Returns:
- the wrapped input stream
-
close
Closes this input stream and releases any system resources associated with the stream. This method simply performsin.close().- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException- if an I/O error occurs.- See Also:
-