Package com.ibm.fhir.bucket.scanner
Class NoCloseInputStream
- java.lang.Object
 - 
- java.io.InputStream
 - 
- java.io.FilterInputStream
 - 
- java.io.PushbackInputStream
 - 
- com.ibm.fhir.bucket.scanner.NoCloseInputStream
 
 
 
 
 
- 
- All Implemented Interfaces:
 Closeable,AutoCloseable
public class NoCloseInputStream extends PushbackInputStream
Intercepts the close call so we can process the stream using the FHIR resource parser 
- 
- 
Field Summary
- 
Fields inherited from class java.io.PushbackInputStream
buf, pos 
- 
Fields inherited from class java.io.FilterInputStream
in 
 - 
 
- 
Constructor Summary
Constructors Constructor Description NoCloseInputStream(InputStream delegate)Public Constructor 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()- 
Methods inherited from class java.io.PushbackInputStream
available, mark, markSupported, read, read, reset, skip, unread, unread, unread 
- 
Methods inherited from class java.io.FilterInputStream
read 
- 
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
NoCloseInputStream
public NoCloseInputStream(InputStream delegate)
Public Constructor- Parameters:
 delegate- the delegate stream we are decorating
 
 - 
 
- 
Method Detail
- 
close
public void close() throws IOException- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable- Overrides:
 closein classPushbackInputStream- Throws:
 IOException
 
 - 
 
 -