Package org.jboss.byteman.layer
Class LayerModuleReader
- java.lang.Object
-
- org.jboss.byteman.layer.LayerModuleReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,java.lang.module.ModuleReader
public class LayerModuleReader extends Object implements java.lang.module.ModuleReader
Created by adinn on 25/07/16.
-
-
Constructor Summary
Constructors Constructor Description LayerModuleReader(java.util.function.Function<String,byte[]> classMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Optional<URI>find(String name)java.util.stream.Stream<String>list()Optional<ByteBuffer>read(String name)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.module.ModuleReader
open, release
-
-
-
-
Constructor Detail
-
LayerModuleReader
public LayerModuleReader(java.util.function.Function<String,byte[]> classMapper)
-
-
Method Detail
-
find
public Optional<URI> find(String name) throws IOException
- Specified by:
findin interfacejava.lang.module.ModuleReader- Throws:
IOException
-
read
public Optional<ByteBuffer> read(String name) throws IOException
- Specified by:
readin interfacejava.lang.module.ModuleReader- Throws:
IOException
-
list
public java.util.stream.Stream<String> list() throws IOException
- Specified by:
listin interfacejava.lang.module.ModuleReader- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfacejava.lang.module.ModuleReader- Throws:
IOException
-
-