Class IoUtil

java.lang.Object
io.quarkus.deployment.util.IoUtil

public class IoUtil extends Object
  • Constructor Details

    • IoUtil

      public IoUtil()
  • Method Details

    • readClass

      public static InputStream readClass(ClassLoader classLoader, String className)
      Returns an input stream for reading the specified resource from the specified ClassLoader. This might return null, in the case there is no matching resource.
      Parameters:
      classLoader -
      className -
      Returns:
    • readClassAsBytes

      public static byte[] readClassAsBytes(ClassLoader classLoader, String className) throws IOException
      Returns an byte array representing the content of the specified resource as loaded from the specified ClassLoader. This might return null, in the case there is no matching resource.
      Parameters:
      classLoader -
      className -
      Returns:
      Throws:
      IOException
    • readBytes

      public static byte[] readBytes(InputStream is) throws IOException
      Throws:
      IOException