Package liquibase.resource
Class InputStreamList
java.lang.Object
liquibase.resource.InputStreamList
- All Implemented Interfaces:
 AutoCloseable,Iterable<InputStream>
A list of 
InputStreams. Custom class to allow try-with-resources using output from ResourceAccessor.openStreams(String, String).- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(URI uri, InputStream inputStream) voidaddAll(InputStreamList streams) protected booleanalreadySaw(URI uri) voidclose()Close the streams in this collection.voidforEach(Consumer<? super InputStream> action) getURIs()booleanisEmpty()iterator()intsize() 
- 
Constructor Details
- 
InputStreamList
public InputStreamList() - 
InputStreamList
 
 - 
 - 
Method Details
- 
add
 - 
alreadySaw
 - 
addAll
 - 
close
Close the streams in this collection.- Specified by:
 closein interfaceAutoCloseable- Throws:
 IOException
 - 
iterator
- Specified by:
 iteratorin interfaceIterable<InputStream>
 - 
forEach
- Specified by:
 forEachin interfaceIterable<InputStream>
 - 
spliterator
- Specified by:
 spliteratorin interfaceIterable<InputStream>
 - 
size
public int size() - 
isEmpty
public boolean isEmpty() - 
getURIs
 
 -