Package org.openjdk.jmc.test.io
Class IOResourceSet
java.lang.Object
org.openjdk.jmc.test.io.IOResourceSet
- All Implemented Interfaces:
Iterable<IOResource>
An
IOResourceSet represents a bunch of IOResource, for instance in a directory or
in a zip file.
Evolve classes as needed or make an interface if we need multiple implementations.
-
Constructor Summary
ConstructorsConstructorDescriptionIOResourceSet(List<IOResource> resources) IOResourceSet(IOResource... resources) -
Method Summary
Modifier and TypeMethodDescriptionstatic IOResourceSetcreateResourceSet(File file) Expecting that caller also closes the IOResourceSet.findWithPrefix(String namePrefix) getResource(int index) iterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IOResourceSet
-
IOResourceSet
-
-
Method Details
-
getResources
-
getResource
-
iterator
- Specified by:
iteratorin interfaceIterable<IOResource>
-
findWithPrefix
-
createResourceSet
Expecting that caller also closes the IOResourceSet.- Throws:
IOException
-