Package io.quarkus.deployment.util
Class IoUtil
java.lang.Object
io.quarkus.deployment.util.IoUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]readBytes(InputStream is) static InputStreamreadClass(ClassLoader classLoader, String className) Returns an input stream for reading the specified resource from the specified ClassLoader.static byte[]readClassAsBytes(ClassLoader classLoader, String className) Returns an byte array representing the content of the specified resource as loaded from the specified ClassLoader.
-
Constructor Details
-
IoUtil
public IoUtil()
-
-
Method Details
-
readClass
Returns an input stream for reading the specified resource from the specified ClassLoader. This might returnnull, in the case there is no matching resource.- Parameters:
classLoader-className-- Returns:
-
readClassAsBytes
Returns an byte array representing the content of the specified resource as loaded from the specified ClassLoader. This might returnnull, in the case there is no matching resource.- Parameters:
classLoader-className-- Returns:
- Throws:
IOException
-
readBytes
- Throws:
IOException
-