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