public class InputStreamList extends Object implements Iterable<InputStream>, AutoCloseable
InputStream
s. Custom class to allow try-with-resources using output from ResourceAccessor.openStreams(String, String)
.Constructor and Description |
---|
InputStreamList() |
InputStreamList(URI uri,
InputStream stream) |
Modifier and Type | Method and Description |
---|---|
boolean |
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) |
List<URI> |
getURIs() |
boolean |
isEmpty() |
Iterator<InputStream> |
iterator() |
int |
size() |
Spliterator<InputStream> |
spliterator() |
public InputStreamList()
public InputStreamList(URI uri, InputStream stream)
public boolean add(URI uri, InputStream inputStream)
protected boolean alreadySaw(URI uri)
public void addAll(InputStreamList streams)
public void close() throws IOException
close
in interface AutoCloseable
IOException
public Iterator<InputStream> iterator()
iterator
in interface Iterable<InputStream>
public void forEach(Consumer<? super InputStream> action)
forEach
in interface Iterable<InputStream>
public Spliterator<InputStream> spliterator()
spliterator
in interface Iterable<InputStream>
public int size()
public boolean isEmpty()
Copyright © 2023 Liquibase.org. All rights reserved.