Skip navigation links
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
-
public class CloseNotifyInputStream
- extends FilterInputStream
Inputstream that will only read up to a given content length
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloseNotifyInputStream
public CloseNotifyInputStream(InputStream in,
CloseNotifyInputStream.CloseMethod closeMethod)
getWrappedStream
public InputStream getWrappedStream()
-
- Returns:
- the wrapped input stream
close
public void close()
throws IOException
- Closes this input stream and releases any system resources associated with the stream. This method simply performs
in.close()
.
-
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterInputStream
-
- Throws:
IOException
- if an I/O error occurs.
- See Also:
FilterInputStream.in
Skip navigation links
Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.